5 ms·
ESM has nice things too, like top-level-await and strict mode by default. Explicit imports/exports are better for autocomplete when TS is unavailable. I think
by Jarred 3y ago
ESM has nice things too, like top-level-await and strict mode by default. Explicit imports/exports are better for autocomplete when TS is unavailable.
I think the ESM slowness can eventually be compensated for but it will need spec changes. Possibly the defer import proposal.
But yeah, CommonJS is basically never going away.