rollup 4.4.0 → 4.4.1
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 +33 -13
- 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 +33 -13
- 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 +13 -13
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.4.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.4.1
|
|
5
|
+
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
|
|
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.4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.4.1
|
|
4
|
+
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ import { xxhashBase64Url } from '../../native.js';
|
|
|
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.4.
|
|
19
|
+
var version = "4.4.1";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -5781,6 +5781,7 @@ class Scope {
|
|
|
5781
5781
|
/*
|
|
5782
5782
|
Redeclaration rules:
|
|
5783
5783
|
- var can redeclare var
|
|
5784
|
+
- in function scopes, function and var can redeclare function and var
|
|
5784
5785
|
- var is hoisted across scopes, function remains in the scope it is declared
|
|
5785
5786
|
- var and function can redeclare function parameters, but parameters cannot redeclare parameters
|
|
5786
5787
|
- function cannot redeclare catch scope parameters
|
|
@@ -5794,9 +5795,7 @@ class Scope {
|
|
|
5794
5795
|
const existingVariable = this.hoistedVariables?.get(name) || this.variables.get(name);
|
|
5795
5796
|
if (existingVariable) {
|
|
5796
5797
|
const existingKind = existingVariable.kind;
|
|
5797
|
-
if (
|
|
5798
|
-
(existingKind === "var" /* VariableKind.var */ || existingKind === "parameter" /* VariableKind.parameter */)) ||
|
|
5799
|
-
(kind === "function" /* VariableKind.function */ && existingKind === "parameter" /* VariableKind.parameter */)) {
|
|
5798
|
+
if (kind === "var" /* VariableKind.var */ && existingKind === "var" /* VariableKind.var */) {
|
|
5800
5799
|
existingVariable.addDeclaration(identifier, init);
|
|
5801
5800
|
return existingVariable;
|
|
5802
5801
|
}
|
|
@@ -5947,14 +5946,35 @@ class CatchBodyScope extends ChildScope {
|
|
|
5947
5946
|
this.addHoistedVariable(name, declaredVariable);
|
|
5948
5947
|
return declaredVariable;
|
|
5949
5948
|
}
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5949
|
+
return super.addDeclaration(identifier, context, init, kind);
|
|
5950
|
+
}
|
|
5951
|
+
}
|
|
5952
|
+
|
|
5953
|
+
class FunctionBodyScope extends ChildScope {
|
|
5954
|
+
constructor(parent, context) {
|
|
5955
|
+
super(parent, context);
|
|
5956
|
+
this.parent = parent;
|
|
5957
|
+
this.context = context;
|
|
5958
|
+
}
|
|
5959
|
+
// There is stuff that is only allowed in function scopes, i.e. functions can
|
|
5960
|
+
// be redeclared, functions and var can redeclare each other
|
|
5961
|
+
addDeclaration(identifier, context, init, kind) {
|
|
5962
|
+
const name = identifier.name;
|
|
5963
|
+
const existingVariable = this.hoistedVariables?.get(name) || this.variables.get(name);
|
|
5964
|
+
if (existingVariable) {
|
|
5965
|
+
const existingKind = existingVariable.kind;
|
|
5966
|
+
if ((kind === "var" /* VariableKind.var */ || kind === "function" /* VariableKind.function */) &&
|
|
5967
|
+
(existingKind === "var" /* VariableKind.var */ ||
|
|
5968
|
+
existingKind === "function" /* VariableKind.function */ ||
|
|
5969
|
+
existingKind === "parameter" /* VariableKind.parameter */)) {
|
|
5970
|
+
existingVariable.addDeclaration(identifier, init);
|
|
5971
|
+
return existingVariable;
|
|
5955
5972
|
}
|
|
5973
|
+
context.error(logRedeclarationError(name), identifier.start);
|
|
5956
5974
|
}
|
|
5957
|
-
|
|
5975
|
+
const newVariable = new LocalVariable(identifier.name, identifier, init, context, kind);
|
|
5976
|
+
this.variables.set(name, newVariable);
|
|
5977
|
+
return newVariable;
|
|
5958
5978
|
}
|
|
5959
5979
|
}
|
|
5960
5980
|
|
|
@@ -5965,7 +5985,7 @@ class ParameterScope extends ChildScope {
|
|
|
5965
5985
|
this.hasRest = false;
|
|
5966
5986
|
this.bodyScope = isCatchScope
|
|
5967
5987
|
? new CatchBodyScope(this, context)
|
|
5968
|
-
: new
|
|
5988
|
+
: new FunctionBodyScope(this, context);
|
|
5969
5989
|
}
|
|
5970
5990
|
/**
|
|
5971
5991
|
* Adds a parameter to this scope. Parameters must be added in the correct
|
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.4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.4.1
|
|
4
|
+
Tue, 14 Nov 2023 05:24:21 GMT - commit 01d8c9d1b68919c2c429427ae7e60f503a8bb5f4
|
|
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.4.
|
|
34
|
+
var version = "4.4.1";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -7218,6 +7218,7 @@ class Scope {
|
|
|
7218
7218
|
/*
|
|
7219
7219
|
Redeclaration rules:
|
|
7220
7220
|
- var can redeclare var
|
|
7221
|
+
- in function scopes, function and var can redeclare function and var
|
|
7221
7222
|
- var is hoisted across scopes, function remains in the scope it is declared
|
|
7222
7223
|
- var and function can redeclare function parameters, but parameters cannot redeclare parameters
|
|
7223
7224
|
- function cannot redeclare catch scope parameters
|
|
@@ -7231,9 +7232,7 @@ class Scope {
|
|
|
7231
7232
|
const existingVariable = this.hoistedVariables?.get(name) || this.variables.get(name);
|
|
7232
7233
|
if (existingVariable) {
|
|
7233
7234
|
const existingKind = existingVariable.kind;
|
|
7234
|
-
if (
|
|
7235
|
-
(existingKind === "var" /* VariableKind.var */ || existingKind === "parameter" /* VariableKind.parameter */)) ||
|
|
7236
|
-
(kind === "function" /* VariableKind.function */ && existingKind === "parameter" /* VariableKind.parameter */)) {
|
|
7235
|
+
if (kind === "var" /* VariableKind.var */ && existingKind === "var" /* VariableKind.var */) {
|
|
7237
7236
|
existingVariable.addDeclaration(identifier, init);
|
|
7238
7237
|
return existingVariable;
|
|
7239
7238
|
}
|
|
@@ -7384,14 +7383,35 @@ class CatchBodyScope extends ChildScope {
|
|
|
7384
7383
|
this.addHoistedVariable(name, declaredVariable);
|
|
7385
7384
|
return declaredVariable;
|
|
7386
7385
|
}
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7386
|
+
return super.addDeclaration(identifier, context, init, kind);
|
|
7387
|
+
}
|
|
7388
|
+
}
|
|
7389
|
+
|
|
7390
|
+
class FunctionBodyScope extends ChildScope {
|
|
7391
|
+
constructor(parent, context) {
|
|
7392
|
+
super(parent, context);
|
|
7393
|
+
this.parent = parent;
|
|
7394
|
+
this.context = context;
|
|
7395
|
+
}
|
|
7396
|
+
// There is stuff that is only allowed in function scopes, i.e. functions can
|
|
7397
|
+
// be redeclared, functions and var can redeclare each other
|
|
7398
|
+
addDeclaration(identifier, context, init, kind) {
|
|
7399
|
+
const name = identifier.name;
|
|
7400
|
+
const existingVariable = this.hoistedVariables?.get(name) || this.variables.get(name);
|
|
7401
|
+
if (existingVariable) {
|
|
7402
|
+
const existingKind = existingVariable.kind;
|
|
7403
|
+
if ((kind === "var" /* VariableKind.var */ || kind === "function" /* VariableKind.function */) &&
|
|
7404
|
+
(existingKind === "var" /* VariableKind.var */ ||
|
|
7405
|
+
existingKind === "function" /* VariableKind.function */ ||
|
|
7406
|
+
existingKind === "parameter" /* VariableKind.parameter */)) {
|
|
7407
|
+
existingVariable.addDeclaration(identifier, init);
|
|
7408
|
+
return existingVariable;
|
|
7392
7409
|
}
|
|
7410
|
+
context.error(parseAst_js.logRedeclarationError(name), identifier.start);
|
|
7393
7411
|
}
|
|
7394
|
-
|
|
7412
|
+
const newVariable = new LocalVariable(identifier.name, identifier, init, context, kind);
|
|
7413
|
+
this.variables.set(name, newVariable);
|
|
7414
|
+
return newVariable;
|
|
7395
7415
|
}
|
|
7396
7416
|
}
|
|
7397
7417
|
|
|
@@ -7402,7 +7422,7 @@ class ParameterScope extends ChildScope {
|
|
|
7402
7422
|
this.hasRest = false;
|
|
7403
7423
|
this.bodyScope = isCatchScope
|
|
7404
7424
|
? new CatchBodyScope(this, context)
|
|
7405
|
-
: new
|
|
7425
|
+
: new FunctionBodyScope(this, context);
|
|
7406
7426
|
}
|
|
7407
7427
|
/**
|
|
7408
7428
|
* Adds a parameter to this scope. Parameters must be added in the correct
|
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.4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -100,18 +100,18 @@
|
|
|
100
100
|
"homepage": "https://rollupjs.org/",
|
|
101
101
|
"optionalDependencies": {
|
|
102
102
|
"fsevents": "~2.3.2",
|
|
103
|
-
"@rollup/rollup-darwin-arm64": "4.4.
|
|
104
|
-
"@rollup/rollup-android-arm64": "4.4.
|
|
105
|
-
"@rollup/rollup-win32-arm64-msvc": "4.4.
|
|
106
|
-
"@rollup/rollup-linux-arm64-gnu": "4.4.
|
|
107
|
-
"@rollup/rollup-linux-arm64-musl": "4.4.
|
|
108
|
-
"@rollup/rollup-android-arm-eabi": "4.4.
|
|
109
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.4.
|
|
110
|
-
"@rollup/rollup-win32-ia32-msvc": "4.4.
|
|
111
|
-
"@rollup/rollup-darwin-x64": "4.4.
|
|
112
|
-
"@rollup/rollup-win32-x64-msvc": "4.4.
|
|
113
|
-
"@rollup/rollup-linux-x64-gnu": "4.4.
|
|
114
|
-
"@rollup/rollup-linux-x64-musl": "4.4.
|
|
103
|
+
"@rollup/rollup-darwin-arm64": "4.4.1",
|
|
104
|
+
"@rollup/rollup-android-arm64": "4.4.1",
|
|
105
|
+
"@rollup/rollup-win32-arm64-msvc": "4.4.1",
|
|
106
|
+
"@rollup/rollup-linux-arm64-gnu": "4.4.1",
|
|
107
|
+
"@rollup/rollup-linux-arm64-musl": "4.4.1",
|
|
108
|
+
"@rollup/rollup-android-arm-eabi": "4.4.1",
|
|
109
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.4.1",
|
|
110
|
+
"@rollup/rollup-win32-ia32-msvc": "4.4.1",
|
|
111
|
+
"@rollup/rollup-darwin-x64": "4.4.1",
|
|
112
|
+
"@rollup/rollup-win32-x64-msvc": "4.4.1",
|
|
113
|
+
"@rollup/rollup-linux-x64-gnu": "4.4.1",
|
|
114
|
+
"@rollup/rollup-linux-x64-musl": "4.4.1"
|
|
115
115
|
},
|
|
116
116
|
"devDependenciesComments": {
|
|
117
117
|
"@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
|