4 ms·
> Will it work with ES Modules (ESM) and CommonJS (CJS) style imports? It's so frustrating that in 2023 this is still a concern. It's probably a bad idea when
by game_the0ry 3y ago
> Will it work with ES Modules (ESM) and CommonJS (CJS) style imports?
It's so frustrating that in 2023 this is still a concern. It's probably a bad idea when we adopt the latest JS language standards before they are implemented in the runtime env. Transpiling sucks.
- zdragnar 3y agoThe problem is there isn't one runtime env, there are many. On top of that, being implemented in at least two different environments is a prerequisite to get finalized as a standard per the tc39 process. I agree with you when it comes to things that aren't far along- the decorator goat rodeo is a good example, but on the whole transpiling is essentially a part of the process now.