rust-playground
rust-playground copied to clipboard
Bump typescript and prettier versions
This PR will upgrade TS to 4.7 and also prettier to 2.7.1 in order to support TS 4.7 syntax.
Webpack Build Time in production mode
on my machine (macOS 11.6.7), it seems the upgrade can help webpack production build run faster 🤔
Before
→ time yarn build:production
yarn run v1.22.17
$ webpack --progress --color --mode production
assets by path *.js 3.9 MiB
assets by chunk 3.49 MiB (id hint: vendors)
assets by status 3.33 MiB [big] 3 assets
asset 35a974a68b896c5af82b.js 104 KiB [emitted] [immutable] [minimized] (name: ace-keybinding-vim) (id hint: vendors) 1 related asset
asset fa85991cc5c4bf35e0fe.js 27 KiB [emitted] [immutable] [minimized] (name: ace-theme-ambiance) (id hint: vendors) 1 related asset
asset f22d811d2ef88a1c1a3a.js 23.3 KiB [emitted] [immutable] [minimized] (name: ace-keybinding-emacs) (id hint: vendors) 1 related asset
+ 44 assets
assets by path *.css 230 KiB
asset 591bff5e40bf8d934071.css 211 KiB [emitted] [immutable] (id hint: vendors) 1 related asset
asset 58e1697ca2d3f597e29e.css 18 KiB [emitted] [immutable] (name: main) 1 related asset
asset 04548a1d8c45ffc6c77c.css 1.77 KiB [emitted] [immutable] [from: node_modules/prismjs/themes/prism-okaidia.css] (auxiliary id hint: vendors) 1 related asset
assets by path ../ 627 bytes
asset ../index.html 603 bytes [emitted] 1 related asset
asset ../robots.txt 24 bytes [emitted] [from: robots.txt] [copied]
Entrypoint main [big] 487 KiB (1.77 KiB) = cddb41c5f0cfbdedc1b7.js 365 KiB 58e1697ca2d3f597e29e.css 18 KiB 1465e09c51853094f2cd.js 104 KiB 1 auxiliary asset
orphan modules 3.93 MiB (javascript) 975 bytes (runtime) [orphan] 729 modules
runtime modules 100 KiB 403 modules
built modules 8.63 MiB (javascript) 229 KiB (css/mini-extract) 1.77 KiB (asset) [built]
javascript modules 8.63 MiB
modules by path ./node_modules/ 8.43 MiB 791 modules
modules by path ./editor/ 8.21 KiB 3 modules
./index.tsx + 99 modules 198 KiB [built] [code generated]
./util.inspect (ignored) 15 bytes [built] [code generated]
css modules 229 KiB
modules by path ./node_modules/ 217 KiB 71 modules
modules by path ./*.css 10.7 KiB 21 modules
modules by path ./Output/ 1.01 KiB 5 modules
css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].oneOf[1].use[1]!./node_modules/postcss-loader/dist/cjs.js!./editor/Editor.module.css 194 bytes [built] [code generated]
./node_modules/prismjs/themes/prism-okaidia.css 42 bytes (javascript) 1.77 KiB (asset) [built] [code generated]
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
591bff5e40bf8d934071.js (2.57 MiB)
61aa61eb6a17f6d8b4e2.js (414 KiB)
cddb41c5f0cfbdedc1b7.js (365 KiB)
591bff5e40bf8d934071.js.gz (667 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (487 KiB)
cddb41c5f0cfbdedc1b7.js
58e1697ca2d3f597e29e.css
1465e09c51853094f2cd.js
webpack 5.72.1 compiled with 2 warnings in 42283 ms
✨ Done in 49.84s.
yarn build:production 99.87s user 8.79s system 217% cpu 50.031 total
After
→ time yarn build:production
yarn run v1.22.17
$ webpack --progress --color --mode production
assets by status 1.77 KiB [cached] 1 asset
assets by path *.js 3.9 MiB
assets by chunk 3.49 MiB (id hint: vendors)
assets by status 3.33 MiB [big] 3 assets
asset 35a974a68b896c5af82b.js 104 KiB [emitted] [immutable] [minimized] (name: ace-keybinding-vim) (id hint: vendors) 1 related asset
asset fa85991cc5c4bf35e0fe.js 27 KiB [emitted] [immutable] [minimized] (name: ace-theme-ambiance) (id hint: vendors) 1 related asset
asset f22d811d2ef88a1c1a3a.js 23.3 KiB [emitted] [immutable] [minimized] (name: ace-keybinding-emacs) (id hint: vendors) 1 related asset
+ 44 assets
assets by path *.css 229 KiB
asset 591bff5e40bf8d934071.css 211 KiB [emitted] [immutable] (id hint: vendors) 1 related asset
asset 58e1697ca2d3f597e29e.css 18 KiB [emitted] [immutable] (name: main) 1 related asset
assets by path ../ 627 bytes
asset ../index.html 603 bytes [emitted] 1 related asset
asset ../robots.txt 24 bytes [compared for emit] [from: robots.txt] [copied]
Entrypoint main [big] 487 KiB (1.77 KiB) = cddb41c5f0cfbdedc1b7.js 365 KiB 58e1697ca2d3f597e29e.css 18 KiB 1465e09c51853094f2cd.js 104 KiB 1 auxiliary asset
orphan modules 3.93 MiB (javascript) 975 bytes (runtime) [orphan] 729 modules
runtime modules 100 KiB 403 modules
built modules 8.63 MiB (javascript) 229 KiB (css/mini-extract) 1.77 KiB (asset) [built]
javascript modules 8.63 MiB
modules by path ./node_modules/ 8.43 MiB 791 modules
modules by path ./editor/ 8.21 KiB 3 modules
./index.tsx + 99 modules 198 KiB [built] [code generated]
./util.inspect (ignored) 15 bytes [built] [code generated]
css modules 229 KiB
modules by path ./node_modules/ 217 KiB 71 modules
modules by path ./*.css 10.7 KiB 21 modules
modules by path ./Output/ 1.01 KiB 5 modules
css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].oneOf[1].use[1]!./node_modules/postcss-loader/dist/cjs.js!./editor/Editor.module.css 194 bytes [built] [code generated]
./node_modules/prismjs/themes/prism-okaidia.css 42 bytes (javascript) 1.77 KiB (asset) [built] [code generated]
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
591bff5e40bf8d934071.js (2.57 MiB)
61aa61eb6a17f6d8b4e2.js (414 KiB)
cddb41c5f0cfbdedc1b7.js (365 KiB)
591bff5e40bf8d934071.js.gz (667 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (487 KiB)
cddb41c5f0cfbdedc1b7.js
58e1697ca2d3f597e29e.css
1465e09c51853094f2cd.js
webpack 5.72.1 compiled with 2 warnings in 33422 ms
✨ Done in 39.26s.
yarn build:production 84.09s user 5.64s system 227% cpu 39.451 total