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
If the file url is passed to import() and the module is a commonjs, then cjs->esm translation is not applied to that file in compat mode.
The text was updated successfully, but these errors were encountered:
kt3k
changed the title
compat: cjs to esm translation is not applied when a commonjs module is loaded with file:// scheme
compat: cjs to esm translation is not applied when a commonjs module is dynamically imported with file:// scheme
Feb 28, 2022
mocha
formats the importing specifier tofile://
-scheme url before callingimport()
ref: https://github.com/mochajs/mocha/blob/547ffd73535088322579d3d2026432112eae3d4b/lib/nodejs/esm-utils.js#L7If the file url is passed to
import()
and the module is a commonjs, then cjs->esm translation is not applied to that file in compat mode.The text was updated successfully, but these errors were encountered: