rollup 4.41.2 → 4.42.0
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 +37 -38
- 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.d.ts +1 -0
- package/dist/rollup.js +13 -14
- 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 +3 -3
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +21 -21
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
|
-
Fri, 06 Jun 2025
|
|
4
|
+
Rollup.js v4.42.0
|
|
5
|
+
Fri, 06 Jun 2025 14:47:38 GMT - commit f76339428586620ff3e4c32fce48f923e7be7b05
|
|
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 __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-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.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";
|
|
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-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.
|
|
4
|
-
Fri, 06 Jun 2025
|
|
3
|
+
Rollup.js v4.42.0
|
|
4
|
+
Fri, 06 Jun 2025 14:47:38 GMT - commit f76339428586620ff3e4c32fce48f923e7be7b05
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
|
|
|
15
15
|
import { performance } from 'node:perf_hooks';
|
|
16
16
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
17
17
|
|
|
18
|
-
var version = "4.
|
|
18
|
+
var version = "4.42.0";
|
|
19
19
|
|
|
20
20
|
const comma = ','.charCodeAt(0);
|
|
21
21
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -23615,6 +23615,29 @@ async function mergeOutputOptions(config, overrides, log) {
|
|
|
23615
23615
|
return outputOptions;
|
|
23616
23616
|
}
|
|
23617
23617
|
|
|
23618
|
+
let fsEvents;
|
|
23619
|
+
let fsEventsImportError;
|
|
23620
|
+
async function loadFsEvents() {
|
|
23621
|
+
try {
|
|
23622
|
+
({ default: fsEvents } = await import('fsevents'));
|
|
23623
|
+
}
|
|
23624
|
+
catch (error) {
|
|
23625
|
+
fsEventsImportError = error;
|
|
23626
|
+
}
|
|
23627
|
+
}
|
|
23628
|
+
// A call to this function will be injected into the chokidar code
|
|
23629
|
+
function getFsEvents() {
|
|
23630
|
+
if (fsEventsImportError)
|
|
23631
|
+
throw fsEventsImportError;
|
|
23632
|
+
return fsEvents;
|
|
23633
|
+
}
|
|
23634
|
+
|
|
23635
|
+
const fseventsImporter = /*#__PURE__*/Object.defineProperty({
|
|
23636
|
+
__proto__: null,
|
|
23637
|
+
getFsEvents,
|
|
23638
|
+
loadFsEvents
|
|
23639
|
+
}, Symbol.toStringTag, { value: 'Module' });
|
|
23640
|
+
|
|
23618
23641
|
class WatchEmitter {
|
|
23619
23642
|
constructor() {
|
|
23620
23643
|
this.currentHandlers = Object.create(null);
|
|
@@ -23668,29 +23691,6 @@ class WatchEmitter {
|
|
|
23668
23691
|
}
|
|
23669
23692
|
}
|
|
23670
23693
|
|
|
23671
|
-
let fsEvents;
|
|
23672
|
-
let fsEventsImportError;
|
|
23673
|
-
async function loadFsEvents() {
|
|
23674
|
-
try {
|
|
23675
|
-
({ default: fsEvents } = await import('fsevents'));
|
|
23676
|
-
}
|
|
23677
|
-
catch (error) {
|
|
23678
|
-
fsEventsImportError = error;
|
|
23679
|
-
}
|
|
23680
|
-
}
|
|
23681
|
-
// A call to this function will be injected into the chokidar code
|
|
23682
|
-
function getFsEvents() {
|
|
23683
|
-
if (fsEventsImportError)
|
|
23684
|
-
throw fsEventsImportError;
|
|
23685
|
-
return fsEvents;
|
|
23686
|
-
}
|
|
23687
|
-
|
|
23688
|
-
const fseventsImporter = /*#__PURE__*/Object.defineProperty({
|
|
23689
|
-
__proto__: null,
|
|
23690
|
-
getFsEvents,
|
|
23691
|
-
loadFsEvents
|
|
23692
|
-
}, Symbol.toStringTag, { value: 'Module' });
|
|
23693
|
-
|
|
23694
23694
|
function watch(configs) {
|
|
23695
23695
|
const emitter = new WatchEmitter();
|
|
23696
23696
|
watchInternal(configs, emitter).catch(error => {
|
|
@@ -23698,7 +23698,7 @@ function watch(configs) {
|
|
|
23698
23698
|
});
|
|
23699
23699
|
return emitter;
|
|
23700
23700
|
}
|
|
23701
|
-
function
|
|
23701
|
+
function ensureTrailingSlash(path) {
|
|
23702
23702
|
if (path[path.length - 1] !== '/') {
|
|
23703
23703
|
return `${path}/`;
|
|
23704
23704
|
}
|
|
@@ -23706,21 +23706,20 @@ function withTrailingSlash(path) {
|
|
|
23706
23706
|
}
|
|
23707
23707
|
function checkWatchConfig(config) {
|
|
23708
23708
|
for (const item of config) {
|
|
23709
|
+
if (typeof item.watch !== 'boolean' && item.watch?.allowInputInsideOutputPath) {
|
|
23710
|
+
break;
|
|
23711
|
+
}
|
|
23709
23712
|
if (item.input && item.output) {
|
|
23710
23713
|
const input = typeof item.input === 'string' ? ensureArray(item.input) : item.input;
|
|
23711
|
-
const
|
|
23714
|
+
const outputs = ensureArray(item.output);
|
|
23712
23715
|
for (const index in input) {
|
|
23713
23716
|
const inputPath = input[index];
|
|
23714
|
-
|
|
23715
|
-
|
|
23716
|
-
|
|
23717
|
-
|
|
23718
|
-
|
|
23719
|
-
|
|
23720
|
-
return _inputPath.startsWith(_outPath);
|
|
23721
|
-
});
|
|
23722
|
-
if (subPath) {
|
|
23723
|
-
error(logInvalidOption('watch', URL_WATCH, `the input "${inputPath}" is a subpath of the output "${subPath.dir}"`));
|
|
23717
|
+
if (typeof inputPath !== 'string') {
|
|
23718
|
+
continue;
|
|
23719
|
+
}
|
|
23720
|
+
const outputWithInputAsSubPath = outputs.find(({ dir }) => dir && ensureTrailingSlash(inputPath).startsWith(ensureTrailingSlash(dir)));
|
|
23721
|
+
if (outputWithInputAsSubPath) {
|
|
23722
|
+
error(logInvalidOption('watch', URL_WATCH, `the input "${inputPath}" is a subpath of the output "${outputWithInputAsSubPath.dir}"`));
|
|
23724
23723
|
}
|
|
23725
23724
|
}
|
|
23726
23725
|
}
|
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.d.ts
CHANGED
|
@@ -1009,6 +1009,7 @@ export interface ChokidarOptions {
|
|
|
1009
1009
|
export type RollupWatchHooks = 'onError' | 'onStart' | 'onBundleStart' | 'onBundleEnd' | 'onEnd';
|
|
1010
1010
|
|
|
1011
1011
|
export interface WatcherOptions {
|
|
1012
|
+
allowInputInsideOutputPath?: boolean;
|
|
1012
1013
|
buildDelay?: number;
|
|
1013
1014
|
chokidar?: ChokidarOptions;
|
|
1014
1015
|
clearScreen?: boolean;
|
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
Fri, 06 Jun 2025
|
|
3
|
+
Rollup.js v4.42.0
|
|
4
|
+
Fri, 06 Jun 2025 14:47:38 GMT - commit f76339428586620ff3e4c32fce48f923e7be7b05
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -81,7 +81,7 @@ function watch(configs) {
|
|
|
81
81
|
});
|
|
82
82
|
return emitter;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ensureTrailingSlash(path) {
|
|
85
85
|
if (path[path.length - 1] !== '/') {
|
|
86
86
|
return `${path}/`;
|
|
87
87
|
}
|
|
@@ -89,21 +89,20 @@ function withTrailingSlash(path) {
|
|
|
89
89
|
}
|
|
90
90
|
function checkWatchConfig(config) {
|
|
91
91
|
for (const item of config) {
|
|
92
|
+
if (typeof item.watch !== 'boolean' && item.watch?.allowInputInsideOutputPath) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
92
95
|
if (item.input && item.output) {
|
|
93
96
|
const input = typeof item.input === 'string' ? rollup.ensureArray(item.input) : item.input;
|
|
94
|
-
const
|
|
97
|
+
const outputs = rollup.ensureArray(item.output);
|
|
95
98
|
for (const index in input) {
|
|
96
99
|
const inputPath = input[index];
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return _inputPath.startsWith(_outPath);
|
|
104
|
-
});
|
|
105
|
-
if (subPath) {
|
|
106
|
-
parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, `the input "${inputPath}" is a subpath of the output "${subPath.dir}"`));
|
|
100
|
+
if (typeof inputPath !== 'string') {
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
const outputWithInputAsSubPath = outputs.find(({ dir }) => dir && ensureTrailingSlash(inputPath).startsWith(ensureTrailingSlash(dir)));
|
|
104
|
+
if (outputWithInputAsSubPath) {
|
|
105
|
+
parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, `the input "${inputPath}" is a subpath of the output "${outputWithInputAsSubPath.dir}"`));
|
|
107
106
|
}
|
|
108
107
|
}
|
|
109
108
|
}
|
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
|
-
Fri, 06 Jun 2025
|
|
3
|
+
Rollup.js v4.42.0
|
|
4
|
+
Fri, 06 Jun 2025 14:47:38 GMT - commit f76339428586620ff3e4c32fce48f923e7be7b05
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
|
|
|
17
17
|
const node_perf_hooks = require('node:perf_hooks');
|
|
18
18
|
const promises = require('node:fs/promises');
|
|
19
19
|
|
|
20
|
-
var version = "4.
|
|
20
|
+
var version = "4.42.0";
|
|
21
21
|
|
|
22
22
|
function ensureArray$1(items) {
|
|
23
23
|
if (Array.isArray(items)) {
|
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.42.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -109,26 +109,26 @@
|
|
|
109
109
|
"homepage": "https://rollupjs.org/",
|
|
110
110
|
"optionalDependencies": {
|
|
111
111
|
"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-loongarch64-gnu": "4.
|
|
123
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.
|
|
124
|
-
"@rollup/rollup-linux-riscv64-musl": "4.
|
|
125
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "4.
|
|
126
|
-
"@rollup/rollup-linux-s390x-gnu": "4.
|
|
127
|
-
"@rollup/rollup-darwin-x64": "4.
|
|
128
|
-
"@rollup/rollup-win32-x64-msvc": "4.
|
|
129
|
-
"@rollup/rollup-freebsd-x64": "4.
|
|
130
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
131
|
-
"@rollup/rollup-linux-x64-musl": "4.
|
|
112
|
+
"@rollup/rollup-darwin-arm64": "4.42.0",
|
|
113
|
+
"@rollup/rollup-android-arm64": "4.42.0",
|
|
114
|
+
"@rollup/rollup-win32-arm64-msvc": "4.42.0",
|
|
115
|
+
"@rollup/rollup-freebsd-arm64": "4.42.0",
|
|
116
|
+
"@rollup/rollup-linux-arm64-gnu": "4.42.0",
|
|
117
|
+
"@rollup/rollup-linux-arm64-musl": "4.42.0",
|
|
118
|
+
"@rollup/rollup-android-arm-eabi": "4.42.0",
|
|
119
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.42.0",
|
|
120
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.42.0",
|
|
121
|
+
"@rollup/rollup-win32-ia32-msvc": "4.42.0",
|
|
122
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.42.0",
|
|
123
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.42.0",
|
|
124
|
+
"@rollup/rollup-linux-riscv64-musl": "4.42.0",
|
|
125
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.42.0",
|
|
126
|
+
"@rollup/rollup-linux-s390x-gnu": "4.42.0",
|
|
127
|
+
"@rollup/rollup-darwin-x64": "4.42.0",
|
|
128
|
+
"@rollup/rollup-win32-x64-msvc": "4.42.0",
|
|
129
|
+
"@rollup/rollup-freebsd-x64": "4.42.0",
|
|
130
|
+
"@rollup/rollup-linux-x64-gnu": "4.42.0",
|
|
131
|
+
"@rollup/rollup-linux-x64-musl": "4.42.0"
|
|
132
132
|
},
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"@types/estree": "1.0.7"
|