fix(web): add support for barrel exports in web build (#7354)
This commit is contained in:
parent
fc3573f1ca
commit
f9fe52bb18
@ -22,6 +22,7 @@
|
||||
"namedChunks": false,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"webpackConfig": "dep-graph/dep-graph/webpack.config.js",
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
|
||||
6
dep-graph/dep-graph/webpack.config.js
Normal file
6
dep-graph/dep-graph/webpack.config.js
Normal file
@ -0,0 +1,6 @@
|
||||
// This is a workaround for a problem in Nx 13.0.0-beta.7
|
||||
// TODO(jack): Can remove this after we patch Nx in 13.0.0 beta.8 or final release.
|
||||
module.exports = (config) => {
|
||||
config.optimization.providedExports = true;
|
||||
return config;
|
||||
};
|
||||
@ -112,7 +112,6 @@ export function getBaseWebpackPartial(
|
||||
if (isScriptOptimizeOn) {
|
||||
webpackConfig.optimization = {
|
||||
sideEffects: false,
|
||||
providedExports: false,
|
||||
minimizer: [
|
||||
new TerserWebpackPlugin({
|
||||
parallel: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user