rollup 4.27.4 → 4.28.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 +4 -3
- 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/native.js +1 -0
- package/dist/parseAst.js +2 -2
- package/dist/rollup.d.ts +1 -0
- 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 +9 -3
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +4 -3
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +45 -44
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
|
-
|
|
4
|
+
Rollup.js v4.28.1
|
|
5
|
+
Fri, 06 Dec 2024 11:44:27 GMT - commit e60fb1c5d4e54ed5257495215eeda1bb43cf54ba
|
|
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
|
-
|
|
3
|
+
Rollup.js v4.28.1
|
|
4
|
+
Fri, 06 Dec 2024 11:44:27 GMT - commit e60fb1c5d4e54ed5257495215eeda1bb43cf54ba
|
|
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.
|
|
19
|
+
var version = "4.28.1";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -22035,6 +22035,7 @@ async function mergeOptions(config, watchMode, rawCommandOptions = EMPTY_COMMAND
|
|
|
22035
22035
|
...Object.keys(commandAliases),
|
|
22036
22036
|
'bundleConfigAsCjs',
|
|
22037
22037
|
'config',
|
|
22038
|
+
'configImportAttributesKey',
|
|
22038
22039
|
'configPlugin',
|
|
22039
22040
|
'environment',
|
|
22040
22041
|
'failAfterWarnings',
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/native.js
CHANGED
|
@@ -20,6 +20,7 @@ const bindingsByPlatformAndArch = {
|
|
|
20
20
|
linux: {
|
|
21
21
|
arm: { base: 'linux-arm-gnueabihf', musl: 'linux-arm-musleabihf' },
|
|
22
22
|
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
|
|
23
|
+
loong64: { base: 'linux-loongarch64-gnu', musl: null },
|
|
23
24
|
ppc64: { base: 'linux-powerpc64le-gnu', musl: null },
|
|
24
25
|
riscv64: { base: 'linux-riscv64-gnu', musl: null },
|
|
25
26
|
s390x: { base: 'linux-s390x-gnu', musl: null },
|
package/dist/parseAst.js
CHANGED
package/dist/rollup.d.ts
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.28.1
|
|
4
|
+
Fri, 06 Dec 2024 11:44:27 GMT - commit e60fb1c5d4e54ed5257495215eeda1bb43cf54ba
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -486,8 +486,13 @@ async function getConfigFileExport(fileName, commandOptions, watchMode) {
|
|
|
486
486
|
function getDefaultFromCjs(namespace) {
|
|
487
487
|
return namespace.default || namespace;
|
|
488
488
|
}
|
|
489
|
+
function getConfigImportAttributesKey(input) {
|
|
490
|
+
if (input === 'assert' || input === 'with')
|
|
491
|
+
return input;
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
489
494
|
async function loadTranspiledConfigFile(fileName, commandOptions) {
|
|
490
|
-
const { bundleConfigAsCjs, configPlugin, silent } = commandOptions;
|
|
495
|
+
const { bundleConfigAsCjs, configPlugin, configImportAttributesKey, silent } = commandOptions;
|
|
491
496
|
const warnings = batchWarnings(commandOptions);
|
|
492
497
|
const inputOptions = {
|
|
493
498
|
external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5) === '.json',
|
|
@@ -501,6 +506,7 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
|
|
|
501
506
|
const { output: [{ code }] } = await bundle.generate({
|
|
502
507
|
exports: 'named',
|
|
503
508
|
format: bundleConfigAsCjs ? 'cjs' : 'es',
|
|
509
|
+
importAttributesKey: getConfigImportAttributesKey(configImportAttributesKey),
|
|
504
510
|
plugins: [
|
|
505
511
|
{
|
|
506
512
|
name: 'transpile-import-meta',
|
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
|
-
|
|
3
|
+
Rollup.js v4.28.1
|
|
4
|
+
Fri, 06 Dec 2024 11:44:27 GMT - commit e60fb1c5d4e54ed5257495215eeda1bb43cf54ba
|
|
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.
|
|
34
|
+
var version = "4.28.1";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -1245,6 +1245,7 @@ async function mergeOptions(config, watchMode, rawCommandOptions = EMPTY_COMMAND
|
|
|
1245
1245
|
...Object.keys(commandAliases),
|
|
1246
1246
|
'bundleConfigAsCjs',
|
|
1247
1247
|
'config',
|
|
1248
|
+
'configImportAttributesKey',
|
|
1248
1249
|
'configPlugin',
|
|
1249
1250
|
'environment',
|
|
1250
1251
|
'failAfterWarnings',
|
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.
|
|
3
|
+
"version": "4.28.1",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"armv7-unknown-linux-gnueabihf",
|
|
27
27
|
"armv7-unknown-linux-musleabihf",
|
|
28
28
|
"i686-pc-windows-msvc",
|
|
29
|
+
"loongarch64-unknown-linux-gnu",
|
|
29
30
|
"riscv64gc-unknown-linux-gnu",
|
|
30
31
|
"powerpc64le-unknown-linux-gnu",
|
|
31
32
|
"s390x-unknown-linux-gnu",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
|
|
61
62
|
"ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && npm run test:only",
|
|
62
63
|
"ci:test:all": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
|
|
63
|
-
"ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && nyc --reporter lcovonly mocha",
|
|
64
|
+
"ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && NODE_OPTIONS=--no-experimental-detect-module nyc --reporter lcovonly mocha",
|
|
64
65
|
"lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
|
|
65
66
|
"lint:js": "eslint . --fix --cache",
|
|
66
67
|
"lint:js:nofix": "eslint . --cache",
|
|
@@ -109,24 +110,25 @@
|
|
|
109
110
|
"homepage": "https://rollupjs.org/",
|
|
110
111
|
"optionalDependencies": {
|
|
111
112
|
"fsevents": "~2.3.2",
|
|
112
|
-
"@rollup/rollup-darwin-arm64": "4.
|
|
113
|
-
"@rollup/rollup-android-arm64": "4.
|
|
114
|
-
"@rollup/rollup-win32-arm64-msvc": "4.
|
|
115
|
-
"@rollup/rollup-freebsd-arm64": "4.
|
|
116
|
-
"@rollup/rollup-linux-arm64-gnu": "4.
|
|
117
|
-
"@rollup/rollup-linux-arm64-musl": "4.
|
|
118
|
-
"@rollup/rollup-android-arm-eabi": "4.
|
|
119
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.
|
|
120
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.
|
|
121
|
-
"@rollup/rollup-win32-ia32-msvc": "4.
|
|
122
|
-
"@rollup/rollup-linux-
|
|
123
|
-
"@rollup/rollup-linux-
|
|
124
|
-
"@rollup/rollup-linux-
|
|
125
|
-
"@rollup/rollup-
|
|
126
|
-
"@rollup/rollup-
|
|
127
|
-
"@rollup/rollup-
|
|
128
|
-
"@rollup/rollup-
|
|
129
|
-
"@rollup/rollup-linux-x64-
|
|
113
|
+
"@rollup/rollup-darwin-arm64": "4.28.1",
|
|
114
|
+
"@rollup/rollup-android-arm64": "4.28.1",
|
|
115
|
+
"@rollup/rollup-win32-arm64-msvc": "4.28.1",
|
|
116
|
+
"@rollup/rollup-freebsd-arm64": "4.28.1",
|
|
117
|
+
"@rollup/rollup-linux-arm64-gnu": "4.28.1",
|
|
118
|
+
"@rollup/rollup-linux-arm64-musl": "4.28.1",
|
|
119
|
+
"@rollup/rollup-android-arm-eabi": "4.28.1",
|
|
120
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.28.1",
|
|
121
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.28.1",
|
|
122
|
+
"@rollup/rollup-win32-ia32-msvc": "4.28.1",
|
|
123
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.28.1",
|
|
124
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.28.1",
|
|
125
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.28.1",
|
|
126
|
+
"@rollup/rollup-linux-s390x-gnu": "4.28.1",
|
|
127
|
+
"@rollup/rollup-darwin-x64": "4.28.1",
|
|
128
|
+
"@rollup/rollup-win32-x64-msvc": "4.28.1",
|
|
129
|
+
"@rollup/rollup-freebsd-x64": "4.28.1",
|
|
130
|
+
"@rollup/rollup-linux-x64-gnu": "4.28.1",
|
|
131
|
+
"@rollup/rollup-linux-x64-musl": "4.28.1"
|
|
130
132
|
},
|
|
131
133
|
"dependencies": {
|
|
132
134
|
"@types/estree": "1.0.6"
|
|
@@ -137,14 +139,14 @@
|
|
|
137
139
|
"devDependencies": {
|
|
138
140
|
"@codemirror/commands": "^6.7.1",
|
|
139
141
|
"@codemirror/lang-javascript": "^6.2.2",
|
|
140
|
-
"@codemirror/language": "^6.10.
|
|
141
|
-
"@codemirror/search": "^6.5.
|
|
142
|
+
"@codemirror/language": "^6.10.6",
|
|
143
|
+
"@codemirror/search": "^6.5.8",
|
|
142
144
|
"@codemirror/state": "^6.4.1",
|
|
143
|
-
"@codemirror/view": "^6.
|
|
144
|
-
"@eslint/js": "^9.
|
|
145
|
+
"@codemirror/view": "^6.35.0",
|
|
146
|
+
"@eslint/js": "^9.16.0",
|
|
145
147
|
"@inquirer/prompts": "^7.1.0",
|
|
146
148
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
147
|
-
"@mermaid-js/mermaid-cli": "^11.4.
|
|
149
|
+
"@mermaid-js/mermaid-cli": "^11.4.2",
|
|
148
150
|
"@napi-rs/cli": "^2.18.4",
|
|
149
151
|
"@rollup/plugin-alias": "^5.1.1",
|
|
150
152
|
"@rollup/plugin-buble": "^1.0.3",
|
|
@@ -155,9 +157,9 @@
|
|
|
155
157
|
"@rollup/plugin-terser": "^0.4.4",
|
|
156
158
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
157
159
|
"@rollup/pluginutils": "^5.1.3",
|
|
158
|
-
"@shikijs/vitepress-twoslash": "^1.
|
|
159
|
-
"@types/mocha": "^10.0.
|
|
160
|
-
"@types/node": "^18.19.
|
|
160
|
+
"@shikijs/vitepress-twoslash": "^1.24.0",
|
|
161
|
+
"@types/mocha": "^10.0.10",
|
|
162
|
+
"@types/node": "^18.19.67",
|
|
161
163
|
"@types/semver": "^7.5.8",
|
|
162
164
|
"@types/yargs-parser": "^21.0.3",
|
|
163
165
|
"@vue/language-server": "^2.1.10",
|
|
@@ -174,32 +176,32 @@
|
|
|
174
176
|
"date-time": "^4.0.0",
|
|
175
177
|
"es5-shim": "^4.6.7",
|
|
176
178
|
"es6-shim": "^0.35.8",
|
|
177
|
-
"eslint": "^9.
|
|
179
|
+
"eslint": "^9.16.0",
|
|
178
180
|
"eslint-config-prettier": "^9.1.0",
|
|
179
181
|
"eslint-plugin-prettier": "^5.2.1",
|
|
180
|
-
"eslint-plugin-unicorn": "^56.0.
|
|
181
|
-
"eslint-plugin-vue": "^9.
|
|
182
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
183
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
182
184
|
"fixturify": "^3.0.0",
|
|
183
185
|
"flru": "^1.0.2",
|
|
184
186
|
"fs-extra": "^11.2.0",
|
|
185
187
|
"github-api": "^3.4.0",
|
|
186
|
-
"globals": "^15.
|
|
188
|
+
"globals": "^15.13.0",
|
|
187
189
|
"husky": "^9.1.7",
|
|
188
190
|
"is-reference": "^3.0.3",
|
|
189
191
|
"lint-staged": "^15.2.10",
|
|
190
192
|
"locate-character": "^3.0.0",
|
|
191
|
-
"magic-string": "^0.30.
|
|
192
|
-
"mocha": "^
|
|
193
|
+
"magic-string": "^0.30.14",
|
|
194
|
+
"mocha": "^11.0.1",
|
|
193
195
|
"nodemon": "^3.1.7",
|
|
194
196
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
195
197
|
"nyc": "^17.1.0",
|
|
196
|
-
"pinia": "^2.2.
|
|
197
|
-
"prettier": "^3.
|
|
198
|
+
"pinia": "^2.2.8",
|
|
199
|
+
"prettier": "^3.4.1",
|
|
198
200
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
199
201
|
"pretty-bytes": "^6.1.1",
|
|
200
202
|
"pretty-ms": "^9.2.0",
|
|
201
203
|
"requirejs": "^2.3.7",
|
|
202
|
-
"rollup": "^4.
|
|
204
|
+
"rollup": "^4.28.0",
|
|
203
205
|
"rollup-plugin-license": "^3.5.3",
|
|
204
206
|
"rollup-plugin-string": "^3.0.0",
|
|
205
207
|
"semver": "^7.6.3",
|
|
@@ -210,9 +212,9 @@
|
|
|
210
212
|
"systemjs": "^6.15.1",
|
|
211
213
|
"terser": "^5.36.0",
|
|
212
214
|
"tslib": "^2.8.1",
|
|
213
|
-
"typescript": "^5.
|
|
214
|
-
"typescript-eslint": "^8.
|
|
215
|
-
"vite": "^
|
|
215
|
+
"typescript": "^5.7.2",
|
|
216
|
+
"typescript-eslint": "^8.17.0",
|
|
217
|
+
"vite": "^6.0.2",
|
|
216
218
|
"vitepress": "^1.5.0",
|
|
217
219
|
"vue": "^3.5.13",
|
|
218
220
|
"vue-tsc": "^2.1.10",
|
|
@@ -220,13 +222,12 @@
|
|
|
220
222
|
"yargs-parser": "^21.1.1"
|
|
221
223
|
},
|
|
222
224
|
"overrides": {
|
|
223
|
-
"axios": "^1.7.
|
|
225
|
+
"axios": "^1.7.8",
|
|
224
226
|
"semver": "^7.6.3",
|
|
225
|
-
"
|
|
227
|
+
"readable-stream": "npm:@built-in/readable-stream@1"
|
|
226
228
|
},
|
|
227
229
|
"comments": {
|
|
228
|
-
"vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges"
|
|
229
|
-
"ws": "mermaid requires an older 8.13.0 version via puppeteer with vulnerabilities"
|
|
230
|
+
"vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges"
|
|
230
231
|
},
|
|
231
232
|
"files": [
|
|
232
233
|
"dist/*.node",
|