5 ms·
That's my point. They fixed and defined the ecosystem which is great. I feel like everyone is forgetting what a mess Node is right now.
by robust-cactus 3y ago
That's my point. They fixed and defined the ecosystem which is great. I feel like everyone is forgetting what a mess Node is right now.
- bartlomieju 3y agoJust to clarify - we do have support for node_modules/ resolution (with all of its quirks and gotchas), otherwise we wouldn't be able to load npm packages. However we made a hard stance that CommonJS is only supported in npm dependencies and cannot be used in user code (ie. you must use ESM in your application code).
- tracker1 3y agoUntil you try to build a TS project that imports an .mjs from node_modules that doesn't work right. Oh, set the project to type=module, nope, then other crap breaks. I mean, you can get it all working, but simple and easy are two words I would not use for modern node, especially when working with typescript.