@s-ui/bundler 9.57.0-beta.0 → 9.57.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "9.57.0-beta.0",
3
+ "version": "9.57.0",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -22,6 +22,7 @@
22
22
  "homepage": "https://github.com/SUI-Components/sui/tree/master/packages/sui-bundler#readme",
23
23
  "dependencies": {
24
24
  "@babel/core": "7.18.10",
25
+ "@builder.io/react-hydration-overlay": "0.0.8",
25
26
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
26
27
  "@s-ui/helpers": "1",
27
28
  "@s-ui/sass-loader": "1",
@@ -37,12 +38,12 @@
37
38
  "escape-string-regexp": "4.0.0",
38
39
  "fast-glob": "3.2.11",
39
40
  "find-free-ports": "3.0.0",
41
+ "html-webpack-inject-attributes-plugin": "1.0.6",
40
42
  "html-webpack-plugin": "5.5.0",
41
43
  "https-browserify": "1.0.0",
42
- "million": "3.0.3",
43
44
  "mini-css-extract-plugin": "2.7.7",
44
- "postcss": "8.4.31",
45
45
  "postcss-loader": "7.3.4",
46
+ "postcss": "8.4.31",
46
47
  "process": "0.11.10",
47
48
  "react-refresh": "0.14.0",
48
49
  "sass": "1.54.5",
@@ -50,9 +51,9 @@
50
51
  "strip-ansi": "6.0.1",
51
52
  "style-loader": "3.3.1",
52
53
  "url": "0.11.0",
53
- "webpack": "5.82.1",
54
54
  "webpack-dev-server": "4.10.0",
55
55
  "webpack-manifest-plugin": "5.0.0",
56
- "webpack-node-externals": "3.0.0"
56
+ "webpack-node-externals": "3.0.0",
57
+ "webpack": "5.82.1"
57
58
  }
58
59
  }
@@ -6,6 +6,8 @@ const HtmlWebpackPlugin = require('html-webpack-plugin')
6
6
  const {WebpackManifestPlugin} = require('webpack-manifest-plugin')
7
7
  const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin')
8
8
  const MiniCssExtractPlugin = require('mini-css-extract-plugin')
9
+ const HtmlWebpackInjectAttributesPlugin = require('html-webpack-inject-attributes-plugin')
10
+ const {withHydrationOverlayWebpack} = require('@builder.io/react-hydration-overlay/webpack')
9
11
 
10
12
  const {envVars, MAIN_ENTRY_POINT, config, cleanList, when} = require('./shared/index.js')
11
13
  const definePlugin = require('./shared/define.js')
@@ -83,7 +85,10 @@ const webpackConfig = {
83
85
  }),
84
86
  new WebpackManifestPlugin({fileName: 'asset-manifest.json'}),
85
87
  new webpack.HotModuleReplacementPlugin(),
86
- new ReactRefreshWebpackPlugin({overlay: false})
88
+ new ReactRefreshWebpackPlugin({overlay: false}),
89
+ new HtmlWebpackInjectAttributesPlugin({
90
+ crossorigin: 'anonymous'
91
+ })
87
92
  ],
88
93
  resolveLoader,
89
94
  module: {
@@ -122,4 +127,7 @@ const webpackConfig = {
122
127
  devtool: config.sourcemaps && config.sourcemaps.dev ? config.sourcemaps.dev : false
123
128
  }
124
129
 
125
- module.exports = webpackConfig
130
+ module.exports = withHydrationOverlayWebpack({
131
+ appRootSelector: '#root',
132
+ isMainAppEntryPoint: entryPointName => entryPointName === 'app'
133
+ })(webpackConfig)
@@ -3,7 +3,6 @@
3
3
  /* eslint-disable no-console */
4
4
  const webpack = require('webpack')
5
5
  const path = require('path')
6
- const million = require('million/compiler')
7
6
 
8
7
  const HtmlWebpackPlugin = require('html-webpack-plugin')
9
8
  const {WebpackManifestPlugin} = require('webpack-manifest-plugin')
@@ -101,8 +100,7 @@ const webpackConfig = {
101
100
  template: './index.html'
102
101
  }),
103
102
  new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime/]),
104
- new WebpackManifestPlugin({fileName: 'asset-manifest.json'}),
105
- million.webpack({auto: true})
103
+ new WebpackManifestPlugin({fileName: 'asset-manifest.json'})
106
104
  ]),
107
105
  module: {
108
106
  rules: cleanList([
@@ -1,6 +1,5 @@
1
1
  const webpack = require('webpack')
2
2
  const webpackNodeExternals = require('webpack-node-externals')
3
- const million = require('million/compiler')
4
3
  const path = require('path')
5
4
 
6
5
  const {config, when, cleanList} = require('./shared/index.js')
@@ -45,7 +44,7 @@ const webpackConfig = {
45
44
  compression: !isProduction ? 'gzip' : false
46
45
  },
47
46
  externals: [webpackNodeExternals()],
48
- plugins: [new webpack.DefinePlugin({'global.GENTLY': false}), million.webpack({auto: true})],
47
+ plugins: [new webpack.DefinePlugin({'global.GENTLY': false})],
49
48
  resolveLoader,
50
49
  module: {
51
50
  rules: cleanList([