canopy-webpack-config 4.4.1 → 4.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ const externalPatterns = [
|
|
|
36
36
|
/^rxjs\/?.*$/,
|
|
37
37
|
/^single-spa-canopy$/,
|
|
38
38
|
/^single-spa$/,
|
|
39
|
-
/^@canopytax
|
|
39
|
+
/^@canopytax\//,
|
|
40
40
|
/^react-hook-form$/,
|
|
41
41
|
/^react-router-dom-v6$/,
|
|
42
42
|
];
|
|
@@ -87,6 +87,8 @@ export default function (name, overridesConfig = {}, options = {}) {
|
|
|
87
87
|
library: { type: "module" }, // emit as native ESM
|
|
88
88
|
environment: { module: true },
|
|
89
89
|
chunkFormat: "module",
|
|
90
|
+
devtoolNamespace: name,
|
|
91
|
+
devtoolModuleFilenameTemplate: "webpack://[namespace]/[resource-path]",
|
|
90
92
|
},
|
|
91
93
|
|
|
92
94
|
experiments: {
|
|
@@ -28,7 +28,7 @@ module.exports = function (name, overridesConfig = {}, options = {}) {
|
|
|
28
28
|
const { typescript, externals } = options;
|
|
29
29
|
if (typeof name !== "string") {
|
|
30
30
|
throw new Error(
|
|
31
|
-
"canopy-webpack-config expects a string name as the first argument"
|
|
31
|
+
"canopy-webpack-config expects a string name as the first argument",
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -38,7 +38,7 @@ module.exports = function (name, overridesConfig = {}, options = {}) {
|
|
|
38
38
|
) {
|
|
39
39
|
throw new Error(
|
|
40
40
|
"canopy-webpack-config expects an object as a second argument to override the canopy defaults. Received " +
|
|
41
|
-
typeof overridesConfig
|
|
41
|
+
typeof overridesConfig,
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -64,6 +64,8 @@ module.exports = function (name, overridesConfig = {}, options = {}) {
|
|
|
64
64
|
},
|
|
65
65
|
path: path.resolve(process.cwd(), "build"),
|
|
66
66
|
chunkFilename: "[name].js",
|
|
67
|
+
devtoolNamespace: name,
|
|
68
|
+
devtoolModuleFilenameTemplate: "webpack://[namespace]/[resource-path]",
|
|
67
69
|
},
|
|
68
70
|
mode: env.dev || isDevServer ? "development" : "production",
|
|
69
71
|
module: {
|
|
@@ -119,7 +121,7 @@ module.exports = function (name, overridesConfig = {}, options = {}) {
|
|
|
119
121
|
/^single-spa-canopy$/,
|
|
120
122
|
/^single-spa$/,
|
|
121
123
|
/^sofe$/,
|
|
122
|
-
/^@canopytax
|
|
124
|
+
/^@canopytax\//,
|
|
123
125
|
/^cp-analytics$/,
|
|
124
126
|
/^react-hook-form$/,
|
|
125
127
|
/^react-router-dom-v6$/,
|