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:
@@ -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)],
|
||||
},
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user