Comments (2)
Please provide a minimal reproduction.
I can't repro with your repository, and if you know the first version that breaks, it would also help
from swc.
My sincere apologies, this is my oversight.
I fixed the problem after opening this issue by pinning the @swc/core
version to one I knew that worked, specifically 1.2.50
. I then committed this change so this is the one you would have tried.
I have just tried to replicate the bug by cloning the repository again and doing the following:
npm install @swc/core@latest
However I now cannot replicate it either.
I also stupidly did not supply you with the exact SWC version when I opened this issue. Not the one in the package.json
file but the actual one that got installed when I ran npm install
. So now I guess we are stuck.
I did not imagine the bug, however. It seemed to be a case of SWC not reading the configuration file, or at least not reading it properly, because it was not compiling the JSX.
I will leave the issue closed. It is up to you if you want to pursue this any further. In a meantime I have pinned the version in all of my repositories, around fifty in all:
"@swc/core": "1.2.50"
At some later date I will un-pin it again and if the bug resurfaces then I will let you know.
from swc.
Related Issues (20)
- Regression in `v1.4.15`: `ReferenceError: resource is not defined` in strict mode
- HTML minifier’s elision of `<body>` next to `<noscript>` leads to invalid HTML
- ReferenceError Cannot access 'xxx' before initialization HOT 4
- Minify bug when `unused` set to false HOT 3
- Update Benchmarks with recent measurement HOT 1
- Why do you keep changing this version? HOT 2
- Minify: multiple same temp symbols declarations
- swc/jest not support array.with HOT 2
- `Object.getOwnPropertyDescriptor` is not polyfilled in ES5 HOT 1
- Keep `assert` and `with` keywords as is HOT 4
- swc_css parse `filter: progid:DXImageTransform.Microsoft.Matrix(x1, x2)` error HOT 1
- The transformer generate incorrect code when referencing variables declared using `using` from closures
- Not generated @swc/core-darwin-x64 package HOT 1
- `@swc/core-darwin-x64` version `1.5.1` didn't release correctly? HOT 1
- `@swc/core-darwin-x64` version `1.5.1` didn't release correctly? HOT 8
- typescript: literal constructor references of a decorated class reference un-decorated class's constructor, when used inside decorated class HOT 3
- [SWC Jest] Jest Mocking issues with built-in modules with / in import like dns/promises HOT 1
- Minifier removes function wrapper causing variables to become globals since 1.3.71 HOT 2
- Getting a ton of "relative URL without a base". HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swc.