I’d love to know why mandatory import assertions for JSON imports were backported from Node 17 to 16.4 when they’re a breaking change.

🙄

Follow

Ah, ’cos they’re still under the experimental flag. FML.

Also not sure why the default wasn’t just to assume the assertion without explicit syntax.

· · Web · 1 · 0 · 0

Ah, because you can also have .css modules. But, again, why not just go by the extension and enforce the assertion. I really don’t get what explicitly repeating that information does.

Sign in to participate in the conversation
Aral’s Mastodon

This is my personal Mastodon.