@s-ui/bundler 9.54.0-typescript-support.5 → 9.54.0-typescript-support.6
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 +7 -5
- package/webpack.config.client.dev.js +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-ui/bundler",
|
|
3
|
-
"version": "9.54.0-typescript-support.
|
|
3
|
+
"version": "9.54.0-typescript-support.6",
|
|
4
4
|
"description": "Config-free bundler for ES6 React apps.",
|
|
5
5
|
"bin": { "sui-bundler": "./bin/sui-bundler.js" },
|
|
6
6
|
"main": "./bin/sui-bundler.js",
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
"homepage": "https://github.com/SUI-Components/sui/tree/master/packages/sui-bundler#readme",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/core": "7.21.8",
|
|
22
|
+
"@builder.io/react-hydration-overlay": "0.0.8",
|
|
23
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
|
22
24
|
"@s-ui/compiler-config": "1",
|
|
23
25
|
"@s-ui/helpers": "1",
|
|
24
26
|
"@s-ui/sass-loader": "1",
|
|
@@ -36,23 +38,23 @@
|
|
|
36
38
|
"escape-string-regexp": "4.0.0",
|
|
37
39
|
"fast-glob": "3.2.12",
|
|
38
40
|
"find-free-ports": "3.0.0",
|
|
41
|
+
"html-webpack-inject-attributes-plugin": "1.0.6",
|
|
39
42
|
"html-webpack-plugin": "5.5.0",
|
|
40
43
|
"https-browserify": "1.0.0",
|
|
41
44
|
"mini-css-extract-plugin": "2.7.7",
|
|
42
|
-
"postcss": "8.4.31",
|
|
43
45
|
"postcss-loader": "7.3.4",
|
|
46
|
+
"postcss": "8.4.31",
|
|
44
47
|
"process": "0.11.10",
|
|
48
|
+
"react-refresh": "0.14.0",
|
|
45
49
|
"sass": "1.54.5",
|
|
46
50
|
"stream-http": "3.2.0",
|
|
47
51
|
"strip-ansi": "6.0.1",
|
|
48
52
|
"style-loader": "3.3.1",
|
|
49
53
|
"swc-loader": "0.2.1",
|
|
50
54
|
"url": "0.11.0",
|
|
51
|
-
"webpack": "5.82.1",
|
|
52
55
|
"webpack-dev-server": "4.10.0",
|
|
53
56
|
"webpack-manifest-plugin": "5.0.0",
|
|
54
57
|
"webpack-node-externals": "3.0.0",
|
|
55
|
-
"
|
|
56
|
-
"react-refresh": "0.14.0"
|
|
58
|
+
"webpack": "5.82.1"
|
|
57
59
|
}
|
|
58
60
|
}
|
|
@@ -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 =
|
|
130
|
+
module.exports = withHydrationOverlayWebpack({
|
|
131
|
+
appRootSelector: '#root',
|
|
132
|
+
isMainAppEntryPoint: entryPointName => entryPointName === 'app'
|
|
133
|
+
})(webpackConfig)
|