Skip to content

Conversation

@cyfung1031
Copy link
Collaborator

@cyfung1031 cyfung1031 commented Feb 2, 2026

打包代码

(打包后的大小也缩减了 0.2MB)

修改前

Screenshot 2026-02-02 at 20 56 50

修改后

Screenshot 2026-02-02 at 20 56 08

tsconfig - compilerOptions

早已使用 ES2020
Screenshot 2026-02-02 at 20 59 45

rspack.LightningCssMinimizerRspackPlugin

Screenshot 2026-02-02 at 21 00 13 Screenshot 2026-02-02 at 21 00 24

这里的对像也是 es2020 的支持浏览器

Feature ES version Chrome 87 FF 78 Safari 14
Rest params ES2015
Classes ES2015
async / await ES2017
Optional chaining ?. ES2020
Nullish coalescing ?? ES2020
BigInt ES2020
Promise.allSettled ES2020

https://caniuse.com/?feats=mdn-javascript_operators_optional_chaining%2Cmdn-javascript_operators_nullish_coalescing%2Cmdn-javascript_builtins_globalthis%2Ces6-module-dynamic-import%2Cbigint%2Cmdn-javascript_builtins_promise_allsettled%2Cmdn-javascript_builtins_string_matchall%2Cmdn-javascript_statements_export_namespace%2Cmdn-javascript_operators_import_meta

@CodFrm
Copy link
Member

CodFrm commented Feb 3, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants