@pushwoosh/frontend-builder-engine 2.0.0-beta.3 → 2.0.1
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.
|
@@ -7,6 +7,21 @@ const { merge } = require('webpack-merge');
|
|
|
7
7
|
const { loadPushwooshConfig } = require('./helpers');
|
|
8
8
|
const { loadVariables, getGuardedVariable } = require('./webpack.utilities');
|
|
9
9
|
|
|
10
|
+
const defaultExternals = [
|
|
11
|
+
'react',
|
|
12
|
+
'react-dom',
|
|
13
|
+
'single-spa',
|
|
14
|
+
'history',
|
|
15
|
+
'tslib',
|
|
16
|
+
|
|
17
|
+
'@pushwoosh/rpc-v2-http-api-data',
|
|
18
|
+
'@pushwoosh/rpc-gateway-journey-data',
|
|
19
|
+
'@pushwoosh/rpc-gateway-payment-data',
|
|
20
|
+
|
|
21
|
+
'@pushwoosh/http-client',
|
|
22
|
+
'@pushwoosh/session-store',
|
|
23
|
+
];
|
|
24
|
+
|
|
10
25
|
module.exports = (webpackConfigEnv, argv) => {
|
|
11
26
|
const cwd = process.cwd();
|
|
12
27
|
const pushwooshConfig = loadPushwooshConfig();
|
|
@@ -15,8 +30,6 @@ module.exports = (webpackConfigEnv, argv) => {
|
|
|
15
30
|
|
|
16
31
|
const orgName = packageJson.name.split('/')[0].replace('@', '');
|
|
17
32
|
const projectName = packageJson.name.split('/')[1];
|
|
18
|
-
const peerDependencies = packageJson.peerDependencies || {};
|
|
19
|
-
const peerDependenciesList = Object.keys(peerDependencies);
|
|
20
33
|
|
|
21
34
|
const NODE_ENV = argv.mode || 'development';
|
|
22
35
|
const isProduction = NODE_ENV === 'production';
|
|
@@ -50,7 +63,7 @@ module.exports = (webpackConfigEnv, argv) => {
|
|
|
50
63
|
'~/src': path.resolve(cwd, './src'),
|
|
51
64
|
},
|
|
52
65
|
},
|
|
53
|
-
externals: pushwooshConfig.applicationExternals ? pushwooshConfig.applicationExternals(
|
|
66
|
+
externals: pushwooshConfig.applicationExternals ? pushwooshConfig.applicationExternals(defaultExternals) : defaultExternals,
|
|
54
67
|
plugins: [
|
|
55
68
|
new webpack.DefinePlugin({
|
|
56
69
|
process: {
|