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
#500 removes support for CommonJS from Compartment Mapper to eliminate a dependency on Babel that interferes with RESM+Rollup by capturing a dependency on the Node.js readable stream built-in-module.
To get CommonJS back, it might be better to borrow @guybedford’s lexer, convert it to ESM, and teach it to discover static requires in addition to exports and reexports:
#500 removes support for CommonJS from Compartment Mapper to eliminate a dependency on Babel that interferes with RESM+Rollup by capturing a dependency on the Node.js readable stream built-in-module.
To get CommonJS back, it might be better to borrow @guybedford’s lexer, convert it to ESM, and teach it to discover static requires in addition to exports and reexports:
https://github.com/guybedford/cjs-module-lexer/blob/master/lexer.js
The text was updated successfully, but these errors were encountered: