You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally, ESM would be supported in pages as well as component files, and the project would be rewritten to use ESM throughout.
Unfortunately, the Babel transform @babel/plugin-transform-modules-commonjs converts both static and dynamic imports to require calls (and, of course, you won’t be able to import ESM-only packages with a top-level import statement). As a result, it isn’t feasible to compile away the ESM code.
This is ~blocked on:
Node.js adding require.cache and require.extensions-like functionality to ESM loading
Ideally, ESM would be supported in pages as well as component files, and the project would be rewritten to use ESM throughout.
Unfortunately, the Babel transform
@babel/plugin-transform-modules-commonjs
converts both static and dynamicimport
s torequire
calls (and, of course, you won’t be able to import ESM-only packages with a top-levelimport
statement). As a result, it isn’t feasible to compile away the ESM code.This is ~blocked on:
require.cache
andrequire.extensions
-like functionality to ESM loadingThe text was updated successfully, but these errors were encountered: