mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 09:52:12 +08:00

* feat(plugin-configs): update configs to work with nodes strip-types feature * build(parca): use nodes experimental-strip-types so build works with node 22 - 24 * build(decoupled-plugins): support nodes strip types feature for webpack builds * build(e2e-test-plugins): update build scripts and config to work with node strip types * style(plugin-configs): fix import/order lint errors * refactor(plugins): use allowImportingTsExtensions in favour of ts-ignore comments * refactor(plugin-configs): clean up ts-ignore and ts-expect-error comments in webpack.config * refactor(plugin-configs): fix up changes for nodes strip-types flag * chore(loki): fix up build command for node 24 support
15 lines
377 B
TypeScript
15 lines
377 B
TypeScript
import type { Configuration } from 'webpack';
|
|
import { merge } from 'webpack-merge';
|
|
|
|
import grafanaConfig from '@grafana/plugin-configs/webpack.config.ts';
|
|
|
|
const config = async (env: Record<string, unknown>): Promise<Configuration> => {
|
|
const baseConfig = await grafanaConfig(env);
|
|
|
|
return merge(baseConfig, {
|
|
externals: ['i18next'],
|
|
});
|
|
};
|
|
|
|
export default config;
|