rollup 4.27.0-0 → 4.27.0
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/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +42 -37
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.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/parseAst.js +2 -2
- package/dist/shared/rollup.js +42 -37
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +24 -24
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.27.0
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.27.0
|
|
5
|
+
Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.27.0
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.27.0
|
|
4
|
+
Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
|
|
|
16
16
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
17
17
|
import * as tty from 'tty';
|
|
18
18
|
|
|
19
|
-
var version = "4.27.0
|
|
19
|
+
var version = "4.27.0";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -1945,54 +1945,56 @@ function renderSystemExportSequenceBeforeExpression(exportedVariable, expression
|
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
1947
|
|
|
1948
|
-
/** @
|
|
1949
|
-
/** @typedef {Node | {
|
|
1950
|
-
* type: 'PropertyDefinition';
|
|
1951
|
-
* computed: boolean;
|
|
1952
|
-
* value: Node
|
|
1953
|
-
* }} NodeWithPropertyDefinition */
|
|
1948
|
+
/** @import { Node } from 'estree' */
|
|
1954
1949
|
|
|
1955
1950
|
/**
|
|
1956
|
-
*
|
|
1957
|
-
* @param {
|
|
1958
|
-
* @param {NodeWithPropertyDefinition} parent
|
|
1951
|
+
* @param {Node} node
|
|
1952
|
+
* @param {Node} parent
|
|
1959
1953
|
* @returns {boolean}
|
|
1960
1954
|
*/
|
|
1961
|
-
function is_reference
|
|
1955
|
+
function is_reference(node, parent) {
|
|
1962
1956
|
if (node.type === 'MemberExpression') {
|
|
1963
1957
|
return !node.computed && is_reference(node.object, node);
|
|
1964
1958
|
}
|
|
1965
1959
|
|
|
1966
|
-
if (node.type
|
|
1967
|
-
if (!parent) return true;
|
|
1960
|
+
if (node.type !== 'Identifier') return false;
|
|
1968
1961
|
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1962
|
+
switch (parent?.type) {
|
|
1963
|
+
// disregard `bar` in `foo.bar`
|
|
1964
|
+
case 'MemberExpression':
|
|
1965
|
+
return parent.computed || node === parent.object;
|
|
1972
1966
|
|
|
1973
|
-
|
|
1974
|
-
|
|
1967
|
+
// disregard the `foo` in `class {foo(){}}` but keep it in `class {[foo](){}}`
|
|
1968
|
+
case 'MethodDefinition':
|
|
1969
|
+
return parent.computed;
|
|
1975
1970
|
|
|
1976
|
-
|
|
1977
|
-
|
|
1971
|
+
// disregard the `meta` in `import.meta`
|
|
1972
|
+
case 'MetaProperty':
|
|
1973
|
+
return parent.meta === node;
|
|
1978
1974
|
|
|
1979
|
-
|
|
1980
|
-
|
|
1975
|
+
// disregard the `foo` in `class {foo=bar}` but keep it in `class {[foo]=bar}` and `class {bar=foo}`
|
|
1976
|
+
case 'PropertyDefinition':
|
|
1977
|
+
return parent.computed || node === parent.value;
|
|
1981
1978
|
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
case 'ImportSpecifier': return node === parent.local;
|
|
1979
|
+
// disregard the `bar` in `{ bar: foo }`, but keep it in `{ [bar]: foo }`
|
|
1980
|
+
case 'Property':
|
|
1981
|
+
return parent.computed || node === parent.value;
|
|
1986
1982
|
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1983
|
+
// disregard the `bar` in `export { foo as bar }` or
|
|
1984
|
+
// the foo in `import { foo as bar }`
|
|
1985
|
+
case 'ExportSpecifier':
|
|
1986
|
+
case 'ImportSpecifier':
|
|
1987
|
+
return node === parent.local;
|
|
1988
|
+
|
|
1989
|
+
// disregard the `foo` in `foo: while (...) { ... break foo; ... continue foo;}`
|
|
1990
|
+
case 'LabeledStatement':
|
|
1991
|
+
case 'BreakStatement':
|
|
1992
|
+
case 'ContinueStatement':
|
|
1993
|
+
return false;
|
|
1994
1994
|
|
|
1995
|
-
|
|
1995
|
+
default:
|
|
1996
|
+
return true;
|
|
1997
|
+
}
|
|
1996
1998
|
}
|
|
1997
1999
|
|
|
1998
2000
|
function getOrCreate(map, key, init) {
|
|
@@ -5229,6 +5231,9 @@ class Identifier extends IdentifierBase {
|
|
|
5229
5231
|
propertyReadSideEffects &&
|
|
5230
5232
|
(propertyReadSideEffects === 'always' ||
|
|
5231
5233
|
init.hasEffectsOnInteractionAtPath(destructuredInitPath, NODE_INTERACTION_UNKNOWN_ACCESS, createHasEffectsContext())))) {
|
|
5234
|
+
if (this.variable && !this.variable.included) {
|
|
5235
|
+
this.scope.context.includeVariableInModule(this.variable, EMPTY_PATH);
|
|
5236
|
+
}
|
|
5232
5237
|
init.includePath(destructuredInitPath, context, false);
|
|
5233
5238
|
return true;
|
|
5234
5239
|
}
|
|
@@ -16995,7 +17000,7 @@ const hashPlaceholderLeft = '!~{';
|
|
|
16995
17000
|
const hashPlaceholderRight = '}~';
|
|
16996
17001
|
const hashPlaceholderOverhead = hashPlaceholderLeft.length + hashPlaceholderRight.length;
|
|
16997
17002
|
// This is the size of a 128-bits xxhash with base64url encoding
|
|
16998
|
-
const MAX_HASH_SIZE =
|
|
17003
|
+
const MAX_HASH_SIZE = 21;
|
|
16999
17004
|
const DEFAULT_HASH_SIZE = 8;
|
|
17000
17005
|
const getHashPlaceholderGenerator = () => {
|
|
17001
17006
|
let nextIndex = 0;
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.27.0
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.27.0
|
|
4
|
+
Fri, 15 Nov 2024 10:40:04 GMT - commit c035068dfebeb959a35a8acf3ff008a249e2af73
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
|
|
|
31
31
|
|
|
32
32
|
const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
|
|
33
33
|
|
|
34
|
-
var version = "4.27.0
|
|
34
|
+
var version = "4.27.0";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -104,7 +104,7 @@ const hashPlaceholderLeft = '!~{';
|
|
|
104
104
|
const hashPlaceholderRight = '}~';
|
|
105
105
|
const hashPlaceholderOverhead = hashPlaceholderLeft.length + hashPlaceholderRight.length;
|
|
106
106
|
// This is the size of a 128-bits xxhash with base64url encoding
|
|
107
|
-
const MAX_HASH_SIZE =
|
|
107
|
+
const MAX_HASH_SIZE = 21;
|
|
108
108
|
const DEFAULT_HASH_SIZE = 8;
|
|
109
109
|
const getHashPlaceholderGenerator = () => {
|
|
110
110
|
let nextIndex = 0;
|
|
@@ -3478,54 +3478,56 @@ function renderSystemExportSequenceBeforeExpression(exportedVariable, expression
|
|
|
3478
3478
|
}
|
|
3479
3479
|
}
|
|
3480
3480
|
|
|
3481
|
-
/** @
|
|
3482
|
-
/** @typedef {Node | {
|
|
3483
|
-
* type: 'PropertyDefinition';
|
|
3484
|
-
* computed: boolean;
|
|
3485
|
-
* value: Node
|
|
3486
|
-
* }} NodeWithPropertyDefinition */
|
|
3481
|
+
/** @import { Node } from 'estree' */
|
|
3487
3482
|
|
|
3488
3483
|
/**
|
|
3489
|
-
*
|
|
3490
|
-
* @param {
|
|
3491
|
-
* @param {NodeWithPropertyDefinition} parent
|
|
3484
|
+
* @param {Node} node
|
|
3485
|
+
* @param {Node} parent
|
|
3492
3486
|
* @returns {boolean}
|
|
3493
3487
|
*/
|
|
3494
|
-
function is_reference
|
|
3488
|
+
function is_reference(node, parent) {
|
|
3495
3489
|
if (node.type === 'MemberExpression') {
|
|
3496
3490
|
return !node.computed && is_reference(node.object, node);
|
|
3497
3491
|
}
|
|
3498
3492
|
|
|
3499
|
-
if (node.type
|
|
3500
|
-
if (!parent) return true;
|
|
3493
|
+
if (node.type !== 'Identifier') return false;
|
|
3501
3494
|
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3495
|
+
switch (parent?.type) {
|
|
3496
|
+
// disregard `bar` in `foo.bar`
|
|
3497
|
+
case 'MemberExpression':
|
|
3498
|
+
return parent.computed || node === parent.object;
|
|
3505
3499
|
|
|
3506
|
-
|
|
3507
|
-
|
|
3500
|
+
// disregard the `foo` in `class {foo(){}}` but keep it in `class {[foo](){}}`
|
|
3501
|
+
case 'MethodDefinition':
|
|
3502
|
+
return parent.computed;
|
|
3508
3503
|
|
|
3509
|
-
|
|
3510
|
-
|
|
3504
|
+
// disregard the `meta` in `import.meta`
|
|
3505
|
+
case 'MetaProperty':
|
|
3506
|
+
return parent.meta === node;
|
|
3511
3507
|
|
|
3512
|
-
|
|
3513
|
-
|
|
3508
|
+
// disregard the `foo` in `class {foo=bar}` but keep it in `class {[foo]=bar}` and `class {bar=foo}`
|
|
3509
|
+
case 'PropertyDefinition':
|
|
3510
|
+
return parent.computed || node === parent.value;
|
|
3514
3511
|
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
case 'ImportSpecifier': return node === parent.local;
|
|
3512
|
+
// disregard the `bar` in `{ bar: foo }`, but keep it in `{ [bar]: foo }`
|
|
3513
|
+
case 'Property':
|
|
3514
|
+
return parent.computed || node === parent.value;
|
|
3519
3515
|
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3516
|
+
// disregard the `bar` in `export { foo as bar }` or
|
|
3517
|
+
// the foo in `import { foo as bar }`
|
|
3518
|
+
case 'ExportSpecifier':
|
|
3519
|
+
case 'ImportSpecifier':
|
|
3520
|
+
return node === parent.local;
|
|
3521
|
+
|
|
3522
|
+
// disregard the `foo` in `foo: while (...) { ... break foo; ... continue foo;}`
|
|
3523
|
+
case 'LabeledStatement':
|
|
3524
|
+
case 'BreakStatement':
|
|
3525
|
+
case 'ContinueStatement':
|
|
3526
|
+
return false;
|
|
3527
3527
|
|
|
3528
|
-
|
|
3528
|
+
default:
|
|
3529
|
+
return true;
|
|
3530
|
+
}
|
|
3529
3531
|
}
|
|
3530
3532
|
|
|
3531
3533
|
const UnknownKey = Symbol('Unknown Key');
|
|
@@ -6744,6 +6746,9 @@ class Identifier extends IdentifierBase {
|
|
|
6744
6746
|
propertyReadSideEffects &&
|
|
6745
6747
|
(propertyReadSideEffects === 'always' ||
|
|
6746
6748
|
init.hasEffectsOnInteractionAtPath(destructuredInitPath, NODE_INTERACTION_UNKNOWN_ACCESS, createHasEffectsContext())))) {
|
|
6749
|
+
if (this.variable && !this.variable.included) {
|
|
6750
|
+
this.scope.context.includeVariableInModule(this.variable, EMPTY_PATH);
|
|
6751
|
+
}
|
|
6747
6752
|
init.includePath(destructuredInitPath, context, false);
|
|
6748
6753
|
return true;
|
|
6749
6754
|
}
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "4.27.0
|
|
3
|
+
"version": "4.27.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -109,24 +109,24 @@
|
|
|
109
109
|
"homepage": "https://rollupjs.org/",
|
|
110
110
|
"optionalDependencies": {
|
|
111
111
|
"fsevents": "~2.3.2",
|
|
112
|
-
"@rollup/rollup-darwin-arm64": "4.27.0
|
|
113
|
-
"@rollup/rollup-android-arm64": "4.27.0
|
|
114
|
-
"@rollup/rollup-win32-arm64-msvc": "4.27.0
|
|
115
|
-
"@rollup/rollup-freebsd-arm64": "4.27.0
|
|
116
|
-
"@rollup/rollup-linux-arm64-gnu": "4.27.0
|
|
117
|
-
"@rollup/rollup-linux-arm64-musl": "4.27.0
|
|
118
|
-
"@rollup/rollup-android-arm-eabi": "4.27.0
|
|
119
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.27.0
|
|
120
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.27.0
|
|
121
|
-
"@rollup/rollup-win32-ia32-msvc": "4.27.0
|
|
122
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.27.0
|
|
123
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "4.27.0
|
|
124
|
-
"@rollup/rollup-linux-s390x-gnu": "4.27.0
|
|
125
|
-
"@rollup/rollup-darwin-x64": "4.27.0
|
|
126
|
-
"@rollup/rollup-win32-x64-msvc": "4.27.0
|
|
127
|
-
"@rollup/rollup-freebsd-x64": "4.27.0
|
|
128
|
-
"@rollup/rollup-linux-x64-gnu": "4.27.0
|
|
129
|
-
"@rollup/rollup-linux-x64-musl": "4.27.0
|
|
112
|
+
"@rollup/rollup-darwin-arm64": "4.27.0",
|
|
113
|
+
"@rollup/rollup-android-arm64": "4.27.0",
|
|
114
|
+
"@rollup/rollup-win32-arm64-msvc": "4.27.0",
|
|
115
|
+
"@rollup/rollup-freebsd-arm64": "4.27.0",
|
|
116
|
+
"@rollup/rollup-linux-arm64-gnu": "4.27.0",
|
|
117
|
+
"@rollup/rollup-linux-arm64-musl": "4.27.0",
|
|
118
|
+
"@rollup/rollup-android-arm-eabi": "4.27.0",
|
|
119
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.27.0",
|
|
120
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.27.0",
|
|
121
|
+
"@rollup/rollup-win32-ia32-msvc": "4.27.0",
|
|
122
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.27.0",
|
|
123
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.27.0",
|
|
124
|
+
"@rollup/rollup-linux-s390x-gnu": "4.27.0",
|
|
125
|
+
"@rollup/rollup-darwin-x64": "4.27.0",
|
|
126
|
+
"@rollup/rollup-win32-x64-msvc": "4.27.0",
|
|
127
|
+
"@rollup/rollup-freebsd-x64": "4.27.0",
|
|
128
|
+
"@rollup/rollup-linux-x64-gnu": "4.27.0",
|
|
129
|
+
"@rollup/rollup-linux-x64-musl": "4.27.0"
|
|
130
130
|
},
|
|
131
131
|
"dependencies": {
|
|
132
132
|
"@types/estree": "1.0.6"
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"@codemirror/state": "^6.4.1",
|
|
143
143
|
"@codemirror/view": "^6.34.2",
|
|
144
144
|
"@eslint/js": "^9.14.0",
|
|
145
|
-
"@inquirer/prompts": "^7.0
|
|
145
|
+
"@inquirer/prompts": "^7.1.0",
|
|
146
146
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
147
147
|
"@mermaid-js/mermaid-cli": "^11.4.0",
|
|
148
148
|
"@napi-rs/cli": "^2.18.4",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"eslint-config-prettier": "^9.1.0",
|
|
179
179
|
"eslint-plugin-prettier": "^5.2.1",
|
|
180
180
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
181
|
-
"eslint-plugin-vue": "^9.
|
|
181
|
+
"eslint-plugin-vue": "^9.31.0",
|
|
182
182
|
"fixturify": "^3.0.0",
|
|
183
183
|
"flru": "^1.0.2",
|
|
184
184
|
"fs-extra": "^11.2.0",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"pretty-bytes": "^6.1.1",
|
|
200
200
|
"pretty-ms": "^9.1.0",
|
|
201
201
|
"requirejs": "^2.3.7",
|
|
202
|
-
"rollup": "^4.
|
|
202
|
+
"rollup": "^4.25.0",
|
|
203
203
|
"rollup-plugin-license": "^3.5.3",
|
|
204
204
|
"rollup-plugin-string": "^3.0.0",
|
|
205
205
|
"semver": "^7.6.3",
|
|
@@ -211,8 +211,8 @@
|
|
|
211
211
|
"terser": "^5.36.0",
|
|
212
212
|
"tslib": "^2.8.1",
|
|
213
213
|
"typescript": "^5.6.3",
|
|
214
|
-
"typescript-eslint": "^8.
|
|
215
|
-
"vite": "^5.4.
|
|
214
|
+
"typescript-eslint": "^8.14.0",
|
|
215
|
+
"vite": "^5.4.11",
|
|
216
216
|
"vitepress": "^1.5.0",
|
|
217
217
|
"vue": "^3.5.12",
|
|
218
218
|
"vue-tsc": "^2.1.10",
|