@epilot360/webpack-config-epilot360 2.5.4 → 2.5.7-0

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.
@@ -9,13 +9,19 @@ const StandaloneSingleSpaPlugin = require("standalone-single-spa-webpack-plugin"
9
9
  const SystemJSPublicPathPlugin = require("systemjs-webpack-interop/SystemJSPublicPathWebpackPlugin");
10
10
  const { ESBuildMinifyPlugin } = require('esbuild-loader')
11
11
  const resolveCwd = require('resolve-cwd');
12
- const { peerDependencies } = require('./package.json');
13
12
 
14
13
  process.env.NODE_ENV = process.env.NODE_ENV || 'development'
15
14
 
15
+ const stringified = {
16
+ 'process.env': Object.keys(raw).reduce((env, key) => {
17
+ env[key] = JSON.stringify(raw[key]);
18
+ return env;
19
+ }, {}),
20
+ };
21
+
16
22
  class EnvPrefixPlugin extends webpack.DefinePlugin {
17
23
  constructor() {
18
- const { 'process.env': { NODE_ENV, ...definitions } } = env.stringified;
24
+ const { 'process.env': { NODE_ENV, ...definitions } } = stringified;
19
25
  super({ 'process.env': definitions })
20
26
  }
21
27
  }
@@ -199,3 +205,5 @@ function webpackConfigEpilot360ReactApp(opts) {
199
205
  ],
200
206
  };
201
207
  }
208
+
209
+ module.exports = webpackConfigEpilot360ReactApp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot360/webpack-config-epilot360",
3
- "version": "2.5.4",
3
+ "version": "2.5.7-0",
4
4
  "description": "A webpack config for in-browser modules used with single-spa for Epilot360",
5
5
  "main": "lib/webpack-config-epilot360-portal.js",
6
6
  "directories": {