swc
swc copied to clipboard
Rust-based platform for the Web
### Describe the feature Container Query is a very important new CSS feature that browsers are actively implementing. Currently, Chrome 105+ and Safari 16+ are shipped. - https://caniuse.com/css-container-queries - Spec...
### Describe the bug A case where function inlining made the output bigger instead of smaller ### Input code ```typescript function $parcel$export(a, b, c){a[b] = c;} $parcel$export(module.exports, "A", function ()...
### Describe the feature While there are a lot of things to be improved though, path to writing a transform plugin is somewhat simplified via support of SWC upstream (`swc_core`'s...
### Describe the bug --ignore option with -d option does not exclude given file from compile. To reproduce: 1. Create a directory `test` 2. Make two arbitrary js files (`a.js`,...
### Describe the bug Spack panics when attempting to bundle http-auth-utils and spits out the following error: ``` > npx spack --mode debug Panic: PanicInfo { payload: Any { .....
### Describe the bug I don't think the `typeAnnotation` should be attached on pat. ## 1. VarDeclarator The typeAnnotation should always be attached on the VarDeclarator, not the pat. ```TypeScript...
### Describe the bug swc generates erroneous code for private static class field access when the `externalHelpers` configuration option is enabled. Running the compiled input code (attached) throws an error...
Hi, I'm trying to use this to test a Next.js application where we are testing the actual App page component, however I am getting the following error `TypeError: Class constructor...
**Description:** SystemJS is totally different from CJS/AMD/UMD and I can't define a getter on exports because it uses the `export()` function. But I can use the same trick of class...
### Describe the bug This would require implementing `terser` `evaluate` method. ### Input code ```typescript let a = 'aaaa' if (a === 'aaaa') { console.log(a) } ``` ### Config _No...