rollup 3.22.0-0 → 3.22.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 +3 -7
- package/dist/es/rollup.js +2 -3
- package/dist/es/shared/node-entry.js +36 -30
- package/dist/es/shared/watch.js +2 -3
- package/dist/loadConfigFile.js +2 -3
- package/dist/rollup.js +2 -3
- 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/rollup.js +36 -30
- package/dist/shared/watch-cli.js +2 -4
- package/dist/shared/watch-proxy.js +2 -2
- package/dist/shared/watch.js +2 -3
- package/package.json +21 -21
package/dist/bin/rollup
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
@license
|
|
5
|
-
Rollup.js v3.22.
|
|
6
|
-
|
|
5
|
+
Rollup.js v3.22.1
|
|
6
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
7
7
|
|
|
8
8
|
https://github.com/rollup/rollup
|
|
9
9
|
|
|
@@ -25,7 +25,6 @@ const loadConfigFile_js = require('../shared/loadConfigFile.js');
|
|
|
25
25
|
require('tty');
|
|
26
26
|
require('node:perf_hooks');
|
|
27
27
|
require('node:crypto');
|
|
28
|
-
require('node:events');
|
|
29
28
|
require('node:url');
|
|
30
29
|
|
|
31
30
|
const help = "rollup version __VERSION__\n=====================================\n\nUsage: rollup [options] <entry file>\n\nBasic options:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, defaults to rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs, es, iife, umd, system)\n-g, --globals <pairs> Comma-separate list of `moduleID:Global` pairs\n-h, --help Show this help message\n-i, --input <filename> Input (alternative to <entry file>)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n-n, --name <name> Name for UMD export\n-o, --file <output> Single output file (if absent, prints to stdout)\n-p, --plugin <plugin> Use the plugin specified (may be repeated)\n-v, --version Show version number\n-w, --watch Watch files in bundle and rebuild on changes\n--amd.autoId Generate the AMD ID based off the chunk name\n--amd.basePath <prefix> Path to prepend to auto generated AMD ID\n--amd.define <name> Function to use in place of `define`\n--amd.forceJsExtensionForImports Use `.js` extension in AMD imports\n--amd.id <id> ID for AMD module (default is anonymous)\n--assetFileNames <pattern> Name pattern for emitted assets\n--banner <text> Code to insert at top of bundle (outside wrapper)\n--chunkFileNames <pattern> Name pattern for emitted secondary chunks\n--compact Minify wrapper code\n--context <variable> Specify top-level `this` value\n--no-dynamicImportInCjs Write external dynamic CommonJS imports as require\n--entryFileNames <pattern> Name pattern for emitted entry chunks\n--environment <values> Settings passed to config file (see example)\n--no-esModule Do not add __esModule property\n--exports <mode> Specify export mode (auto, default, named, none)\n--extend Extend global variable defined by --name\n--no-externalImportAssertions Omit import assertions in \"es\" output\n--no-externalLiveBindings Do not generate code to support live bindings\n--failAfterWarnings Exit with an error if the build produced warnings\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--no-freeze Do not freeze namespace objects\n--generatedCode <preset> Which code features to use (es5/es2015)\n--generatedCode.arrowFunctions Use arrow functions in generated code\n--generatedCode.constBindings Use \"const\" in generated code\n--generatedCode.objectShorthand Use shorthand properties in generated code\n--no-generatedCode.reservedNamesAsProps Always quote reserved names as props\n--generatedCode.symbols Use symbols in generated code\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--no-indent Don't indent result\n--inlineDynamicImports Create single bundle when using dynamic imports\n--no-interop Do not include interop block\n--intro <text> Code to insert at top of bundle (inside wrapper)\n--no-makeAbsoluteExternalsRelative Prevent normalization of external imports\n--maxParallelFileOps <value> How many files to read in parallel\n--minifyInternalExports Force or disable minification of internal exports\n--noConflict Generate a noConflict method for UMD globals\n--outro <text> Code to insert at end of bundle (inside wrapper)\n--perf Display performance timings\n--no-preserveEntrySignatures Avoid facade chunks for entry points\n--preserveModules Preserve module structure\n--preserveModulesRoot Put preserved modules under this path at root level\n--preserveSymlinks Do not follow symlinks when resolving files\n--no-sanitizeFileName Do not replace invalid characters in file names\n--shimMissingExports Create shim variables for missing exports\n--silent Don't print warnings\n--sourcemapBaseUrl <url> Emit absolute sourcemap URLs with given base\n--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\n--stdin=ext Specify file extension used for stdin input\n--no-stdin Do not read \"-\" from stdin\n--no-strict Don't emit `\"use strict\";` in the generated modules\n--strictDeprecations Throw errors for deprecated features\n--no-systemNullSetters Do not replace empty SystemJS setters with `null`\n--no-treeshake Disable tree-shaking optimisations\n--no-treeshake.annotations Ignore pure call annotations\n--treeshake.correctVarValueBeforeDeclaration Deoptimize variables until declared\n--treeshake.manualPureFunctions <names> Manually declare functions as pure\n--no-treeshake.moduleSideEffects Assume modules have no side effects\n--no-treeshake.propertyReadSideEffects Ignore property access side effects\n--no-treeshake.tryCatchDeoptimization Do not turn off try-catch-tree-shaking\n--no-treeshake.unknownGlobalSideEffects Assume unknown globals do not throw\n--validate Validate output\n--waitForBundleInput Wait for bundle input files\n--watch.buildDelay <number> Throttle watch rebuilds\n--no-watch.clearScreen Do not clear the screen when rebuilding\n--watch.exclude <files> Exclude files from being watched\n--watch.include <files> Limit watching to specified files\n--watch.onBundleEnd <cmd> Shell command to run on `\"BUNDLE_END\"` event\n--watch.onBundleStart <cmd> Shell command to run on `\"BUNDLE_START\"` event\n--watch.onEnd <cmd> Shell command to run on `\"END\"` event\n--watch.onError <cmd> Shell command to run on `\"ERROR\"` event\n--watch.onStart <cmd> Shell command to run on `\"START\"` event\n--watch.skipWrite Do not write files to disk when watching\n\nExamples:\n\n# use settings in config file\nrollup -c\n\n# in config file, process.env.INCLUDE_DEPS === 'true'\n# and process.env.BUILD === 'production'\nrollup -c --environment INCLUDE_DEPS,BUILD:production\n\n# create CommonJS bundle.js from src/main.js\nrollup --format=cjs --file=bundle.js -- src/main.js\n\n# create self-executing IIFE using `window.jQuery`\n# and `window._` as external globals\nrollup -f iife --globals jquery:jQuery,lodash:_ \\\n -i src/app.js -o build/app.js -m build/app.js.map\n\nNotes:\n\n* When piping to stdout, only inline sourcemaps are permitted\n\nFor more information visit https://rollupjs.org\n";
|
|
@@ -1705,10 +1704,7 @@ else {
|
|
|
1705
1704
|
catch {
|
|
1706
1705
|
// do nothing
|
|
1707
1706
|
}
|
|
1708
|
-
runRollup(command)
|
|
1709
|
-
process$1.stdout.on('finish', () => process$1.exit(0));
|
|
1710
|
-
process$1.stdout.end();
|
|
1711
|
-
});
|
|
1707
|
+
runRollup(command);
|
|
1712
1708
|
}
|
|
1713
1709
|
|
|
1714
1710
|
exports.getConfigPath = getConfigPath;
|
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.22.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.22.1
|
|
4
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -14,5 +14,4 @@ import 'node:process';
|
|
|
14
14
|
import 'node:perf_hooks';
|
|
15
15
|
import 'node:crypto';
|
|
16
16
|
import 'node:fs/promises';
|
|
17
|
-
import 'node:events';
|
|
18
17
|
import 'tty';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.22.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.22.1
|
|
4
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -13,10 +13,9 @@ import process$1, { env as env$1 } from 'node:process';
|
|
|
13
13
|
import { performance } from 'node:perf_hooks';
|
|
14
14
|
import { createHash as createHash$1 } from 'node:crypto';
|
|
15
15
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
16
|
-
import { EventEmitter } from 'node:events';
|
|
17
16
|
import * as tty from 'tty';
|
|
18
17
|
|
|
19
|
-
var version$1 = "3.22.
|
|
18
|
+
var version$1 = "3.22.1";
|
|
20
19
|
|
|
21
20
|
const comma = ','.charCodeAt(0);
|
|
22
21
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -12993,14 +12992,14 @@ class NamespaceVariable extends Variable {
|
|
|
12993
12992
|
const memberVariables = this.getMemberVariables();
|
|
12994
12993
|
const members = Object.entries(memberVariables)
|
|
12995
12994
|
.filter(([_, variable]) => variable.included)
|
|
12996
|
-
.map(([name,
|
|
12997
|
-
if (this.referencedEarly ||
|
|
12995
|
+
.map(([name, variable]) => {
|
|
12996
|
+
if (this.referencedEarly || variable.isReassigned || variable === this) {
|
|
12998
12997
|
return [
|
|
12999
12998
|
null,
|
|
13000
|
-
`get ${name}${_}()${_}{${_}return ${
|
|
12999
|
+
`get ${name}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
|
|
13001
13000
|
];
|
|
13002
13001
|
}
|
|
13003
|
-
return [name,
|
|
13002
|
+
return [name, variable.getName(getPropertyAccess)];
|
|
13004
13003
|
});
|
|
13005
13004
|
members.unshift([null, `__proto__:${_}null`]);
|
|
13006
13005
|
let output = getObject(members, { lineBreakIndent: { base: '', t } });
|
|
@@ -16813,9 +16812,7 @@ function getOptimizedChunks(initialChunks, numberOfEntries, minChunkSize) {
|
|
|
16813
16812
|
}
|
|
16814
16813
|
minChunkSize > 1 &&
|
|
16815
16814
|
console.log('Before eliminating small chunks, there were\n', initialChunks.length, 'chunks, of which\n', chunkPartition.small.size, 'were below minChunkSize.');
|
|
16816
|
-
|
|
16817
|
-
mergeChunks(chunkPartition, minChunkSize);
|
|
16818
|
-
}
|
|
16815
|
+
mergeChunks(chunkPartition, minChunkSize);
|
|
16819
16816
|
minChunkSize > 1 &&
|
|
16820
16817
|
console.log('After merging chunks,\n', chunkPartition.small.size + chunkPartition.big.size, 'chunks remain, of which\n', chunkPartition.small.size, 'are below minChunkSize.');
|
|
16821
16818
|
timeEnd('optimize chunks', 3);
|
|
@@ -24938,25 +24935,34 @@ function formatAction([pluginName, hookName, parameters]) {
|
|
|
24938
24935
|
}
|
|
24939
24936
|
return action;
|
|
24940
24937
|
}
|
|
24941
|
-
|
|
24942
|
-
|
|
24943
|
-
const beforeExitEvent = 'beforeExit';
|
|
24944
|
-
const beforeExitEmitter = new EventEmitter();
|
|
24945
|
-
beforeExitEmitter.setMaxListeners(0);
|
|
24946
|
-
process$1.on(beforeExitEvent, () => beforeExitEmitter.emit(beforeExitEvent));
|
|
24938
|
+
let handleBeforeExit = null;
|
|
24939
|
+
const rejectByPluginDriver = new Map();
|
|
24947
24940
|
async function catchUnfinishedHookActions(pluginDriver, callback) {
|
|
24948
|
-
let handleEmptyEventLoop;
|
|
24949
24941
|
const emptyEventLoopPromise = new Promise((_, reject) => {
|
|
24950
|
-
|
|
24951
|
-
|
|
24952
|
-
|
|
24953
|
-
|
|
24954
|
-
|
|
24955
|
-
|
|
24942
|
+
rejectByPluginDriver.set(pluginDriver, reject);
|
|
24943
|
+
if (!handleBeforeExit) {
|
|
24944
|
+
// We only ever create a single event listener to avoid max listener and
|
|
24945
|
+
// other issues
|
|
24946
|
+
handleBeforeExit = () => {
|
|
24947
|
+
for (const [pluginDriver, reject] of rejectByPluginDriver) {
|
|
24948
|
+
const unfulfilledActions = pluginDriver.getUnfulfilledHookActions();
|
|
24949
|
+
reject(new Error(`Unexpected early exit. This happens when Promises returned by plugins cannot resolve. Unfinished hook action(s) on exit:\n` +
|
|
24950
|
+
[...unfulfilledActions].map(formatAction).join('\n')));
|
|
24951
|
+
}
|
|
24952
|
+
};
|
|
24953
|
+
process$1.once('beforeExit', handleBeforeExit);
|
|
24954
|
+
}
|
|
24956
24955
|
});
|
|
24957
|
-
|
|
24958
|
-
|
|
24959
|
-
|
|
24956
|
+
try {
|
|
24957
|
+
return await Promise.race([callback(), emptyEventLoopPromise]);
|
|
24958
|
+
}
|
|
24959
|
+
finally {
|
|
24960
|
+
rejectByPluginDriver.delete(pluginDriver);
|
|
24961
|
+
if (rejectByPluginDriver.size === 0) {
|
|
24962
|
+
process$1.off('beforeExit', handleBeforeExit);
|
|
24963
|
+
handleBeforeExit = null;
|
|
24964
|
+
}
|
|
24965
|
+
}
|
|
24960
24966
|
}
|
|
24961
24967
|
|
|
24962
24968
|
const leftCurlyBrace = "{".charCodeAt(0);
|
|
@@ -25055,7 +25061,7 @@ function importAssertions(Parser) {
|
|
|
25055
25061
|
if (this.type !== tt.string) { this.unexpected(); }
|
|
25056
25062
|
node.source = this.parseExprAtom();
|
|
25057
25063
|
|
|
25058
|
-
if (this.type === this.assertToken) {
|
|
25064
|
+
if (this.type === this.assertToken || this.type === tt._with) {
|
|
25059
25065
|
this.next();
|
|
25060
25066
|
const assertions = this.parseImportAssertions();
|
|
25061
25067
|
if (assertions) {
|
|
@@ -25099,7 +25105,7 @@ function importAssertions(Parser) {
|
|
|
25099
25105
|
if (this.type !== tt.string) { this.unexpected(); }
|
|
25100
25106
|
node.source = this.parseExprAtom();
|
|
25101
25107
|
|
|
25102
|
-
if (this.type === this.assertToken) {
|
|
25108
|
+
if (this.type === this.assertToken || this.type === tt._with) {
|
|
25103
25109
|
this.next();
|
|
25104
25110
|
const assertions = this.parseImportAssertions();
|
|
25105
25111
|
if (assertions) {
|
|
@@ -25136,7 +25142,7 @@ function importAssertions(Parser) {
|
|
|
25136
25142
|
this.type === tt.string ? this.parseExprAtom() : this.unexpected();
|
|
25137
25143
|
}
|
|
25138
25144
|
|
|
25139
|
-
if (this.type === this.assertToken) {
|
|
25145
|
+
if (this.type === this.assertToken || this.type == tt._with) {
|
|
25140
25146
|
this.next();
|
|
25141
25147
|
const assertions = this.parseImportAssertions();
|
|
25142
25148
|
if (assertions) {
|
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.22.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.22.1
|
|
4
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -20,7 +20,6 @@ import require$$0$3 from 'events';
|
|
|
20
20
|
import 'node:perf_hooks';
|
|
21
21
|
import 'node:crypto';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
|
-
import 'node:events';
|
|
24
23
|
import 'tty';
|
|
25
24
|
|
|
26
25
|
var chokidar = {};
|
package/dist/loadConfigFile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.22.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.22.1
|
|
4
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -21,7 +21,6 @@ require('tty');
|
|
|
21
21
|
require('path');
|
|
22
22
|
require('node:perf_hooks');
|
|
23
23
|
require('node:crypto');
|
|
24
|
-
require('node:events');
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
|
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.22.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.22.1
|
|
4
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -20,7 +20,6 @@ require('path');
|
|
|
20
20
|
require('node:perf_hooks');
|
|
21
21
|
require('node:crypto');
|
|
22
22
|
require('node:fs/promises');
|
|
23
|
-
require('node:events');
|
|
24
23
|
require('./shared/fsevents-importer.js');
|
|
25
24
|
|
|
26
25
|
|
package/dist/shared/index.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.22.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.22.1
|
|
4
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -16,7 +16,6 @@ const require$$0$1 = require('path');
|
|
|
16
16
|
const node_perf_hooks = require('node:perf_hooks');
|
|
17
17
|
const node_crypto = require('node:crypto');
|
|
18
18
|
const promises = require('node:fs/promises');
|
|
19
|
-
const node_events = require('node:events');
|
|
20
19
|
|
|
21
20
|
function _interopNamespaceDefault(e) {
|
|
22
21
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -31,7 +30,7 @@ function _interopNamespaceDefault(e) {
|
|
|
31
30
|
|
|
32
31
|
const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
|
|
33
32
|
|
|
34
|
-
var version$1 = "3.22.
|
|
33
|
+
var version$1 = "3.22.1";
|
|
35
34
|
|
|
36
35
|
function ensureArray$1(items) {
|
|
37
36
|
if (Array.isArray(items)) {
|
|
@@ -13488,14 +13487,14 @@ class NamespaceVariable extends Variable {
|
|
|
13488
13487
|
const memberVariables = this.getMemberVariables();
|
|
13489
13488
|
const members = Object.entries(memberVariables)
|
|
13490
13489
|
.filter(([_, variable]) => variable.included)
|
|
13491
|
-
.map(([name,
|
|
13492
|
-
if (this.referencedEarly ||
|
|
13490
|
+
.map(([name, variable]) => {
|
|
13491
|
+
if (this.referencedEarly || variable.isReassigned || variable === this) {
|
|
13493
13492
|
return [
|
|
13494
13493
|
null,
|
|
13495
|
-
`get ${name}${_}()${_}{${_}return ${
|
|
13494
|
+
`get ${name}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
|
|
13496
13495
|
];
|
|
13497
13496
|
}
|
|
13498
|
-
return [name,
|
|
13497
|
+
return [name, variable.getName(getPropertyAccess)];
|
|
13499
13498
|
});
|
|
13500
13499
|
members.unshift([null, `__proto__:${_}null`]);
|
|
13501
13500
|
let output = getObject(members, { lineBreakIndent: { base: '', t } });
|
|
@@ -17308,9 +17307,7 @@ function getOptimizedChunks(initialChunks, numberOfEntries, minChunkSize) {
|
|
|
17308
17307
|
}
|
|
17309
17308
|
minChunkSize > 1 &&
|
|
17310
17309
|
console.log('Before eliminating small chunks, there were\n', initialChunks.length, 'chunks, of which\n', chunkPartition.small.size, 'were below minChunkSize.');
|
|
17311
|
-
|
|
17312
|
-
mergeChunks(chunkPartition, minChunkSize);
|
|
17313
|
-
}
|
|
17310
|
+
mergeChunks(chunkPartition, minChunkSize);
|
|
17314
17311
|
minChunkSize > 1 &&
|
|
17315
17312
|
console.log('After merging chunks,\n', chunkPartition.small.size + chunkPartition.big.size, 'chunks remain, of which\n', chunkPartition.small.size, 'are below minChunkSize.');
|
|
17316
17313
|
timeEnd('optimize chunks', 3);
|
|
@@ -25433,25 +25430,34 @@ function formatAction([pluginName, hookName, parameters]) {
|
|
|
25433
25430
|
}
|
|
25434
25431
|
return action;
|
|
25435
25432
|
}
|
|
25436
|
-
|
|
25437
|
-
|
|
25438
|
-
const beforeExitEvent = 'beforeExit';
|
|
25439
|
-
const beforeExitEmitter = new node_events.EventEmitter();
|
|
25440
|
-
beforeExitEmitter.setMaxListeners(0);
|
|
25441
|
-
process$1.on(beforeExitEvent, () => beforeExitEmitter.emit(beforeExitEvent));
|
|
25433
|
+
let handleBeforeExit = null;
|
|
25434
|
+
const rejectByPluginDriver = new Map();
|
|
25442
25435
|
async function catchUnfinishedHookActions(pluginDriver, callback) {
|
|
25443
|
-
let handleEmptyEventLoop;
|
|
25444
25436
|
const emptyEventLoopPromise = new Promise((_, reject) => {
|
|
25445
|
-
|
|
25446
|
-
|
|
25447
|
-
|
|
25448
|
-
|
|
25449
|
-
|
|
25450
|
-
|
|
25437
|
+
rejectByPluginDriver.set(pluginDriver, reject);
|
|
25438
|
+
if (!handleBeforeExit) {
|
|
25439
|
+
// We only ever create a single event listener to avoid max listener and
|
|
25440
|
+
// other issues
|
|
25441
|
+
handleBeforeExit = () => {
|
|
25442
|
+
for (const [pluginDriver, reject] of rejectByPluginDriver) {
|
|
25443
|
+
const unfulfilledActions = pluginDriver.getUnfulfilledHookActions();
|
|
25444
|
+
reject(new Error(`Unexpected early exit. This happens when Promises returned by plugins cannot resolve. Unfinished hook action(s) on exit:\n` +
|
|
25445
|
+
[...unfulfilledActions].map(formatAction).join('\n')));
|
|
25446
|
+
}
|
|
25447
|
+
};
|
|
25448
|
+
process$1.once('beforeExit', handleBeforeExit);
|
|
25449
|
+
}
|
|
25451
25450
|
});
|
|
25452
|
-
|
|
25453
|
-
|
|
25454
|
-
|
|
25451
|
+
try {
|
|
25452
|
+
return await Promise.race([callback(), emptyEventLoopPromise]);
|
|
25453
|
+
}
|
|
25454
|
+
finally {
|
|
25455
|
+
rejectByPluginDriver.delete(pluginDriver);
|
|
25456
|
+
if (rejectByPluginDriver.size === 0) {
|
|
25457
|
+
process$1.off('beforeExit', handleBeforeExit);
|
|
25458
|
+
handleBeforeExit = null;
|
|
25459
|
+
}
|
|
25460
|
+
}
|
|
25455
25461
|
}
|
|
25456
25462
|
|
|
25457
25463
|
const leftCurlyBrace = "{".charCodeAt(0);
|
|
@@ -25550,7 +25556,7 @@ function importAssertions(Parser) {
|
|
|
25550
25556
|
if (this.type !== tt.string) { this.unexpected(); }
|
|
25551
25557
|
node.source = this.parseExprAtom();
|
|
25552
25558
|
|
|
25553
|
-
if (this.type === this.assertToken) {
|
|
25559
|
+
if (this.type === this.assertToken || this.type === tt._with) {
|
|
25554
25560
|
this.next();
|
|
25555
25561
|
const assertions = this.parseImportAssertions();
|
|
25556
25562
|
if (assertions) {
|
|
@@ -25594,7 +25600,7 @@ function importAssertions(Parser) {
|
|
|
25594
25600
|
if (this.type !== tt.string) { this.unexpected(); }
|
|
25595
25601
|
node.source = this.parseExprAtom();
|
|
25596
25602
|
|
|
25597
|
-
if (this.type === this.assertToken) {
|
|
25603
|
+
if (this.type === this.assertToken || this.type === tt._with) {
|
|
25598
25604
|
this.next();
|
|
25599
25605
|
const assertions = this.parseImportAssertions();
|
|
25600
25606
|
if (assertions) {
|
|
@@ -25631,7 +25637,7 @@ function importAssertions(Parser) {
|
|
|
25631
25637
|
this.type === tt.string ? this.parseExprAtom() : this.unexpected();
|
|
25632
25638
|
}
|
|
25633
25639
|
|
|
25634
|
-
if (this.type === this.assertToken) {
|
|
25640
|
+
if (this.type === this.assertToken || this.type == tt._with) {
|
|
25635
25641
|
this.next();
|
|
25636
25642
|
const assertions = this.parseImportAssertions();
|
|
25637
25643
|
if (assertions) {
|
package/dist/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.22.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.22.1
|
|
4
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -30,7 +30,6 @@ require('node:path');
|
|
|
30
30
|
require('tty');
|
|
31
31
|
require('node:perf_hooks');
|
|
32
32
|
require('node:crypto');
|
|
33
|
-
require('node:events');
|
|
34
33
|
require('node:url');
|
|
35
34
|
|
|
36
35
|
function timeZone(date = new Date()) {
|
|
@@ -140,7 +139,6 @@ class Emitter {
|
|
|
140
139
|
id = Math.random();
|
|
141
140
|
constructor() {
|
|
142
141
|
if (global[kExitEmitter]) {
|
|
143
|
-
console.error('reusing global emitter');
|
|
144
142
|
return global[kExitEmitter];
|
|
145
143
|
}
|
|
146
144
|
ObjectDefineProperty(global, kExitEmitter, {
|
package/dist/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.22.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.22.1
|
|
4
|
+
Sun, 21 May 2023 19:51:48 GMT - commit fba14ad6955081dd400261157e60d31132acba03
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -21,7 +21,6 @@ require('path');
|
|
|
21
21
|
require('node:perf_hooks');
|
|
22
22
|
require('node:crypto');
|
|
23
23
|
require('node:fs/promises');
|
|
24
|
-
require('node:events');
|
|
25
24
|
require('fs');
|
|
26
25
|
require('util');
|
|
27
26
|
require('stream');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.1",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -64,32 +64,32 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@codemirror/commands": "^6.2.4",
|
|
67
|
-
"@codemirror/lang-javascript": "^6.1.
|
|
67
|
+
"@codemirror/lang-javascript": "^6.1.8",
|
|
68
68
|
"@codemirror/language": "^6.6.0",
|
|
69
69
|
"@codemirror/search": "^6.4.0",
|
|
70
70
|
"@codemirror/state": "^6.2.0",
|
|
71
|
-
"@codemirror/view": "^6.11.
|
|
71
|
+
"@codemirror/view": "^6.11.3",
|
|
72
72
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
73
73
|
"@mermaid-js/mermaid-cli": "^10.1.0",
|
|
74
74
|
"@rollup/plugin-alias": "^5.0.0",
|
|
75
75
|
"@rollup/plugin-buble": "^1.0.2",
|
|
76
|
-
"@rollup/plugin-commonjs": "^
|
|
76
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
77
77
|
"@rollup/plugin-json": "^6.0.0",
|
|
78
78
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
79
79
|
"@rollup/plugin-replace": "^5.0.2",
|
|
80
|
-
"@rollup/plugin-terser": "^0.4.
|
|
81
|
-
"@rollup/plugin-typescript": "^11.1.
|
|
80
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
81
|
+
"@rollup/plugin-typescript": "^11.1.1",
|
|
82
82
|
"@rollup/pluginutils": "^5.0.2",
|
|
83
83
|
"@types/estree": "1.0.1",
|
|
84
84
|
"@types/mocha": "^10.0.1",
|
|
85
|
-
"@types/node": "~14.18.
|
|
85
|
+
"@types/node": "~14.18.47",
|
|
86
86
|
"@types/yargs-parser": "^21.0.0",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
88
|
-
"@typescript-eslint/parser": "^5.59.
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
88
|
+
"@typescript-eslint/parser": "^5.59.6",
|
|
89
89
|
"@vue/eslint-config-prettier": "^7.1.0",
|
|
90
90
|
"@vue/eslint-config-typescript": "^11.0.3",
|
|
91
91
|
"acorn": "^8.8.2",
|
|
92
|
-
"acorn-import-assertions": "^1.
|
|
92
|
+
"acorn-import-assertions": "^1.9.0",
|
|
93
93
|
"acorn-jsx": "^5.3.2",
|
|
94
94
|
"acorn-walk": "^8.2.0",
|
|
95
95
|
"buble": "^0.20.0",
|
|
@@ -97,49 +97,49 @@
|
|
|
97
97
|
"chokidar": "^3.5.3",
|
|
98
98
|
"colorette": "^2.0.20",
|
|
99
99
|
"concurrently": "^8.0.1",
|
|
100
|
-
"core-js": "^3.30.
|
|
100
|
+
"core-js": "^3.30.2",
|
|
101
101
|
"date-time": "^4.0.0",
|
|
102
102
|
"es5-shim": "^4.6.7",
|
|
103
103
|
"es6-shim": "^0.35.8",
|
|
104
|
-
"eslint": "^8.
|
|
104
|
+
"eslint": "^8.40.0",
|
|
105
105
|
"eslint-config-prettier": "^8.8.0",
|
|
106
106
|
"eslint-plugin-import": "^2.27.5",
|
|
107
107
|
"eslint-plugin-prettier": "^4.2.1",
|
|
108
|
-
"eslint-plugin-unicorn": "^
|
|
109
|
-
"eslint-plugin-vue": "^9.
|
|
108
|
+
"eslint-plugin-unicorn": "^47.0.0",
|
|
109
|
+
"eslint-plugin-vue": "^9.13.0",
|
|
110
110
|
"fixturify": "^3.0.0",
|
|
111
111
|
"flru": "^1.0.2",
|
|
112
112
|
"fs-extra": "^11.1.1",
|
|
113
113
|
"github-api": "^3.4.0",
|
|
114
114
|
"hash.js": "^1.1.7",
|
|
115
115
|
"husky": "^8.0.3",
|
|
116
|
-
"inquirer": "^9.2.
|
|
116
|
+
"inquirer": "^9.2.3",
|
|
117
117
|
"is-reference": "^3.0.1",
|
|
118
118
|
"lint-staged": "^13.2.2",
|
|
119
119
|
"locate-character": "^2.0.5",
|
|
120
120
|
"magic-string": "^0.30.0",
|
|
121
121
|
"mocha": "^10.2.0",
|
|
122
122
|
"nyc": "^15.1.0",
|
|
123
|
-
"pinia": "^2.
|
|
123
|
+
"pinia": "^2.1.1",
|
|
124
124
|
"prettier": "^2.8.8",
|
|
125
125
|
"pretty-bytes": "^6.1.0",
|
|
126
126
|
"pretty-ms": "^8.0.0",
|
|
127
127
|
"requirejs": "^2.3.6",
|
|
128
|
-
"rollup": "^3.
|
|
128
|
+
"rollup": "^3.22.0",
|
|
129
129
|
"rollup-plugin-license": "^3.0.1",
|
|
130
130
|
"rollup-plugin-string": "^3.0.0",
|
|
131
131
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
132
|
-
"semver": "^7.5.
|
|
132
|
+
"semver": "^7.5.1",
|
|
133
133
|
"shx": "^0.3.4",
|
|
134
|
-
"signal-exit": "^4.0.
|
|
134
|
+
"signal-exit": "^4.0.2",
|
|
135
135
|
"source-map": "^0.7.4",
|
|
136
136
|
"source-map-support": "^0.5.21",
|
|
137
137
|
"systemjs": "^6.14.1",
|
|
138
|
-
"terser": "^5.17.
|
|
138
|
+
"terser": "^5.17.4",
|
|
139
139
|
"tslib": "^2.5.0",
|
|
140
140
|
"typescript": "^5.0.4",
|
|
141
141
|
"vitepress": "^1.0.0-alpha.75",
|
|
142
|
-
"vue": "^3.2
|
|
142
|
+
"vue": "^3.3.2",
|
|
143
143
|
"weak-napi": "^2.0.2",
|
|
144
144
|
"yargs-parser": "^21.1.1"
|
|
145
145
|
},
|