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)
- Ideas for `swc_alloactor`
- preserving annotations / magic comments
- minifier produces incorrect constant value on large floating-point value HOT 3
- `@swc/wasm-typescript` is failing on some architectures HOT 19
- minifier: cannot detect variable's value changed without using assignment operator HOT 4
- 1.7.0 nightly tagged on npm as "latest"? HOT 1
- 1.7.0 nightly tagged on npm as "latest"? HOT 1
- parse function does not add comments to ast HOT 2
- Typescript - enable assets option on .swcrc.json
- Upgrading @swc/core from 1.6.13 to 1.7.0 results in SIGILL (Illegal instruction) during build
- Minifier doesn't compress UpdateExpression and AssignmentExpression nodes if rhs is a literal HOT 4
- Add ESM exports to `@swc/wasm-typescript` HOT 1
- unknown variant `ESNext` HOT 3
- `swc_core::ecma::visit::visit_expr` is gone? HOT 2
- Binding ident has incorrect span with type annotation HOT 1
- some comments can't be visited
- `@swc/wasm-typescript` handling `() => <T>{}` HOT 2
- Object.assign(this, ...) does not work as expected in ES2020/ES2021 but works in ES2022 target HOT 1
- `quote_ident` inproperly references `DUMMY_SP`
- RFC: Use a flat structure for storing nodes instead of an AST
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.