rollup 3.29.3 → 3.29.5
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/bin/rollup +2 -2
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +11 -6
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/rollup.js +11 -6
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch-proxy.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
package/dist/bin/rollup
CHANGED
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.29.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.29.4
|
|
4
|
+
Sat, 21 Sep 2024 06:29:06 GMT - commit 2ef77c00ec2635d42697cff2c0567ccc8db34fb4
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ import { createHash as createHash$1 } from 'node:crypto';
|
|
|
15
15
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
16
16
|
import * as tty from 'tty';
|
|
17
17
|
|
|
18
|
-
var version$1 = "3.29.
|
|
18
|
+
var version$1 = "3.29.4";
|
|
19
19
|
|
|
20
20
|
const comma = ','.charCodeAt(0);
|
|
21
21
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -8825,8 +8825,13 @@ class FunctionBase extends NodeBase {
|
|
|
8825
8825
|
this.getObjectEntity().deoptimizePath(path);
|
|
8826
8826
|
if (path.length === 1 && path[0] === UnknownKey) {
|
|
8827
8827
|
// A reassignment of UNKNOWN_PATH is considered equivalent to having lost track
|
|
8828
|
-
// which means the return expression
|
|
8828
|
+
// which means the return expression and parameters need to be reassigned
|
|
8829
8829
|
this.scope.getReturnExpression().deoptimizePath(UNKNOWN_PATH);
|
|
8830
|
+
for (const parameterList of this.scope.parameters) {
|
|
8831
|
+
for (const parameter of parameterList) {
|
|
8832
|
+
parameter.deoptimizePath(UNKNOWN_PATH);
|
|
8833
|
+
}
|
|
8834
|
+
}
|
|
8830
8835
|
}
|
|
8831
8836
|
}
|
|
8832
8837
|
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
@@ -11854,7 +11859,7 @@ const accessedFileUrlGlobals = {
|
|
|
11854
11859
|
umd: ['document', 'require', 'URL']
|
|
11855
11860
|
};
|
|
11856
11861
|
const getResolveUrl = (path, URL = 'URL') => `new ${URL}(${path}).href`;
|
|
11857
|
-
const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.src || document.baseURI`);
|
|
11862
|
+
const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`);
|
|
11858
11863
|
const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
11859
11864
|
const urlMechanism = getUrl(chunkId);
|
|
11860
11865
|
return property === null
|
|
@@ -11865,7 +11870,7 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
|
11865
11870
|
};
|
|
11866
11871
|
const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
|
|
11867
11872
|
const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${path}'`);
|
|
11868
|
-
const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
|
|
11873
|
+
const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.tagName.toUpperCase() === 'SCRIPT' && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
|
|
11869
11874
|
const relativeUrlMechanisms = {
|
|
11870
11875
|
amd: relativePath => {
|
|
11871
11876
|
if (relativePath[0] !== '.')
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.29.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.29.4
|
|
4
|
+
Sat, 21 Sep 2024 06:29:06 GMT - commit 2ef77c00ec2635d42697cff2c0567ccc8db34fb4
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -30,7 +30,7 @@ function _interopNamespaceDefault(e) {
|
|
|
30
30
|
|
|
31
31
|
const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
|
|
32
32
|
|
|
33
|
-
var version$1 = "3.29.
|
|
33
|
+
var version$1 = "3.29.4";
|
|
34
34
|
|
|
35
35
|
function ensureArray$1(items) {
|
|
36
36
|
if (Array.isArray(items)) {
|
|
@@ -10324,8 +10324,13 @@ class FunctionBase extends NodeBase {
|
|
|
10324
10324
|
this.getObjectEntity().deoptimizePath(path);
|
|
10325
10325
|
if (path.length === 1 && path[0] === UnknownKey) {
|
|
10326
10326
|
// A reassignment of UNKNOWN_PATH is considered equivalent to having lost track
|
|
10327
|
-
// which means the return expression
|
|
10327
|
+
// which means the return expression and parameters need to be reassigned
|
|
10328
10328
|
this.scope.getReturnExpression().deoptimizePath(UNKNOWN_PATH);
|
|
10329
|
+
for (const parameterList of this.scope.parameters) {
|
|
10330
|
+
for (const parameter of parameterList) {
|
|
10331
|
+
parameter.deoptimizePath(UNKNOWN_PATH);
|
|
10332
|
+
}
|
|
10333
|
+
}
|
|
10329
10334
|
}
|
|
10330
10335
|
}
|
|
10331
10336
|
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
@@ -13353,7 +13358,7 @@ const accessedFileUrlGlobals = {
|
|
|
13353
13358
|
umd: ['document', 'require', 'URL']
|
|
13354
13359
|
};
|
|
13355
13360
|
const getResolveUrl = (path, URL = 'URL') => `new ${URL}(${path}).href`;
|
|
13356
|
-
const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.src || document.baseURI`);
|
|
13361
|
+
const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`);
|
|
13357
13362
|
const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
13358
13363
|
const urlMechanism = getUrl(chunkId);
|
|
13359
13364
|
return property === null
|
|
@@ -13364,7 +13369,7 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
|
13364
13369
|
};
|
|
13365
13370
|
const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
|
|
13366
13371
|
const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${path}'`);
|
|
13367
|
-
const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
|
|
13372
|
+
const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.tagName.toUpperCase() === 'SCRIPT' && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
|
|
13368
13373
|
const relativeUrlMechanisms = {
|
|
13369
13374
|
amd: relativePath => {
|
|
13370
13375
|
if (relativePath[0] !== '.')
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED