Files
grafana/plugins-bundled/internal/input-datasource/webpack.config.js
Marcus Andersson 399e6aee87 [v8.3.x] Chore: Revert externalization of the tslib so it gets bundled with plugins. (#43556) (#43594)
* Revert externalization of the tslib so it gets bundled with the plugins.

* Adding pnp-webpack-plugin to properly resolve dependencies in nested plugins.

* added dependency on lodash.

(cherry picked from commit efd7a12686)
2021-12-30 14:33:37 +01:00

16 lines
351 B
JavaScript

const { merge } = require('lodash');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
module.exports = {
getWebpackConfig: (baseConfig) => {
return merge(baseConfig, {
resolve: {
plugins: [PnpWebpackPlugin],
},
resolveLoader: {
plugins: [PnpWebpackPlugin.moduleLoader(module)],
},
});
},
};