chakra-core / ChakraCore

ChakraCore is an open source Javascript engine with a C API.
MIT License
9.06k stars 1.19k forks source link

Let Parser ignore TypseScript syntax #6954

Closed ShortDevelopment closed 1 month ago

ShortDevelopment commented 9 months ago

Idea

Since CC is now a standalone js engine it might be cool to have the capability to execute typescript files directly via CC to allow for a faster development cycle.

Implementation

This feature would work by just throwing away type information in the parser. It should be available via an opt-in flag.

Tasks

...


See https://github.com/chakra-core/ChakraCore/issues/1435#issuecomment-396316373

rhuanjl commented 2 months ago

I'm a little concerned about quite how intrusive this could be in the parser; would it be intended as a feature for an embedded use cases or just for testing with ch?

ShortDevelopment commented 2 months ago

This was just a general idea. It might be a nice feature to attract users (like bun does) but it of cause may not impact parsing performance.

The priority for this is definitely very low.