@rollup/plugin-commonjs 22.0.0-2 → 22.0.0-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +5 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -7,7 +7,7 @@ import { walk } from 'estree-walker';
|
|
|
7
7
|
import MagicString from 'magic-string';
|
|
8
8
|
import isReference from 'is-reference';
|
|
9
9
|
|
|
10
|
-
var version = "
|
|
10
|
+
var version = "21.0.1";
|
|
11
11
|
var peerDependencies = {
|
|
12
12
|
rollup: "^2.60.0"
|
|
13
13
|
};
|
|
@@ -1587,9 +1587,10 @@ async function transformCommonjs(
|
|
|
1587
1587
|
if (scope.contains(flattened.name)) return;
|
|
1588
1588
|
|
|
1589
1589
|
if (
|
|
1590
|
-
|
|
1591
|
-
flattened.keypath === 'module' ||
|
|
1592
|
-
|
|
1590
|
+
!isEsModule &&
|
|
1591
|
+
(flattened.keypath === 'module.exports' ||
|
|
1592
|
+
flattened.keypath === 'module' ||
|
|
1593
|
+
flattened.keypath === 'exports')
|
|
1593
1594
|
) {
|
|
1594
1595
|
magicString.overwrite(node.start, node.end, `'object'`, {
|
|
1595
1596
|
storeName: false
|