@rollup/plugin-commonjs 26.0.2 → 26.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/cjs/index.js +2 -8
- package/dist/es/index.js +2 -8
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var estreeWalker = require('estree-walker');
|
|
|
11
11
|
var MagicString = require('magic-string');
|
|
12
12
|
var isReference = require('is-reference');
|
|
13
13
|
|
|
14
|
-
var version = "26.0.
|
|
14
|
+
var version = "26.0.3";
|
|
15
15
|
var peerDependencies = {
|
|
16
16
|
rollup: "^2.68.0||^3.0.0||^4.0.0"
|
|
17
17
|
};
|
|
@@ -1531,7 +1531,6 @@ async function transformCommonjs(
|
|
|
1531
1531
|
const topLevelAssignments = new Set();
|
|
1532
1532
|
const topLevelDefineCompiledEsmExpressions = [];
|
|
1533
1533
|
const replacedGlobal = [];
|
|
1534
|
-
const replacedThis = [];
|
|
1535
1534
|
const replacedDynamicRequires = [];
|
|
1536
1535
|
const importedVariables = new Set();
|
|
1537
1536
|
const indentExclusionRanges = [];
|
|
@@ -1799,7 +1798,7 @@ async function transformCommonjs(
|
|
|
1799
1798
|
if (lexicalDepth === 0 && !classBodyDepth) {
|
|
1800
1799
|
uses.global = true;
|
|
1801
1800
|
if (!ignoreGlobal) {
|
|
1802
|
-
|
|
1801
|
+
replacedGlobal.push(node);
|
|
1803
1802
|
}
|
|
1804
1803
|
}
|
|
1805
1804
|
return;
|
|
@@ -1874,11 +1873,6 @@ async function transformCommonjs(
|
|
|
1874
1873
|
storeName: true
|
|
1875
1874
|
});
|
|
1876
1875
|
}
|
|
1877
|
-
for (const node of replacedThis) {
|
|
1878
|
-
magicString.overwrite(node.start, node.end, exportsName, {
|
|
1879
|
-
storeName: true
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
1876
|
for (const node of replacedDynamicRequires) {
|
|
1883
1877
|
magicString.overwrite(
|
|
1884
1878
|
node.start,
|
package/dist/es/index.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 = "26.0.
|
|
10
|
+
var version = "26.0.3";
|
|
11
11
|
var peerDependencies = {
|
|
12
12
|
rollup: "^2.68.0||^3.0.0||^4.0.0"
|
|
13
13
|
};
|
|
@@ -1527,7 +1527,6 @@ async function transformCommonjs(
|
|
|
1527
1527
|
const topLevelAssignments = new Set();
|
|
1528
1528
|
const topLevelDefineCompiledEsmExpressions = [];
|
|
1529
1529
|
const replacedGlobal = [];
|
|
1530
|
-
const replacedThis = [];
|
|
1531
1530
|
const replacedDynamicRequires = [];
|
|
1532
1531
|
const importedVariables = new Set();
|
|
1533
1532
|
const indentExclusionRanges = [];
|
|
@@ -1795,7 +1794,7 @@ async function transformCommonjs(
|
|
|
1795
1794
|
if (lexicalDepth === 0 && !classBodyDepth) {
|
|
1796
1795
|
uses.global = true;
|
|
1797
1796
|
if (!ignoreGlobal) {
|
|
1798
|
-
|
|
1797
|
+
replacedGlobal.push(node);
|
|
1799
1798
|
}
|
|
1800
1799
|
}
|
|
1801
1800
|
return;
|
|
@@ -1870,11 +1869,6 @@ async function transformCommonjs(
|
|
|
1870
1869
|
storeName: true
|
|
1871
1870
|
});
|
|
1872
1871
|
}
|
|
1873
|
-
for (const node of replacedThis) {
|
|
1874
|
-
magicString.overwrite(node.start, node.end, exportsName, {
|
|
1875
|
-
storeName: true
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
1872
|
for (const node of replacedDynamicRequires) {
|
|
1879
1873
|
magicString.overwrite(
|
|
1880
1874
|
node.start,
|