@s-ui/bundler 9.37.0-typescript.0 → 9.37.0-typescript.2

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.
@@ -11,7 +11,7 @@ program
11
11
  .command('lib', 'Compile a library to a bundle with chunks.')
12
12
  .command(
13
13
  'analyzer',
14
- 'Compile all assets and create a HTML inpector for your bundle'
14
+ 'Compile all assets and create a HTML inspector for your bundle'
15
15
  )
16
16
 
17
17
  program.parse(process.argv)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "9.37.0-typescript.0",
3
+ "version": "9.37.0-typescript.2",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
@@ -1,7 +1,7 @@
1
1
  const path = require('path')
2
2
  const {config} = require('./index.js')
3
3
 
4
- const {TS: isTypeScript = false} = process.env
4
+ const isTypeScript = config?.parser?.syntax === 'typescript'
5
5
 
6
6
  const EXCLUDED_FOLDERS_REGEXP = new RegExp(
7
7
  `node_modules(?!${path.sep}@s-ui(${path.sep}studio)(${path.sep}workbench)?${path.sep}src)`
@@ -40,7 +40,10 @@ const webpackConfig = {
40
40
  http: require.resolve('stream-http'),
41
41
  https: require.resolve('https-browserify'),
42
42
  buffer: require.resolve('buffer/'),
43
- url: require.resolve('url/')
43
+ url: require.resolve('url/'),
44
+ stream: false,
45
+ zlib: false,
46
+ timers: false
44
47
  },
45
48
  modules: ['node_modules', path.resolve(process.cwd())],
46
49
  extensions: ['.js', '.tsx', '.ts', '.json']
@@ -61,7 +61,10 @@ const webpackConfig = {
61
61
  fs: false,
62
62
  http: require.resolve('stream-http'),
63
63
  https: require.resolve('https-browserify'),
64
- path: false
64
+ path: false,
65
+ stream: false,
66
+ zlib: false,
67
+ timers: false
65
68
  }
66
69
  },
67
70
  entry: MAIN_ENTRY_POINT,