@s-ui/bundler 8.0.0-beta.32 → 8.0.0-beta.36

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.
@@ -28,14 +28,10 @@ program
28
28
  )
29
29
  .parse(process.argv)
30
30
 
31
- const {
32
- clean = false,
33
- output,
34
- umd = false,
35
- path: publicPath,
36
- args: [entry],
37
- root = false
38
- } = program.opts()
31
+ const [entry] = program.args
32
+ const options = program.opts()
33
+ const {clean = false, output, umd = false, root = false} = options
34
+ const publicPath = options.path
39
35
 
40
36
  if (!output) {
41
37
  showError(new Error('--output is mandatory.'), program)
@@ -1,8 +1,8 @@
1
1
  const fg = require('fast-glob')
2
2
  const path = require('path')
3
3
 
4
- const log = require('../shared/log')
5
- const {defaultAlias} = require('../shared/resolve-alias')
4
+ const log = require('../shared/log.js')
5
+ const {defaultAlias} = require('../shared/resolve-alias.js')
6
6
  const createSassLinkImporter = require('./sassLinkImporter.js')
7
7
 
8
8
  const diccFromAbsolutePaths = (paths, init = {}) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "8.0.0-beta.32",
3
+ "version": "8.0.0-beta.36",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -32,12 +32,13 @@
32
32
  "commander": "8.3.0",
33
33
  "css-loader": "6.5.1",
34
34
  "css-minimizer-webpack-plugin": "3.4.1",
35
- "esbuild": "0.14.11",
35
+ "esbuild": "0.14.14",
36
36
  "escape-string-regexp": "4.0.0",
37
- "fast-glob": "3.2.10",
37
+ "fast-glob": "3.2.11",
38
38
  "find-free-ports": "3.0.0",
39
39
  "html-webpack-plugin": "5.5.0",
40
- "mini-css-extract-plugin": "2.5.2",
40
+ "https-browserify": "1.0.0",
41
+ "mini-css-extract-plugin": "2.5.3",
41
42
  "postcss": "8.4.5",
42
43
  "postcss-loader": "6.2.1",
43
44
  "process": "0.11.10",
@@ -46,7 +47,7 @@
46
47
  "strip-ansi": "6.0.1",
47
48
  "style-loader": "3.3.1",
48
49
  "url": "0.11.0",
49
- "webpack": "5.66.0",
50
+ "webpack": "5.67.0",
50
51
  "webpack-dev-server": "4.7.3",
51
52
  "webpack-manifest-plugin": "4.1.1",
52
53
  "webpack-node-externals": "3.0.0"
@@ -39,6 +39,7 @@ const webpackConfig = {
39
39
  },
40
40
  fallback: {
41
41
  fs: false,
42
+ https: require.resolve('https-browserify'),
42
43
  buffer: require.resolve('buffer/'),
43
44
  url: require.resolve('url/')
44
45
  },
@@ -66,7 +67,7 @@ const webpackConfig = {
66
67
  },
67
68
  plugins: [
68
69
  new webpack.ProvidePlugin({
69
- process: 'process/browser'
70
+ process: 'process/browser.js'
70
71
  }),
71
72
  new webpack.EnvironmentPlugin(envVars(config.env)),
72
73
  definePlugin({__DEV__: true}),
@@ -29,7 +29,6 @@ module.exports = {
29
29
  : MAIN_ENTRY_POINT,
30
30
  target: 'web',
31
31
  output: {
32
- jsonpFunction: 'suiWebpackJsonp',
33
32
  filename: 'index.js'
34
33
  },
35
34
  optimization: {
@@ -47,10 +46,5 @@ module.exports = {
47
46
  ]),
48
47
  module: {
49
48
  rules: [babelRules]
50
- },
51
- node: {
52
- fs: 'empty',
53
- net: 'empty',
54
- tls: 'empty'
55
49
  }
56
50
  }
@@ -49,6 +49,7 @@ const webpackConfig = {
49
49
  fallback: {
50
50
  assert: false,
51
51
  fs: false,
52
+ https: require.resolve('https-browserify'),
52
53
  path: false
53
54
  }
54
55
  },
@@ -19,6 +19,9 @@ const webpackConfig = {
19
19
  resolve: {
20
20
  alias: {...aliasFromConfig},
21
21
  extensions: ['.js', '.json'],
22
+ fallback: {
23
+ https: require.resolve('https-browserify')
24
+ },
22
25
  modules: ['node_modules', path.resolve(process.cwd())]
23
26
  },
24
27
  entry: './server.js',