* 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)
16 lines
351 B
JavaScript
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)],
|
|
},
|
|
});
|
|
},
|
|
};
|