mirror of https://github.com/grafana/grafana
Chore: Revert externalization of the tslib so it gets bundled with plugins. (#43556)
* 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.pull/43596/head
parent
f17fb76b5e
commit
efd7a12686
@ -0,0 +1,15 @@ |
|||||||
|
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)], |
||||||
|
}, |
||||||
|
}); |
||||||
|
}, |
||||||
|
}; |
Loading…
Reference in new issue