@s-ui/bundler 7.36.0-beta.0 → 7.36.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "7.36.0-beta.0",
3
+ "version": "7.36.0-beta.1",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -34,6 +34,7 @@
34
34
  "html-webpack-plugin": "5.5.0",
35
35
  "mini-css-extract-plugin": "2.4.3",
36
36
  "null-loader": "4.0.1",
37
+ "process": "0.11.10",
37
38
  "postcss": "8.3.11",
38
39
  "postcss-loader": "6.2.0",
39
40
  "react-dev-utils": "11.0.4",
@@ -38,9 +38,9 @@ const webpackConfig = {
38
38
  MAIN_ENTRY_POINT
39
39
  ]),
40
40
  target: 'web',
41
- node: {fs: 'empty'},
41
+ node: false,
42
42
  optimization: {
43
- noEmitOnErrors: true,
43
+ emitOnErrors: false,
44
44
  removeAvailableModules: false,
45
45
  removeEmptyChunks: false,
46
46
  runtimeChunk: true,
@@ -51,6 +51,9 @@ const webpackConfig = {
51
51
  publicPath: '/'
52
52
  },
53
53
  plugins: [
54
+ new webpack.ProvidePlugin({
55
+ process: 'process/browser'
56
+ }),
54
57
  new webpack.EnvironmentPlugin(envVars(config.env)),
55
58
  definePlugin({__DEV__: true}),
56
59
  new HtmlWebpackPlugin({
@@ -110,7 +113,7 @@ const webpackConfig = {
110
113
  ])
111
114
  },
112
115
  devtool:
113
- config.sourcemaps && config.sourcemaps.dev ? config.sourcemaps.dev : 'none'
116
+ config.sourcemaps && config.sourcemaps.dev ? config.sourcemaps.dev : false
114
117
  }
115
118
 
116
119
  module.exports = config.measure ? smp.wrap(webpackConfig) : webpackConfig