@rollup/wasm-node 4.27.0-1 → 4.27.1-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 +50 -41
- 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 +50 -41
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +6 -6
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.1-0
|
|
5
|
+
Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
|
|
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.1-0
|
|
4
|
+
Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
|
|
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.1-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) {
|
|
@@ -6996,7 +6998,7 @@ function getChainElementLiteralValueAtPath(element, object, path, recursionTrack
|
|
|
6996
6998
|
}
|
|
6997
6999
|
|
|
6998
7000
|
// To avoid infinite recursions
|
|
6999
|
-
const MAX_PATH_DEPTH =
|
|
7001
|
+
const MAX_PATH_DEPTH = 6;
|
|
7000
7002
|
function getResolvablePropertyKey(memberExpression) {
|
|
7001
7003
|
return memberExpression.computed
|
|
7002
7004
|
? getResolvableComputedPropertyKey(memberExpression.property)
|
|
@@ -7121,11 +7123,13 @@ class MemberExpression extends NodeBase {
|
|
|
7121
7123
|
if (this.variable) {
|
|
7122
7124
|
this.variable.deoptimizePath(path);
|
|
7123
7125
|
}
|
|
7124
|
-
else if (!this.isUndefined
|
|
7126
|
+
else if (!this.isUndefined) {
|
|
7125
7127
|
const propertyKey = this.getPropertyKey();
|
|
7126
7128
|
this.object.deoptimizePath([
|
|
7127
7129
|
propertyKey === UnknownKey ? UnknownNonAccessorKey : propertyKey,
|
|
7128
|
-
...path
|
|
7130
|
+
...(path.length < MAX_PATH_DEPTH
|
|
7131
|
+
? path
|
|
7132
|
+
: [...path.slice(0, MAX_PATH_DEPTH), UnknownKey])
|
|
7129
7133
|
]);
|
|
7130
7134
|
}
|
|
7131
7135
|
}
|
|
@@ -7217,7 +7221,12 @@ class MemberExpression extends NodeBase {
|
|
|
7217
7221
|
includePath(path, context, includeChildrenRecursively) {
|
|
7218
7222
|
if (!this.deoptimized)
|
|
7219
7223
|
this.applyDeoptimizations();
|
|
7220
|
-
this.includeProperties(path, [
|
|
7224
|
+
this.includeProperties(path, [
|
|
7225
|
+
this.getPropertyKey(),
|
|
7226
|
+
...(path.length < MAX_PATH_DEPTH
|
|
7227
|
+
? path
|
|
7228
|
+
: [...path.slice(0, MAX_PATH_DEPTH), UnknownKey])
|
|
7229
|
+
], context, includeChildrenRecursively);
|
|
7221
7230
|
}
|
|
7222
7231
|
includeAsAssignmentTarget(context, includeChildrenRecursively, deoptimizeAccess) {
|
|
7223
7232
|
if (!this.assignmentDeoptimized)
|
|
@@ -16998,7 +17007,7 @@ const hashPlaceholderLeft = '!~{';
|
|
|
16998
17007
|
const hashPlaceholderRight = '}~';
|
|
16999
17008
|
const hashPlaceholderOverhead = hashPlaceholderLeft.length + hashPlaceholderRight.length;
|
|
17000
17009
|
// This is the size of a 128-bits xxhash with base64url encoding
|
|
17001
|
-
const MAX_HASH_SIZE =
|
|
17010
|
+
const MAX_HASH_SIZE = 21;
|
|
17002
17011
|
const DEFAULT_HASH_SIZE = 8;
|
|
17003
17012
|
const getHashPlaceholderGenerator = () => {
|
|
17004
17013
|
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.1-0
|
|
4
|
+
Fri, 15 Nov 2024 13:27:36 GMT - commit a80f6a94d720224a44331d5a50745e9887619703
|
|
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.1-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');
|
|
@@ -8499,7 +8501,7 @@ function getChainElementLiteralValueAtPath(element, object, path, recursionTrack
|
|
|
8499
8501
|
}
|
|
8500
8502
|
|
|
8501
8503
|
// To avoid infinite recursions
|
|
8502
|
-
const MAX_PATH_DEPTH =
|
|
8504
|
+
const MAX_PATH_DEPTH = 6;
|
|
8503
8505
|
function getResolvablePropertyKey(memberExpression) {
|
|
8504
8506
|
return memberExpression.computed
|
|
8505
8507
|
? getResolvableComputedPropertyKey(memberExpression.property)
|
|
@@ -8624,11 +8626,13 @@ class MemberExpression extends NodeBase {
|
|
|
8624
8626
|
if (this.variable) {
|
|
8625
8627
|
this.variable.deoptimizePath(path);
|
|
8626
8628
|
}
|
|
8627
|
-
else if (!this.isUndefined
|
|
8629
|
+
else if (!this.isUndefined) {
|
|
8628
8630
|
const propertyKey = this.getPropertyKey();
|
|
8629
8631
|
this.object.deoptimizePath([
|
|
8630
8632
|
propertyKey === UnknownKey ? UnknownNonAccessorKey : propertyKey,
|
|
8631
|
-
...path
|
|
8633
|
+
...(path.length < MAX_PATH_DEPTH
|
|
8634
|
+
? path
|
|
8635
|
+
: [...path.slice(0, MAX_PATH_DEPTH), UnknownKey])
|
|
8632
8636
|
]);
|
|
8633
8637
|
}
|
|
8634
8638
|
}
|
|
@@ -8720,7 +8724,12 @@ class MemberExpression extends NodeBase {
|
|
|
8720
8724
|
includePath(path, context, includeChildrenRecursively) {
|
|
8721
8725
|
if (!this.deoptimized)
|
|
8722
8726
|
this.applyDeoptimizations();
|
|
8723
|
-
this.includeProperties(path, [
|
|
8727
|
+
this.includeProperties(path, [
|
|
8728
|
+
this.getPropertyKey(),
|
|
8729
|
+
...(path.length < MAX_PATH_DEPTH
|
|
8730
|
+
? path
|
|
8731
|
+
: [...path.slice(0, MAX_PATH_DEPTH), UnknownKey])
|
|
8732
|
+
], context, includeChildrenRecursively);
|
|
8724
8733
|
}
|
|
8725
8734
|
includeAsAssignmentTarget(context, includeChildrenRecursively, deoptimizeAccess) {
|
|
8726
8735
|
if (!this.assignmentDeoptimized)
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.27.0
|
|
3
|
+
"version": "4.27.1-0",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@codemirror/state": "^6.4.1",
|
|
40
40
|
"@codemirror/view": "^6.34.2",
|
|
41
41
|
"@eslint/js": "^9.14.0",
|
|
42
|
-
"@inquirer/prompts": "^7.0
|
|
42
|
+
"@inquirer/prompts": "^7.1.0",
|
|
43
43
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
44
44
|
"@mermaid-js/mermaid-cli": "^11.4.0",
|
|
45
45
|
"@napi-rs/cli": "^2.18.4",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"eslint-config-prettier": "^9.1.0",
|
|
76
76
|
"eslint-plugin-prettier": "^5.2.1",
|
|
77
77
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
78
|
-
"eslint-plugin-vue": "^9.
|
|
78
|
+
"eslint-plugin-vue": "^9.31.0",
|
|
79
79
|
"fixturify": "^3.0.0",
|
|
80
80
|
"flru": "^1.0.2",
|
|
81
81
|
"fs-extra": "^11.2.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"pretty-bytes": "^6.1.1",
|
|
97
97
|
"pretty-ms": "^9.1.0",
|
|
98
98
|
"requirejs": "^2.3.7",
|
|
99
|
-
"rollup": "^4.
|
|
99
|
+
"rollup": "^4.25.0",
|
|
100
100
|
"rollup-plugin-license": "^3.5.3",
|
|
101
101
|
"rollup-plugin-string": "^3.0.0",
|
|
102
102
|
"semver": "^7.6.3",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"terser": "^5.36.0",
|
|
109
109
|
"tslib": "^2.8.1",
|
|
110
110
|
"typescript": "^5.6.3",
|
|
111
|
-
"typescript-eslint": "^8.
|
|
112
|
-
"vite": "^5.4.
|
|
111
|
+
"typescript-eslint": "^8.14.0",
|
|
112
|
+
"vite": "^5.4.11",
|
|
113
113
|
"vitepress": "^1.5.0",
|
|
114
114
|
"vue": "^3.5.12",
|
|
115
115
|
"vue-tsc": "^2.1.10",
|