Giter Site home page Giter Site logo

Comments (7)

kdy1 avatar kdy1 commented on May 8, 2024 24

It was intentional as babel does not do type checking, but I'm considering implementing it.

from swc.

dgoldstein0 avatar dgoldstein0 commented on May 8, 2024 7

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.

sledorze avatar sledorze commented on May 8, 2024 3

@kdy1 have you evaluated how much a moving target typescript really is?

from swc.

sledorze avatar sledorze commented on May 8, 2024 1

@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.

kdy1 avatar kdy1 commented on May 8, 2024

@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.

jeromegn avatar jeromegn commented on May 8, 2024

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.

swc-bot avatar swc-bot commented on May 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.