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-pluginproduces, 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
tsconfigextension. - 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-in plugins — consumers of these configs.
- How to contribute / Tooling — broader build tooling.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.