CPunisher
CPunisher
It seems that comments(`cmd+/`) and auto closing pairs are not supported in the demo
**Description:** https://play.swc.rs/?version=1.6.5&code=H4sIAAAAAAAAA9PXVygvyixJVcgvUihILAYykvNTUhUyUotSubjKEosUwlNTs10SKxVsFfS1lOPjA0KDXOPjtfQVNNJK85JLMvPzFDSgSow0Faq5FGAajPQSgXqUgkvzUhIrlayBEkWpJaVFeXB5rlpNmE6FmhqF6lpNay4ADxpWp44AAAA%3D&config=H4sIAAAAAAAAA4WVO47jMAxA%2B5wiUD3FIsUWc4Dt5gyCYlGOsvoYIpWJMcjdl7aTiSdr2q4M8okUv%2Fra7ffqjI1633%2Fx7%2FSpzhSE8kPGUuwTmStLFTTRYFN8R%2BptTpxxUDsTEL7FtyehQs4ID2Imjz5517%2F6a3LsCiC%2ByFljSlsjJML%2Fbd31JX8OSir1VXfMOYBJG1ptUPtE0EKRnDQ5BNMh6IspgrUhAlM8ZsndAFQCq7uSO5FJ1pPPie%2BwTFgwVjfZgqD2BRryF5COs28%2BnpBDF2IdEQvH2rZjXyxYgYsJ1ZBwB7iOpeQoBA%2Bn7JG0q0lK9wSs5GkC7sVYsuCdLkC1pOXz5%2BzTSi3%2FAnCWgkFMJoLkY6Qc9%2BeaFbdpwSfHI0G9wPAcSVlI0HIRtPdOqMSQQSjkpW4oYGsDQyUa6Yp3ZCXV6C1ocI77TnCDn56ak3QJ6jvITlByjxgndeqk1N8bYIUZhm8D%2BcNZILlp71Q0dFonsI%2FHHDacRaBTthsQl4%2FyOlJ4a127daYmC9xiYEWs4qhcXkg8aJR1AJJ6jEeRres25ONzbc2g2%2FyEiia1z92z%2BHQQz9ToTgEefh0O%2FPDsZszzCZlFozx%2BZFvDz0lQ8SF7vCpju02mf6vJ6u72Dzzk3g4aBwAA The above code will not be optimized in SWC but will be optimized in Terser. Terser analyzes variable usage step-by-step, so it first determines whether WeekDay is used...
## Summary Webpack reguard `super[foo]()` as MemberExpression, but swc distinguishes them. So there should be an extra check. closes https://github.com/web-infra-dev/rspack/issues/7477 ## Checklist - [ ] Tests updated (or not required)....
## Summary ## Checklist ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#automatic_semicolon_insertion and [acorn](https://github.com/acornjs/acorn/blob/master/acorn/src/statement.js) (search `this.semicolon()`) But I dont know how to construct the test case for ClassField closes https://github.com/web-infra-dev/rspack/issues/7527 - [ ] Tests updated (or...
Currently, napi checks visibility in four places (by searching for `Visibility::Public`): 1. All struct fields should be public when marking the struct as constructor or object shape 2. Methods in...
## Summary closes https://github.com/web-infra-dev/rspack/issues/3738 closes https://github.com/web-infra-dev/rspack/issues/7723 TODOs or existing bugs to fix: - [ ] Resolver options of referenced modules should extend their parent modules'. Related to https://github.com/web-infra-dev/rspack/blob/833c058da7a9d1c2a15cd9be49065d7c75c7ed7a/tests/webpack-test/cases/loaders/issue-4959/loaders/index.js, "b" is...
## Summary closes https://github.com/web-infra-dev/rspack/issues/4304 Because rspack has not supported some API yet, this pr doesn't fully align `require.ensure` to webpack. But I think it's enough to use. 1. [Webpack calls...
## Summary ## Checklist Assume: 1. Creating an `SwcLoaderJsOptions` is costly 2. Most modules are created with same swc loader options Cost: 1. `RwLock` and concurrent runtime. Maybe there is...
**Description:** **BREAKING CHANGE:** **Related issue (if exists):**