@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
- opts.orgPackagesAsExternal = true;
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
- ? ['single-spa', new RegExp(`^@${opts.orgName}/`)]
35
- : ['single-spa'];
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
- externals.push('react', 'react-dom');
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'],
@@ -40,7 +40,7 @@ module.exports = (webpackConfigEnv, argv) => {
40
40
  projectName,
41
41
  webpackConfigEnv,
42
42
  argv,
43
- orgPackagesAsExternal: false,
43
+ // orgPackagesAsExternal: false,
44
44
  rootDirectoryLevel: 1,
45
45
  disableHtmlGeneration: true,
46
46
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/frontend-builder-engine",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Pushwoosh frontend builder engine",
5
5
  "main": "./lib/pushwoosh-frontend-builder-engine.js",
6
6
  "scripts": {