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
Fixed two issues in fix-commonjs-exports.mjs:
1. Stray semicolons after comment placeholders
- Now properly consumes the semicolon when replacing module.exports statement
- Prevents: `/* module.exports will be set at end of file */;`
2. Double module prefix in module.exports.default
- Skip transformation when 'exports.default' is already preceded by 'module.'
- Prevents: `module.module.exports` (was incorrectly transforming `module.exports.default`)
These fixes ensure external dependencies like yoctocolors-cjs export correctly
and modules with export default work without errors.
0 commit comments