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.
This commit is contained in:
Marcus Andersson
2021-12-30 08:53:42 +01:00
committed by GitHub
parent f17fb76b5e
commit efd7a12686
5 changed files with 30 additions and 3 deletions
@@ -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)],
},
});
},
};