@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.js
CHANGED
|
@@ -16,7 +16,7 @@ var glob__default = /*#__PURE__*/_interopDefaultLegacy(glob);
|
|
|
16
16
|
var MagicString__default = /*#__PURE__*/_interopDefaultLegacy(MagicString);
|
|
17
17
|
var isReference__default = /*#__PURE__*/_interopDefaultLegacy(isReference);
|
|
18
18
|
|
|
19
|
-
var version = "
|
|
19
|
+
var version = "21.0.1";
|
|
20
20
|
var peerDependencies = {
|
|
21
21
|
rollup: "^2.60.0"
|
|
22
22
|
};
|
|
@@ -1596,9 +1596,10 @@ async function transformCommonjs(
|
|
|
1596
1596
|
if (scope.contains(flattened.name)) return;
|
|
1597
1597
|
|
|
1598
1598
|
if (
|
|
1599
|
-
|
|
1600
|
-
flattened.keypath === 'module' ||
|
|
1601
|
-
|
|
1599
|
+
!isEsModule &&
|
|
1600
|
+
(flattened.keypath === 'module.exports' ||
|
|
1601
|
+
flattened.keypath === 'module' ||
|
|
1602
|
+
flattened.keypath === 'exports')
|
|
1602
1603
|
) {
|
|
1603
1604
|
magicString.overwrite(node.start, node.end, `'object'`, {
|
|
1604
1605
|
storeName: false
|