@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.
package/bin/sui-bundler.js
CHANGED
|
@@ -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
|
|
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,7 +1,7 @@
|
|
|
1
1
|
const path = require('path')
|
|
2
2
|
const {config} = require('./index.js')
|
|
3
3
|
|
|
4
|
-
const
|
|
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)`
|
package/webpack.config.dev.js
CHANGED
|
@@ -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']
|
package/webpack.config.prod.js
CHANGED