Open-Source Wikis

/

Grafana

/

Packages

/

Plugin configs

grafana/grafana

@grafana/plugin-configs

Shared Webpack and Jest configurations for plugin workspaces. Source under packages/grafana-plugin-configs/.

Why this exists

Each built-in plugin workspace (under public/app/plugins/datasource/<name>/) and each test plugin (under e2e-playwright/test-plugins/<name>/) needs its own webpack.config.js, jest.config.js, etc. Without shared configs every plugin would duplicate hundreds of lines of boilerplate.

@grafana/plugin-configs exposes:

  • A base Webpack config matching what @grafana/create-plugin produces, customized to play nicely with the monorepo (resolves @grafana/* to local source for type fidelity).
  • A base Jest config aligned with the rest of the repo's test settings.
  • A base tsconfig extension.
  • ESLint shared rules.

Usage

A plugin workspace's webpack.config.js typically reads:

module.exports = require('@grafana/plugin-configs/webpack.config').extend({
  /* plugin-specific overrides */
});

See also

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

Plugin configs – Grafana wiki | Factory