rollup 4.5.1 → 4.5.2
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 +15 -14
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +3 -3
- 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 +15 -14
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch-proxy.js +2 -2
- package/dist/shared/watch.js +3 -3
- package/package.json +22 -22
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.5.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.5.2
|
|
5
|
+
Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
|
|
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.5.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.5.2
|
|
4
|
+
Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
|
|
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.5.
|
|
19
|
+
var version = "4.5.2";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -4531,7 +4531,7 @@ const literalStringMembers = assembleMemberDescriptions({
|
|
|
4531
4531
|
toLocaleLowerCase: returnsString,
|
|
4532
4532
|
toLocaleUpperCase: returnsString,
|
|
4533
4533
|
toLowerCase: returnsString,
|
|
4534
|
-
toString: returnsString,
|
|
4534
|
+
toString: returnsString, // overrides the toString() method of the Object object; it does not inherit Object.prototype.toString()
|
|
4535
4535
|
toUpperCase: returnsString,
|
|
4536
4536
|
trim: returnsString,
|
|
4537
4537
|
trimEnd: returnsString,
|
|
@@ -13057,10 +13057,6 @@ class Module {
|
|
|
13057
13057
|
const shebangEndPosition = code.indexOf('\n');
|
|
13058
13058
|
this.shebang = code.slice(2, shebangEndPosition);
|
|
13059
13059
|
}
|
|
13060
|
-
/* eslint-disable-next-line unicorn/number-literal-case */
|
|
13061
|
-
if (code.charCodeAt(0) === 65279) {
|
|
13062
|
-
code = code.slice(1);
|
|
13063
|
-
}
|
|
13064
13060
|
timeStart('generate ast', 3);
|
|
13065
13061
|
this.info.code = code;
|
|
13066
13062
|
this.originalCode = originalCode;
|
|
@@ -13085,7 +13081,7 @@ class Module {
|
|
|
13085
13081
|
// can change that, but it makes sense to use it for the source file name
|
|
13086
13082
|
const fileName = this.id;
|
|
13087
13083
|
this.magicString = new MagicString(code, {
|
|
13088
|
-
filename: (this.excludeFromSourcemap ? null : fileName),
|
|
13084
|
+
filename: (this.excludeFromSourcemap ? null : fileName), // don't include plugin helpers in sourcemap
|
|
13089
13085
|
indentExclusionRanges: []
|
|
13090
13086
|
});
|
|
13091
13087
|
this.astContext = {
|
|
@@ -13093,10 +13089,10 @@ class Module {
|
|
|
13093
13089
|
addExport: this.addExport.bind(this),
|
|
13094
13090
|
addImport: this.addImport.bind(this),
|
|
13095
13091
|
addImportMeta: this.addImportMeta.bind(this),
|
|
13096
|
-
code,
|
|
13092
|
+
code, // Only needed for debugging
|
|
13097
13093
|
deoptimizationTracker: this.graph.deoptimizationTracker,
|
|
13098
13094
|
error: this.error.bind(this),
|
|
13099
|
-
fileName,
|
|
13095
|
+
fileName, // Needed for warnings
|
|
13100
13096
|
getExports: this.getExports.bind(this),
|
|
13101
13097
|
getModuleExecIndex: () => this.execIndex,
|
|
13102
13098
|
getModuleName: this.basename.bind(this),
|
|
@@ -13227,7 +13223,7 @@ class Module {
|
|
|
13227
13223
|
this.assertUniqueExportName(name, node.exported.start);
|
|
13228
13224
|
this.reexportDescriptions.set(name, {
|
|
13229
13225
|
localName: '*',
|
|
13230
|
-
module: null,
|
|
13226
|
+
module: null, // filled in later,
|
|
13231
13227
|
source,
|
|
13232
13228
|
start: node.start
|
|
13233
13229
|
});
|
|
@@ -13246,7 +13242,7 @@ class Module {
|
|
|
13246
13242
|
this.assertUniqueExportName(name, start);
|
|
13247
13243
|
this.reexportDescriptions.set(name, {
|
|
13248
13244
|
localName: local instanceof Literal ? local.value : local.name,
|
|
13249
|
-
module: null,
|
|
13245
|
+
module: null, // filled in later,
|
|
13250
13246
|
source,
|
|
13251
13247
|
start
|
|
13252
13248
|
});
|
|
@@ -13298,7 +13294,7 @@ class Module {
|
|
|
13298
13294
|
? specifier.imported.name
|
|
13299
13295
|
: specifier.imported.value;
|
|
13300
13296
|
this.importDescriptions.set(localName, {
|
|
13301
|
-
module: null,
|
|
13297
|
+
module: null, // filled in later
|
|
13302
13298
|
name,
|
|
13303
13299
|
source,
|
|
13304
13300
|
start: specifier.start
|
|
@@ -17696,6 +17692,11 @@ class ModuleLoader {
|
|
|
17696
17692
|
: source != null && typeof source === 'object' && typeof source.code === 'string'
|
|
17697
17693
|
? source
|
|
17698
17694
|
: error(logBadLoader(id));
|
|
17695
|
+
const code = sourceDescription.code;
|
|
17696
|
+
/* eslint-disable-next-line unicorn/number-literal-case */
|
|
17697
|
+
if (code.charCodeAt(0) === 65279) {
|
|
17698
|
+
sourceDescription.code = code.slice(1);
|
|
17699
|
+
}
|
|
17699
17700
|
const cachedModule = this.graph.cachedModules.get(id);
|
|
17700
17701
|
if (cachedModule &&
|
|
17701
17702
|
!cachedModule.customTransformCache &&
|
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.5.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.5.2
|
|
4
|
+
Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -4630,7 +4630,7 @@ class FileWatcher {
|
|
|
4630
4630
|
const eventsRewrites = {
|
|
4631
4631
|
create: {
|
|
4632
4632
|
create: 'buggy',
|
|
4633
|
-
delete: null,
|
|
4633
|
+
delete: null, //delete file from map
|
|
4634
4634
|
update: 'create'
|
|
4635
4635
|
},
|
|
4636
4636
|
delete: {
|
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.5.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.5.2
|
|
4
|
+
Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
|
|
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.5.
|
|
34
|
+
var version = "4.5.2";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -5980,7 +5980,7 @@ const literalStringMembers = assembleMemberDescriptions({
|
|
|
5980
5980
|
toLocaleLowerCase: returnsString,
|
|
5981
5981
|
toLocaleUpperCase: returnsString,
|
|
5982
5982
|
toLowerCase: returnsString,
|
|
5983
|
-
toString: returnsString,
|
|
5983
|
+
toString: returnsString, // overrides the toString() method of the Object object; it does not inherit Object.prototype.toString()
|
|
5984
5984
|
toUpperCase: returnsString,
|
|
5985
5985
|
trim: returnsString,
|
|
5986
5986
|
trimEnd: returnsString,
|
|
@@ -14485,10 +14485,6 @@ class Module {
|
|
|
14485
14485
|
const shebangEndPosition = code.indexOf('\n');
|
|
14486
14486
|
this.shebang = code.slice(2, shebangEndPosition);
|
|
14487
14487
|
}
|
|
14488
|
-
/* eslint-disable-next-line unicorn/number-literal-case */
|
|
14489
|
-
if (code.charCodeAt(0) === 65279) {
|
|
14490
|
-
code = code.slice(1);
|
|
14491
|
-
}
|
|
14492
14488
|
timeStart('generate ast', 3);
|
|
14493
14489
|
this.info.code = code;
|
|
14494
14490
|
this.originalCode = originalCode;
|
|
@@ -14513,7 +14509,7 @@ class Module {
|
|
|
14513
14509
|
// can change that, but it makes sense to use it for the source file name
|
|
14514
14510
|
const fileName = this.id;
|
|
14515
14511
|
this.magicString = new MagicString(code, {
|
|
14516
|
-
filename: (this.excludeFromSourcemap ? null : fileName),
|
|
14512
|
+
filename: (this.excludeFromSourcemap ? null : fileName), // don't include plugin helpers in sourcemap
|
|
14517
14513
|
indentExclusionRanges: []
|
|
14518
14514
|
});
|
|
14519
14515
|
this.astContext = {
|
|
@@ -14521,10 +14517,10 @@ class Module {
|
|
|
14521
14517
|
addExport: this.addExport.bind(this),
|
|
14522
14518
|
addImport: this.addImport.bind(this),
|
|
14523
14519
|
addImportMeta: this.addImportMeta.bind(this),
|
|
14524
|
-
code,
|
|
14520
|
+
code, // Only needed for debugging
|
|
14525
14521
|
deoptimizationTracker: this.graph.deoptimizationTracker,
|
|
14526
14522
|
error: this.error.bind(this),
|
|
14527
|
-
fileName,
|
|
14523
|
+
fileName, // Needed for warnings
|
|
14528
14524
|
getExports: this.getExports.bind(this),
|
|
14529
14525
|
getModuleExecIndex: () => this.execIndex,
|
|
14530
14526
|
getModuleName: this.basename.bind(this),
|
|
@@ -14655,7 +14651,7 @@ class Module {
|
|
|
14655
14651
|
this.assertUniqueExportName(name, node.exported.start);
|
|
14656
14652
|
this.reexportDescriptions.set(name, {
|
|
14657
14653
|
localName: '*',
|
|
14658
|
-
module: null,
|
|
14654
|
+
module: null, // filled in later,
|
|
14659
14655
|
source,
|
|
14660
14656
|
start: node.start
|
|
14661
14657
|
});
|
|
@@ -14674,7 +14670,7 @@ class Module {
|
|
|
14674
14670
|
this.assertUniqueExportName(name, start);
|
|
14675
14671
|
this.reexportDescriptions.set(name, {
|
|
14676
14672
|
localName: local instanceof Literal ? local.value : local.name,
|
|
14677
|
-
module: null,
|
|
14673
|
+
module: null, // filled in later,
|
|
14678
14674
|
source,
|
|
14679
14675
|
start
|
|
14680
14676
|
});
|
|
@@ -14726,7 +14722,7 @@ class Module {
|
|
|
14726
14722
|
? specifier.imported.name
|
|
14727
14723
|
: specifier.imported.value;
|
|
14728
14724
|
this.importDescriptions.set(localName, {
|
|
14729
|
-
module: null,
|
|
14725
|
+
module: null, // filled in later
|
|
14730
14726
|
name,
|
|
14731
14727
|
source,
|
|
14732
14728
|
start: specifier.start
|
|
@@ -18771,6 +18767,11 @@ class ModuleLoader {
|
|
|
18771
18767
|
: source != null && typeof source === 'object' && typeof source.code === 'string'
|
|
18772
18768
|
? source
|
|
18773
18769
|
: parseAst_js.error(parseAst_js.logBadLoader(id));
|
|
18770
|
+
const code = sourceDescription.code;
|
|
18771
|
+
/* eslint-disable-next-line unicorn/number-literal-case */
|
|
18772
|
+
if (code.charCodeAt(0) === 65279) {
|
|
18773
|
+
sourceDescription.code = code.slice(1);
|
|
18774
|
+
}
|
|
18774
18775
|
const cachedModule = this.graph.cachedModules.get(id);
|
|
18775
18776
|
if (cachedModule &&
|
|
18776
18777
|
!cachedModule.customTransformCache &&
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.5.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.5.2
|
|
4
|
+
Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -87,7 +87,7 @@ class FileWatcher {
|
|
|
87
87
|
const eventsRewrites = {
|
|
88
88
|
create: {
|
|
89
89
|
create: 'buggy',
|
|
90
|
-
delete: null,
|
|
90
|
+
delete: null, //delete file from map
|
|
91
91
|
update: 'create'
|
|
92
92
|
},
|
|
93
93
|
delete: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
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.5.
|
|
104
|
-
"@rollup/rollup-android-arm64": "4.5.
|
|
105
|
-
"@rollup/rollup-win32-arm64-msvc": "4.5.
|
|
106
|
-
"@rollup/rollup-linux-arm64-gnu": "4.5.
|
|
107
|
-
"@rollup/rollup-linux-arm64-musl": "4.5.
|
|
108
|
-
"@rollup/rollup-android-arm-eabi": "4.5.
|
|
109
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.5.
|
|
110
|
-
"@rollup/rollup-win32-ia32-msvc": "4.5.
|
|
111
|
-
"@rollup/rollup-darwin-x64": "4.5.
|
|
112
|
-
"@rollup/rollup-win32-x64-msvc": "4.5.
|
|
113
|
-
"@rollup/rollup-linux-x64-gnu": "4.5.
|
|
114
|
-
"@rollup/rollup-linux-x64-musl": "4.5.
|
|
103
|
+
"@rollup/rollup-darwin-arm64": "4.5.2",
|
|
104
|
+
"@rollup/rollup-android-arm64": "4.5.2",
|
|
105
|
+
"@rollup/rollup-win32-arm64-msvc": "4.5.2",
|
|
106
|
+
"@rollup/rollup-linux-arm64-gnu": "4.5.2",
|
|
107
|
+
"@rollup/rollup-linux-arm64-musl": "4.5.2",
|
|
108
|
+
"@rollup/rollup-android-arm-eabi": "4.5.2",
|
|
109
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.5.2",
|
|
110
|
+
"@rollup/rollup-win32-ia32-msvc": "4.5.2",
|
|
111
|
+
"@rollup/rollup-darwin-x64": "4.5.2",
|
|
112
|
+
"@rollup/rollup-win32-x64-msvc": "4.5.2",
|
|
113
|
+
"@rollup/rollup-linux-x64-gnu": "4.5.2",
|
|
114
|
+
"@rollup/rollup-linux-x64-musl": "4.5.2"
|
|
115
115
|
},
|
|
116
116
|
"devDependenciesComments": {
|
|
117
117
|
"@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"@codemirror/state": "^6.3.1",
|
|
125
125
|
"@codemirror/view": "^6.22.0",
|
|
126
126
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
127
|
-
"@mermaid-js/mermaid-cli": "^10.6.
|
|
127
|
+
"@mermaid-js/mermaid-cli": "^10.6.1",
|
|
128
128
|
"@napi-rs/cli": "^2.16.5",
|
|
129
129
|
"@rollup/plugin-alias": "^5.0.1",
|
|
130
130
|
"@rollup/plugin-buble": "^1.0.3",
|
|
@@ -136,11 +136,11 @@
|
|
|
136
136
|
"@rollup/plugin-typescript": "11.1.5",
|
|
137
137
|
"@rollup/pluginutils": "^5.0.5",
|
|
138
138
|
"@types/estree": "1.0.5",
|
|
139
|
-
"@types/mocha": "^10.0.
|
|
139
|
+
"@types/mocha": "^10.0.5",
|
|
140
140
|
"@types/node": "18.0.0",
|
|
141
141
|
"@types/yargs-parser": "^21.0.3",
|
|
142
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
143
|
-
"@typescript-eslint/parser": "^6.
|
|
142
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
143
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
144
144
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
145
145
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
146
146
|
"acorn": "^8.11.2",
|
|
@@ -150,11 +150,11 @@
|
|
|
150
150
|
"chokidar": "^3.5.3",
|
|
151
151
|
"colorette": "^2.0.20",
|
|
152
152
|
"concurrently": "^8.2.2",
|
|
153
|
-
"core-js": "^3.33.
|
|
153
|
+
"core-js": "^3.33.3",
|
|
154
154
|
"date-time": "^4.0.0",
|
|
155
155
|
"es5-shim": "^4.6.7",
|
|
156
156
|
"es6-shim": "^0.35.8",
|
|
157
|
-
"eslint": "^8.
|
|
157
|
+
"eslint": "^8.54.0",
|
|
158
158
|
"eslint-config-prettier": "^9.0.0",
|
|
159
159
|
"eslint-plugin-import": "^2.29.0",
|
|
160
160
|
"eslint-plugin-prettier": "^5.0.1",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"pretty-bytes": "^6.1.1",
|
|
178
178
|
"pretty-ms": "^8.0.0",
|
|
179
179
|
"requirejs": "^2.3.6",
|
|
180
|
-
"rollup": "^4.
|
|
180
|
+
"rollup": "^4.5.0",
|
|
181
181
|
"rollup-plugin-license": "^3.2.0",
|
|
182
182
|
"rollup-plugin-string": "^3.0.0",
|
|
183
183
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"systemjs": "^6.14.2",
|
|
190
190
|
"terser": "^5.24.0",
|
|
191
191
|
"tslib": "^2.6.2",
|
|
192
|
-
"typescript": "^5.
|
|
192
|
+
"typescript": "^5.3.2",
|
|
193
193
|
"vite": "^5.0.0",
|
|
194
194
|
"vitepress": "^1.0.0-rc.29",
|
|
195
195
|
"vue": "^3.3.8",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"yargs-parser": "^21.1.1"
|
|
199
199
|
},
|
|
200
200
|
"overrides": {
|
|
201
|
-
"axios": "^1.6.
|
|
201
|
+
"axios": "^1.6.2",
|
|
202
202
|
"semver": "^7.5.4"
|
|
203
203
|
},
|
|
204
204
|
"files": [
|