Comments (7)
It was intentional as babel does not do type checking, but I'm considering implementing it.
from swc.
Typescript's type system gets new improvements with every minor version release. I don't see how it'd be a viable strategy for an alternative implementation to keep up with them - even if you have enough resources to keep up, you'd have to match it quirk for quirk to actually be compatible.
A lot of people separate transpiling and typechecking in their tools anyway - with some webpack plugins (awesome-typescript-loader) even forking separate processes to report typecheck errors outside the normal rebuild flow. So I don't think this is a necessary feature, though certainly a project that just tried to speed up typescript's typechecking would be appreciated.
from swc.
@kdy1 have you evaluated how much a moving target typescript really is?
from swc.
@kdy1 yes the type system is changing frequently and is not sound, full of corner cases; I'm guessing that it's a herculean job..
from swc.
@sledorze I didn't, but in one blog post they said they co-operated with babel team to make babel understand typescript. So I think trancompiler is not that hard to follow.
I'm not sure about type system though. Type system of typescript seems to be changing frequently..
from swc.
That makes sense! I didn't realize it changed so often. Now I just wish typescript would want to contribute and use this instead of their own checker.
Feel free to disregard this issue :)
from swc.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
from swc.
Related Issues (20)
- swc tries to parse `//# sourceMappingURL` from inside a string variable
- swc removes the backslash "\" when target is "es5" even if "minify" option is not set HOT 4
- 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 3
- 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
- SWC has stopped working in one of my projects HOT 2
- 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
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.