@rollup/wasm-node 4.63.5 → 4.63.6
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 -3
- 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 +31 -16
- 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/node-entry.js +2 -2
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +31 -16
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm.js +3 -3
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +12 -12
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.63.
|
|
5
|
-
Thu,
|
|
4
|
+
Rollup.js v4.63.6
|
|
5
|
+
Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
@@ -27,7 +27,7 @@ require('node:perf_hooks');
|
|
|
27
27
|
require('node:url');
|
|
28
28
|
require('../getLogFilter.js');
|
|
29
29
|
|
|
30
|
-
const help = "rollup version 4.63.
|
|
30
|
+
const help = "rollup version 4.63.6\n=====================================\n\nUsage: rollup [options] <entry file>\n\nOptions:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, Rollup will try to load configuration files in\n the following order:\n rollup.config.mjs -> rollup.config.cjs -> 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-externalImportAttributes Omit import attributes 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--filterLogs <filter> Filter log messages\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--forceExit Force exit the process when done\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--hashCharacters <name> Use the specified character set for file hashes\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--importAttributesKey <name> Use the specified keyword for import attributes\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--logLevel <level> Which kind of logs to display\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-reexportProtoFromExternal Ignore `__proto__` in star re-exports\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--sourcemapDebugIds Emit unique debug ids in source and sourcemaps\n--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\n--sourcemapFileNames <pattern> Name pattern for emitted sourcemaps\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.allowInputInsideOutputPath Whether the input path is allowed to be a\n subpath of the output path\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";
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
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.63.
|
|
4
|
-
Thu,
|
|
3
|
+
Rollup.js v4.63.6
|
|
4
|
+
Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
|
|
|
27
27
|
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version = "4.63.
|
|
30
|
+
var version = "4.63.6";
|
|
31
31
|
const pkg = {
|
|
32
32
|
version: version};
|
|
33
33
|
|
|
@@ -317,7 +317,7 @@ var Chunk$1 = class Chunk {
|
|
|
317
317
|
this.outro = "";
|
|
318
318
|
this.end = index;
|
|
319
319
|
if (this.edited) {
|
|
320
|
-
newChunk.edit("", false);
|
|
320
|
+
newChunk.edit("", false, true);
|
|
321
321
|
this.content = "";
|
|
322
322
|
} else this.content = originalBefore;
|
|
323
323
|
newChunk.next = this.next;
|
|
@@ -1295,7 +1295,7 @@ var MagicString = class MagicString {
|
|
|
1295
1295
|
* Content appended or prepended at positions strictly inside the range is removed with it, while
|
|
1296
1296
|
* content attached at `start` or `end` is preserved — use `s.overwrite(start, end, '')` to remove
|
|
1297
1297
|
* the range including its edge inserts.
|
|
1298
|
-
*
|
|
1298
|
+
* Repeated removals and removals with partially overlapping ranges are allowed.
|
|
1299
1299
|
*/
|
|
1300
1300
|
remove(start, end) {
|
|
1301
1301
|
start = start + this.offset;
|
|
@@ -1577,10 +1577,16 @@ var MagicString = class MagicString {
|
|
|
1577
1577
|
* @internal
|
|
1578
1578
|
*/
|
|
1579
1579
|
_hasRemovedContent(start, end) {
|
|
1580
|
-
let chunk = this.
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1580
|
+
let chunk = this.byStart.get(start);
|
|
1581
|
+
if (!chunk) {
|
|
1582
|
+
chunk = this.lastSearchedChunk;
|
|
1583
|
+
const searchForward = start >= chunk.end;
|
|
1584
|
+
while (chunk && !chunk.contains(start)) chunk = searchForward ? this.byStart.get(chunk.end) : this.byEnd.get(chunk.start);
|
|
1585
|
+
if (chunk) this.lastSearchedChunk = chunk;
|
|
1586
|
+
}
|
|
1587
|
+
while (chunk && chunk.start < end) {
|
|
1588
|
+
if (chunk.content === "") return true;
|
|
1589
|
+
chunk = this.byStart.get(chunk.end);
|
|
1584
1590
|
}
|
|
1585
1591
|
return false;
|
|
1586
1592
|
}
|
|
@@ -1644,6 +1650,7 @@ var MagicString = class MagicString {
|
|
|
1644
1650
|
const stringLength = string.length;
|
|
1645
1651
|
if (stringLength === 0) {
|
|
1646
1652
|
for (let index = 0; index <= original.length; index += 1) {
|
|
1653
|
+
if (this._hasRemovedContent(index, index)) continue;
|
|
1647
1654
|
const _replacement = typeof replacement === "function" ? replacement("", index, original) : expandReplacement(replacement, "", index, original, [], void 0);
|
|
1648
1655
|
if (_replacement !== "") this.appendRight(index, _replacement);
|
|
1649
1656
|
}
|
|
@@ -7512,9 +7519,9 @@ class Literal extends NodeBase {
|
|
|
7512
7519
|
this.regex = esTreeNode.regex;
|
|
7513
7520
|
return super.parseNode(esTreeNode);
|
|
7514
7521
|
}
|
|
7515
|
-
render(
|
|
7522
|
+
render() {
|
|
7516
7523
|
if (typeof this.value === 'string') {
|
|
7517
|
-
|
|
7524
|
+
this.scope.context.addIndentExclusionRange([this.start + 1, this.end - 1]);
|
|
7518
7525
|
}
|
|
7519
7526
|
}
|
|
7520
7527
|
}
|
|
@@ -15657,7 +15664,7 @@ class TemplateLiteral extends NodeBase {
|
|
|
15657
15664
|
}
|
|
15658
15665
|
}
|
|
15659
15666
|
render(code, options) {
|
|
15660
|
-
|
|
15667
|
+
this.scope.context.addIndentExclusionRange([this.start, this.end]);
|
|
15661
15668
|
super.render(code, options);
|
|
15662
15669
|
}
|
|
15663
15670
|
}
|
|
@@ -17558,6 +17565,7 @@ class Module {
|
|
|
17558
17565
|
this.exportedVariablesByName = null;
|
|
17559
17566
|
this.exportNamesByVariable = null;
|
|
17560
17567
|
this.exportShimVariable = new ExportShimVariable(this);
|
|
17568
|
+
this.indentExclusionRanges = [];
|
|
17561
17569
|
this.namespaceReexportsByName = new Map();
|
|
17562
17570
|
this.reexportDescriptions = new Map();
|
|
17563
17571
|
this.relevantDependencies = null;
|
|
@@ -17963,6 +17971,7 @@ class Module {
|
|
|
17963
17971
|
this.options.onLog(level, properties);
|
|
17964
17972
|
}
|
|
17965
17973
|
render(options) {
|
|
17974
|
+
this.indentExclusionRanges = [];
|
|
17966
17975
|
const source = this.magicString.clone();
|
|
17967
17976
|
this.ast.render(source, options);
|
|
17968
17977
|
source.trim();
|
|
@@ -17970,7 +17979,7 @@ class Module {
|
|
|
17970
17979
|
if (usesTopLevelAwait && options.format !== 'es' && options.format !== 'system') {
|
|
17971
17980
|
return error(logInvalidFormatForTopLevelAwait(this.id, options.format));
|
|
17972
17981
|
}
|
|
17973
|
-
return { source, usesTopLevelAwait };
|
|
17982
|
+
return { indentExclusionRanges: this.indentExclusionRanges, source, usesTopLevelAwait };
|
|
17974
17983
|
}
|
|
17975
17984
|
async setSource({ ast, code, customTransformCache, originalCode, originalSourcemap, resolvedIds, sourcemapChain, transformDependencies, transformFiles, safeVariableNames, ...moduleOptions }) {
|
|
17976
17985
|
timeStart('generate ast', 3);
|
|
@@ -17999,8 +18008,7 @@ class Module {
|
|
|
17999
18008
|
// can change that, but it makes sense to use it for the source file name
|
|
18000
18009
|
const fileName = this.id;
|
|
18001
18010
|
this.magicString = new MagicString(code, {
|
|
18002
|
-
filename: (this.excludeFromSourcemap ? null : fileName)
|
|
18003
|
-
indentExclusionRanges: []
|
|
18011
|
+
filename: (this.excludeFromSourcemap ? null : fileName) // don't include plugin helpers in sourcemap
|
|
18004
18012
|
});
|
|
18005
18013
|
this.astContext = {
|
|
18006
18014
|
addDynamicImport: this.addDynamicImport.bind(this),
|
|
@@ -18008,6 +18016,7 @@ class Module {
|
|
|
18008
18016
|
addImport: this.addImport.bind(this),
|
|
18009
18017
|
addImportMeta: this.addImportMeta.bind(this),
|
|
18010
18018
|
addImportSource: this.addImportSource.bind(this),
|
|
18019
|
+
addIndentExclusionRange: (range) => this.indentExclusionRanges.push(range),
|
|
18011
18020
|
code, // Only needed for debugging
|
|
18012
18021
|
deoptimizationTracker: this.graph.deoptimizationTracker,
|
|
18013
18022
|
error: this.error.bind(this),
|
|
@@ -19416,6 +19425,9 @@ class Chunk {
|
|
|
19416
19425
|
}
|
|
19417
19426
|
}
|
|
19418
19427
|
}
|
|
19428
|
+
else if (exportingModule instanceof ExternalModule && importedVariable.included) {
|
|
19429
|
+
includedReexports.push(importedVariable);
|
|
19430
|
+
}
|
|
19419
19431
|
}
|
|
19420
19432
|
}
|
|
19421
19433
|
if (includedReexports.length > 0) {
|
|
@@ -19846,7 +19858,10 @@ class Chunk {
|
|
|
19846
19858
|
if (renderedLength) {
|
|
19847
19859
|
if (compact && source.lastLine().includes('//'))
|
|
19848
19860
|
source.append('\n');
|
|
19849
|
-
magicString.addSource(
|
|
19861
|
+
magicString.addSource({
|
|
19862
|
+
content: source,
|
|
19863
|
+
indentExclusionRanges: rendered.indentExclusionRanges
|
|
19864
|
+
});
|
|
19850
19865
|
usedModules.push(module);
|
|
19851
19866
|
}
|
|
19852
19867
|
const namespace = module.namespace;
|
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.63.
|
|
4
|
-
Thu,
|
|
3
|
+
Rollup.js v4.63.6
|
|
4
|
+
Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
|
|
|
42
42
|
|
|
43
43
|
const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
|
|
44
44
|
|
|
45
|
-
var version = "4.63.
|
|
45
|
+
var version = "4.63.6";
|
|
46
46
|
const package_ = {
|
|
47
47
|
version: version};
|
|
48
48
|
|
|
@@ -4507,7 +4507,7 @@ var Chunk$1 = class Chunk {
|
|
|
4507
4507
|
this.outro = "";
|
|
4508
4508
|
this.end = index;
|
|
4509
4509
|
if (this.edited) {
|
|
4510
|
-
newChunk.edit("", false);
|
|
4510
|
+
newChunk.edit("", false, true);
|
|
4511
4511
|
this.content = "";
|
|
4512
4512
|
} else this.content = originalBefore;
|
|
4513
4513
|
newChunk.next = this.next;
|
|
@@ -5485,7 +5485,7 @@ var MagicString = class MagicString {
|
|
|
5485
5485
|
* Content appended or prepended at positions strictly inside the range is removed with it, while
|
|
5486
5486
|
* content attached at `start` or `end` is preserved — use `s.overwrite(start, end, '')` to remove
|
|
5487
5487
|
* the range including its edge inserts.
|
|
5488
|
-
*
|
|
5488
|
+
* Repeated removals and removals with partially overlapping ranges are allowed.
|
|
5489
5489
|
*/
|
|
5490
5490
|
remove(start, end) {
|
|
5491
5491
|
start = start + this.offset;
|
|
@@ -5767,10 +5767,16 @@ var MagicString = class MagicString {
|
|
|
5767
5767
|
* @internal
|
|
5768
5768
|
*/
|
|
5769
5769
|
_hasRemovedContent(start, end) {
|
|
5770
|
-
let chunk = this.
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5770
|
+
let chunk = this.byStart.get(start);
|
|
5771
|
+
if (!chunk) {
|
|
5772
|
+
chunk = this.lastSearchedChunk;
|
|
5773
|
+
const searchForward = start >= chunk.end;
|
|
5774
|
+
while (chunk && !chunk.contains(start)) chunk = searchForward ? this.byStart.get(chunk.end) : this.byEnd.get(chunk.start);
|
|
5775
|
+
if (chunk) this.lastSearchedChunk = chunk;
|
|
5776
|
+
}
|
|
5777
|
+
while (chunk && chunk.start < end) {
|
|
5778
|
+
if (chunk.content === "") return true;
|
|
5779
|
+
chunk = this.byStart.get(chunk.end);
|
|
5774
5780
|
}
|
|
5775
5781
|
return false;
|
|
5776
5782
|
}
|
|
@@ -5834,6 +5840,7 @@ var MagicString = class MagicString {
|
|
|
5834
5840
|
const stringLength = string.length;
|
|
5835
5841
|
if (stringLength === 0) {
|
|
5836
5842
|
for (let index = 0; index <= original.length; index += 1) {
|
|
5843
|
+
if (this._hasRemovedContent(index, index)) continue;
|
|
5837
5844
|
const _replacement = typeof replacement === "function" ? replacement("", index, original) : expandReplacement(replacement, "", index, original, [], void 0);
|
|
5838
5845
|
if (_replacement !== "") this.appendRight(index, _replacement);
|
|
5839
5846
|
}
|
|
@@ -11672,9 +11679,9 @@ class Literal extends NodeBase {
|
|
|
11672
11679
|
this.regex = esTreeNode.regex;
|
|
11673
11680
|
return super.parseNode(esTreeNode);
|
|
11674
11681
|
}
|
|
11675
|
-
render(
|
|
11682
|
+
render() {
|
|
11676
11683
|
if (typeof this.value === 'string') {
|
|
11677
|
-
|
|
11684
|
+
this.scope.context.addIndentExclusionRange([this.start + 1, this.end - 1]);
|
|
11678
11685
|
}
|
|
11679
11686
|
}
|
|
11680
11687
|
}
|
|
@@ -17274,7 +17281,7 @@ class TemplateLiteral extends NodeBase {
|
|
|
17274
17281
|
}
|
|
17275
17282
|
}
|
|
17276
17283
|
render(code, options) {
|
|
17277
|
-
|
|
17284
|
+
this.scope.context.addIndentExclusionRange([this.start, this.end]);
|
|
17278
17285
|
super.render(code, options);
|
|
17279
17286
|
}
|
|
17280
17287
|
}
|
|
@@ -19168,6 +19175,7 @@ class Module {
|
|
|
19168
19175
|
this.exportedVariablesByName = null;
|
|
19169
19176
|
this.exportNamesByVariable = null;
|
|
19170
19177
|
this.exportShimVariable = new ExportShimVariable(this);
|
|
19178
|
+
this.indentExclusionRanges = [];
|
|
19171
19179
|
this.namespaceReexportsByName = new Map();
|
|
19172
19180
|
this.reexportDescriptions = new Map();
|
|
19173
19181
|
this.relevantDependencies = null;
|
|
@@ -19573,6 +19581,7 @@ class Module {
|
|
|
19573
19581
|
this.options.onLog(level, properties);
|
|
19574
19582
|
}
|
|
19575
19583
|
render(options) {
|
|
19584
|
+
this.indentExclusionRanges = [];
|
|
19576
19585
|
const source = this.magicString.clone();
|
|
19577
19586
|
this.ast.render(source, options);
|
|
19578
19587
|
source.trim();
|
|
@@ -19580,7 +19589,7 @@ class Module {
|
|
|
19580
19589
|
if (usesTopLevelAwait && options.format !== 'es' && options.format !== 'system') {
|
|
19581
19590
|
return parseAst_js.error(parseAst_js.logInvalidFormatForTopLevelAwait(this.id, options.format));
|
|
19582
19591
|
}
|
|
19583
|
-
return { source, usesTopLevelAwait };
|
|
19592
|
+
return { indentExclusionRanges: this.indentExclusionRanges, source, usesTopLevelAwait };
|
|
19584
19593
|
}
|
|
19585
19594
|
async setSource({ ast, code, customTransformCache, originalCode, originalSourcemap, resolvedIds, sourcemapChain, transformDependencies, transformFiles, safeVariableNames, ...moduleOptions }) {
|
|
19586
19595
|
timeStart('generate ast', 3);
|
|
@@ -19609,8 +19618,7 @@ class Module {
|
|
|
19609
19618
|
// can change that, but it makes sense to use it for the source file name
|
|
19610
19619
|
const fileName = this.id;
|
|
19611
19620
|
this.magicString = new MagicString(code, {
|
|
19612
|
-
filename: (this.excludeFromSourcemap ? null : fileName)
|
|
19613
|
-
indentExclusionRanges: []
|
|
19621
|
+
filename: (this.excludeFromSourcemap ? null : fileName) // don't include plugin helpers in sourcemap
|
|
19614
19622
|
});
|
|
19615
19623
|
this.astContext = {
|
|
19616
19624
|
addDynamicImport: this.addDynamicImport.bind(this),
|
|
@@ -19618,6 +19626,7 @@ class Module {
|
|
|
19618
19626
|
addImport: this.addImport.bind(this),
|
|
19619
19627
|
addImportMeta: this.addImportMeta.bind(this),
|
|
19620
19628
|
addImportSource: this.addImportSource.bind(this),
|
|
19629
|
+
addIndentExclusionRange: (range) => this.indentExclusionRanges.push(range),
|
|
19621
19630
|
code, // Only needed for debugging
|
|
19622
19631
|
deoptimizationTracker: this.graph.deoptimizationTracker,
|
|
19623
19632
|
error: this.error.bind(this),
|
|
@@ -20912,6 +20921,9 @@ class Chunk {
|
|
|
20912
20921
|
}
|
|
20913
20922
|
}
|
|
20914
20923
|
}
|
|
20924
|
+
else if (exportingModule instanceof ExternalModule && importedVariable.included) {
|
|
20925
|
+
includedReexports.push(importedVariable);
|
|
20926
|
+
}
|
|
20915
20927
|
}
|
|
20916
20928
|
}
|
|
20917
20929
|
if (includedReexports.length > 0) {
|
|
@@ -21342,7 +21354,10 @@ class Chunk {
|
|
|
21342
21354
|
if (renderedLength) {
|
|
21343
21355
|
if (compact && source.lastLine().includes('//'))
|
|
21344
21356
|
source.append('\n');
|
|
21345
|
-
magicString.addSource(
|
|
21357
|
+
magicString.addSource({
|
|
21358
|
+
content: source,
|
|
21359
|
+
indentExclusionRanges: rendered.indentExclusionRanges
|
|
21360
|
+
});
|
|
21346
21361
|
usedModules.push(module);
|
|
21347
21362
|
}
|
|
21348
21363
|
const namespace = module.namespace;
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
@@ -91,7 +91,7 @@ exports.xxhashBase64Url = xxhashBase64Url;
|
|
|
91
91
|
function __wbg_get_imports() {
|
|
92
92
|
const import0 = {
|
|
93
93
|
__proto__: null,
|
|
94
|
-
|
|
94
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
95
95
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
96
96
|
},
|
|
97
97
|
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
@@ -105,7 +105,7 @@ function __wbg_get_imports() {
|
|
|
105
105
|
wasm.__wbindgen_export(deferred0_0, deferred0_1, 1);
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
|
|
108
|
+
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
109
109
|
const ret = getObject(arg0).length;
|
|
110
110
|
return ret;
|
|
111
111
|
},
|
|
@@ -113,7 +113,7 @@ function __wbg_get_imports() {
|
|
|
113
113
|
const ret = new Error();
|
|
114
114
|
return addHeapObject(ret);
|
|
115
115
|
},
|
|
116
|
-
|
|
116
|
+
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
117
117
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
118
118
|
},
|
|
119
119
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.63.
|
|
3
|
+
"version": "4.63.6",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"core-js": "We only update manually as every update requires a snapshot update"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@codemirror/commands": "^6.11.
|
|
39
|
+
"@codemirror/commands": "^6.11.1",
|
|
40
40
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
41
41
|
"@codemirror/language": "^6.12.4",
|
|
42
42
|
"@codemirror/search": "^6.7.2",
|
|
43
|
-
"@codemirror/state": "^6.7.
|
|
44
|
-
"@codemirror/view": "^6.43.
|
|
43
|
+
"@codemirror/state": "^6.7.5",
|
|
44
|
+
"@codemirror/view": "^6.43.12",
|
|
45
45
|
"@emnapi/core": "^1.11.3",
|
|
46
46
|
"@emnapi/runtime": "^1.11.3",
|
|
47
47
|
"@eslint/js": "^10.0.1",
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
"acorn-import-phases": "^1.0.4",
|
|
71
71
|
"acorn-jsx": "^5.3.2",
|
|
72
72
|
"buble": "^0.20.0",
|
|
73
|
-
"builtin-modules": "^5.
|
|
73
|
+
"builtin-modules": "^5.4.0",
|
|
74
74
|
"chokidar": "^3.6.0",
|
|
75
75
|
"concurrently": "^9.2.4",
|
|
76
76
|
"core-js": "3.38.1",
|
|
77
77
|
"date-time": "^4.0.0",
|
|
78
78
|
"es5-shim": "^4.6.7",
|
|
79
79
|
"es6-shim": "^0.35.8",
|
|
80
|
-
"eslint": "^10.
|
|
80
|
+
"eslint": "^10.11.0",
|
|
81
81
|
"eslint-config-prettier": "^10.1.8",
|
|
82
82
|
"eslint-plugin-prettier": "^5.5.6",
|
|
83
|
-
"eslint-plugin-unicorn": "^
|
|
83
|
+
"eslint-plugin-unicorn": "^76.0.0",
|
|
84
84
|
"eslint-plugin-vue": "^10.11.0",
|
|
85
85
|
"fixturify": "^3.0.0",
|
|
86
86
|
"flru": "^1.0.2",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"lint-staged": "^17.5.1",
|
|
93
93
|
"locate-character": "^3.0.0",
|
|
94
94
|
"magic-string": "^1.4.1",
|
|
95
|
-
"memfs": "^4.78.
|
|
95
|
+
"memfs": "^4.78.1",
|
|
96
96
|
"mocha": "^11.8.0",
|
|
97
97
|
"nodemon": "^3.1.14",
|
|
98
98
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
@@ -101,12 +101,12 @@
|
|
|
101
101
|
"picocolors": "^1.1.1",
|
|
102
102
|
"picomatch": "^4.0.7",
|
|
103
103
|
"pinia": "^4.0.3",
|
|
104
|
-
"prettier": "^3.9.
|
|
104
|
+
"prettier": "^3.9.8",
|
|
105
105
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
106
106
|
"pretty-bytes": "^7.1.3",
|
|
107
107
|
"pretty-ms": "^9.3.1",
|
|
108
108
|
"requirejs": "^2.3.8",
|
|
109
|
-
"rollup": "^4.63.
|
|
109
|
+
"rollup": "^4.63.4",
|
|
110
110
|
"rollup-plugin-license": "^3.7.1",
|
|
111
111
|
"semver": "^7.8.5",
|
|
112
112
|
"shx": "^0.4.0",
|
|
@@ -117,10 +117,10 @@
|
|
|
117
117
|
"terser": "^5.51.2",
|
|
118
118
|
"tslib": "^2.8.1",
|
|
119
119
|
"typescript": "^5.9.3",
|
|
120
|
-
"typescript-eslint": "^8.70.
|
|
120
|
+
"typescript-eslint": "^8.70.1",
|
|
121
121
|
"vite": "^7.3.6",
|
|
122
122
|
"vitepress": "^1.6.4",
|
|
123
|
-
"vue": "^3.5.
|
|
123
|
+
"vue": "^3.5.43",
|
|
124
124
|
"vue-eslint-parser": "^10.4.1",
|
|
125
125
|
"vue-tsc": "^3.3.11",
|
|
126
126
|
"wasm-pack": "^0.15.0",
|