3 ms·
EXACTLY!!! (Though I'd be happier with importSync() to identify the use of ESM packages.)
by tqwhite 2y ago
EXACTLY!!!
(Though I'd be happier with importSync() to identify the use of ESM packages.)
- paulddraper 2y agoImplementing it in require() allows a library to migrate from CJS to ESM, without breaking any of its downstream users.
- tqwhite 2y agoThat's fair. I worry a little about revising something this fundamental invisibly but, still, fair point.