Jackie McDoniel
Jackie McDoniel
That's great. I'm still waiting to find out what problem ESM solves with regards to Node and Typescript. Seems it's brought about way more headaches than solutions
> @jmcdo29 more and more node.js packages are switching to ESM. It can be very problematic to use this packages in a CJS module. E.g. I use node-fetch in my...
@JumpLink so when it comes down to it, it's really because "this is the new standard" more than anything else, yeah? > The JavaScript world would be much easier and...
> You could also use browser modules in node easier. Generally true until you start having the DOM types show up and Typescript starts throwing errors left and right because...
> @JumpLink summarizes the benefits and one addition to it is the security which is the main concern in the crypto world as many node_modules are easy to introduce threats...
As Kamil has already mentioned, there's concerns around how ESM integrate with Node packages, as you can see in the linked Fastify discussion. I understand that Angular is using ESM,...
I understand it's _possible_, but the question for us as maintainers is what kind of maintenance burden does this bring on us when something goes wrong on the ESM side?...
> @jmcdo29 @kamilmysliwiec Do you guys now have a position on this subject ? This is not my domain of expertise, but I see more and more libraries maintainer are...
Can't you still import mjs file though? Just using the `await import()` method instead of an `import` at the top of the file?
So, if we were to implement this, we'd essentially just end up calling `plainToClass` in the interceptor before re-calling `classToPlain`. If you really wanted, this could be implemented in another...