@pushwoosh/frontend-builder-engine 2.0.1 → 2.0.2
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.
|
@@ -20,9 +20,9 @@ function singleSpaDefaults(opts) {
|
|
|
20
20
|
throw Error('single-spa-defaults requires an opts.projectName string');
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
if (opts.orgPackagesAsExternal !== false) {
|
|
24
|
-
|
|
25
|
-
}
|
|
23
|
+
// if (opts.orgPackagesAsExternal !== false) {
|
|
24
|
+
// opts.orgPackagesAsExternal = true;
|
|
25
|
+
// }
|
|
26
26
|
|
|
27
27
|
const webpackConfigEnv = opts.webpackConfigEnv || {};
|
|
28
28
|
const argv = opts.argv || {};
|
|
@@ -30,14 +30,14 @@ function singleSpaDefaults(opts) {
|
|
|
30
30
|
const isAnalyze = webpackConfigEnv.analyze;
|
|
31
31
|
|
|
32
32
|
// Base externals
|
|
33
|
-
const externals = opts.orgPackagesAsExternal
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
// const externals = opts.orgPackagesAsExternal
|
|
34
|
+
// ? ['single-spa', new RegExp(`^@${opts.orgName}/`)]
|
|
35
|
+
// : ['single-spa'];
|
|
36
|
+
//
|
|
37
37
|
// Add React externals (unless standalone mode)
|
|
38
|
-
if (!webpackConfigEnv.standalone) {
|
|
39
|
-
|
|
40
|
-
}
|
|
38
|
+
// if (!webpackConfigEnv.standalone) {
|
|
39
|
+
// externals.push('react', 'react-dom');
|
|
40
|
+
// }
|
|
41
41
|
|
|
42
42
|
// Plugins
|
|
43
43
|
const plugins = [
|
|
@@ -145,7 +145,6 @@ function singleSpaDefaults(opts) {
|
|
|
145
145
|
},
|
|
146
146
|
allowedHosts: 'all',
|
|
147
147
|
},
|
|
148
|
-
externals,
|
|
149
148
|
plugins: plugins.filter(Boolean),
|
|
150
149
|
resolve: {
|
|
151
150
|
extensions: ['.ts', '.tsx', '.mjs', '.js', '.jsx', '.wasm', '.json'],
|