@s-ui/bundler 8.0.0-beta.5 → 8.0.0-beta.9

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.
@@ -6,7 +6,6 @@ const path = require('path')
6
6
  const program = require('commander')
7
7
  const rimraf = require('rimraf')
8
8
  const webpack = require('webpack')
9
- const {minify} = require('terser')
10
9
  const {writeFile} = require('@s-ui/helpers/file')
11
10
 
12
11
  const config = require('../webpack.config.prod')
@@ -76,7 +75,6 @@ webpack(nextConfig).run(async (error, stats) => {
76
75
  if (stats.hasWarnings()) {
77
76
  const jsonStats = stats.toJson('errors-warnings')
78
77
  log.warn('Webpack generated the following warnings: ')
79
- log.warn(jsonStats.warnings)
80
78
  jsonStats.warnings.map(({message}) => log.warn(message))
81
79
  }
82
80
 
@@ -137,10 +135,9 @@ webpack(nextConfig).run(async (error, stats) => {
137
135
  JSON.stringify(staticsCacheOnly)
138
136
  )
139
137
 
140
- const {code: minifiedSw} = await minify(swCode, {sourceMap: false})
141
138
  const swFilePath = resolvePublicFile('service-worker.js')
142
139
 
143
- await writeFile(swFilePath, minifiedSw)
140
+ await writeFile(swFilePath, swCode)
144
141
  console.log('\nService worker generated succesfully!\n')
145
142
  }
146
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "8.0.0-beta.5",
3
+ "version": "8.0.0-beta.9",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -29,11 +29,11 @@
29
29
  "babel-preset-sui": "3",
30
30
  "commander": "8.3.0",
31
31
  "css-loader": "6.5.1",
32
- "css-minimizer-webpack-plugin": "3.1.3",
32
+ "css-minimizer-webpack-plugin": "3.1.4",
33
33
  "esbuild-loader": "2.16.0",
34
34
  "fast-glob": "3.2.7",
35
35
  "html-webpack-plugin": "5.5.0",
36
- "mini-css-extract-plugin": "2.4.4",
36
+ "mini-css-extract-plugin": "2.4.5",
37
37
  "process": "0.11.10",
38
38
  "postcss": "8.3.11",
39
39
  "postcss-loader": "6.2.0",
@@ -47,7 +47,12 @@ const webpackConfig = {
47
47
  resolve: {
48
48
  alias: {...aliasFromConfig},
49
49
  extensions: ['.js', '.json'],
50
- modules: ['node_modules', path.resolve(process.cwd())]
50
+ modules: ['node_modules', path.resolve(process.cwd())],
51
+ fallback: {
52
+ assert: false,
53
+ fs: false,
54
+ path: false
55
+ }
51
56
  },
52
57
  entry: MAIN_ENTRY_POINT,
53
58
  output: {