forked from rollup/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
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 kill-switch for mixed es-cjs modules (rollup#358)
BREAKING CHANGE: Reverts default behavior of mixed es and cjs modules. Marked as a "breaking change", but the PR that raised this need was actually a breaking change for people who did not utilize include/exclude correctly and have variety of dependencies with mixed UMD mechanisms. * Implemented kill-switch for mixed commonjs in mixed es-cjs (Closes rollup#348, rollup#342) `transformMixedEsModules = false` * Update packages/commonjs/README.md Co-authored-by: Andrew Powell <shellscape@users.noreply.github.com> * Update index.d.ts Co-authored-by: Andrew Powell <shellscape@users.noreply.github.com>
- Loading branch information
1 parent
f6e3825
commit b3acf74
Showing
10 changed files
with
41 additions
and
5 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
5 changes: 5 additions & 0 deletions
5
packages/commonjs/test/fixtures/form/unambiguous-with-default-export/_config.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
options: { | ||
transformMixedEsModules: true | ||
} | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/commonjs/test/fixtures/form/unambiguous-with-import/_config.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
options: { | ||
transformMixedEsModules: true | ||
} | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/commonjs/test/fixtures/form/unambiguous-with-named-export/_config.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
options: { | ||
transformMixedEsModules: true | ||
} | ||
}; |
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
3 changes: 2 additions & 1 deletion
3
packages/commonjs/test/fixtures/function/dynamic-require-es-entry/_config.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
module.exports = { | ||
description: 'works when the entry point is an es module', | ||
pluginOptions: { | ||
dynamicRequireTargets: ['fixtures/function/dynamic-require-es-entry/submodule.js'] | ||
dynamicRequireTargets: ['fixtures/function/dynamic-require-es-entry/submodule.js'], | ||
transformMixedEsModules: true | ||
} | ||
}; |
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