-
-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(commonjs)!: Add support for circular dependencies (#658)
* feat(commonjs): Basic support for circular dependencies * refactor(commonjs): Inline __esModule handling into export generation * feat(commonjs): Generate simpler code when replacing module.exports * feat(commonjs): Handle side-effect free modules with updated Rollup * feat(commonjs): Generate simplified code when module is not used * feat(commonjs): Do not use module when wrapping if not needed BREAKING CHANGES: now requires at least Rollup 2.38.0 * chore(commonjs): Clean up usage of helpers * feat(commonjs): Inline name export assignments * feat(commonjs): Do not wrap for nested module.exports assignments * feat(commonjs): Wrap if accessing exports while reassigning module.exports * chore(commonjs): Add test for module.exports mutations * feat(commonjs): Do not wrap for double exports assignments * fix(commonjs): Deconflict nested module.exports assignments * chore(commonjs): Simplify assignment tracking * feat(commonjs): Do not wrap for nested named export assignments * chore(commonjs): Clean up remaining TODOs * fix(commonjs): Make sure require expressions return snapshots * fix(commonjs): Snapshot default export * chore(commonjs): Unwrapped wrapper helper functions * chore: update dependencies * chore: change audit level to high amid unfixable moderate Co-authored-by: Daniel Cohen Gindi <[email protected]> Co-authored-by: shellscape <[email protected]>
- Loading branch information
1 parent
9d9b359
commit 5fe760b
Showing
127 changed files
with
6,302 additions
and
7,354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.