@s-ui/bundler 7.37.0 → 7.41.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.
@@ -16,10 +16,9 @@ const installNeededDependencies = async () => {
16
16
  return getSpawnPromise('npm', [
17
17
  'install',
18
18
  '--no-save',
19
- '--no-optional',
20
19
  '--no-audit',
21
20
  '--no-fund',
22
- 'webpack-bundle-analyzer@4.3.0 duplicate-package-checker-webpack-plugin@3.0.0'
21
+ 'webpack-bundle-analyzer@4.5.0 duplicate-package-checker-webpack-plugin@3.0.0'
23
22
  ]).then(() => {
24
23
  logUpdate.done('Installed needed dependencies')
25
24
  getSpawnPromise('./node_modules/.bin/sui-bundler', ['analyzer']).then(
@@ -7,6 +7,14 @@ const {HOST, HTTPS} = process.env
7
7
  const protocol = HTTPS === 'true' ? 'https' : 'http'
8
8
  const host = HOST || '0.0.0.0'
9
9
 
10
+ const getWatchOptions = ({context, watch}) => {
11
+ return watch
12
+ ? {
13
+ ignored: ignoredFiles(context)
14
+ }
15
+ : false
16
+ }
17
+
10
18
  module.exports = config => ({
11
19
  allowedHosts: 'all',
12
20
  client: {
@@ -19,9 +27,7 @@ module.exports = config => ({
19
27
  },
20
28
  static: {
21
29
  directory: 'public',
22
- watch: {
23
- ignored: ignoredFiles(config.context)
24
- }
30
+ watch: getWatchOptions(config)
25
31
  },
26
32
  hot: true,
27
33
  https: protocol === 'https',
@@ -29,7 +35,6 @@ module.exports = config => ({
29
35
  historyApiFallback: {
30
36
  disableDotRule: true
31
37
  },
32
- watch: config.watch,
33
38
  onAfterSetupMiddleware(devServer) {
34
39
  // This service worker file is effectively a 'no-op' that will reset any
35
40
  // previous service worker registered for the same host:port combination.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "7.37.0",
3
+ "version": "7.41.0",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "homepage": "https://github.com/SUI-Components/sui/tree/master/packages/sui-bundler#readme",
23
23
  "dependencies": {
24
- "@babel/core": "7.16.0",
24
+ "@babel/core": "7.16.7",
25
25
  "@s-ui/helpers": "1",
26
26
  "autoprefixer": "9.8.6",
27
27
  "babel-loader": "8.2.3",
@@ -45,7 +45,7 @@
45
45
  "style-loader": "2.0.0",
46
46
  "terser-webpack-plugin": "4.2.2",
47
47
  "webpack": "4.46.0",
48
- "webpack-dev-server": "4.3.1",
48
+ "webpack-dev-server": "4.5.0",
49
49
  "webpack-manifest-plugin": "4.0.2",
50
50
  "webpack-node-externals": "3.0.0"
51
51
  }