full site update
This commit is contained in:
27
node_modules/rollup/dist/rollup.js
generated
vendored
27
node_modules/rollup/dist/rollup.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.41.0
|
||||
Sun, 18 May 2025 05:33:01 GMT - commit 0928185cd544907dab472754634ddf988452aae6
|
||||
Rollup.js v4.45.1
|
||||
Tue, 15 Jul 2025 13:08:50 GMT - commit a9b04957eac7803e61390d4387e3e96dbe4118c4
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
@@ -81,7 +81,7 @@ function watch(configs) {
|
||||
});
|
||||
return emitter;
|
||||
}
|
||||
function withTrailingSlash(path) {
|
||||
function ensureTrailingSlash(path) {
|
||||
if (path[path.length - 1] !== '/') {
|
||||
return `${path}/`;
|
||||
}
|
||||
@@ -89,21 +89,20 @@ function withTrailingSlash(path) {
|
||||
}
|
||||
function checkWatchConfig(config) {
|
||||
for (const item of config) {
|
||||
if (typeof item.watch !== 'boolean' && item.watch?.allowInputInsideOutputPath) {
|
||||
break;
|
||||
}
|
||||
if (item.input && item.output) {
|
||||
const input = typeof item.input === 'string' ? rollup.ensureArray(item.input) : item.input;
|
||||
const output = rollup.ensureArray(item.output);
|
||||
const outputs = rollup.ensureArray(item.output);
|
||||
for (const index in input) {
|
||||
const inputPath = input[index];
|
||||
const subPath = output.find(o => {
|
||||
if (!o.dir || typeof inputPath !== 'string') {
|
||||
return false;
|
||||
}
|
||||
const _outPath = withTrailingSlash(o.dir);
|
||||
const _inputPath = withTrailingSlash(inputPath);
|
||||
return _inputPath.startsWith(_outPath);
|
||||
});
|
||||
if (subPath) {
|
||||
parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, `the input "${inputPath}" is a subpath of the output "${subPath.dir}"`));
|
||||
if (typeof inputPath !== 'string') {
|
||||
continue;
|
||||
}
|
||||
const outputWithInputAsSubPath = outputs.find(({ dir }) => dir && ensureTrailingSlash(inputPath).startsWith(ensureTrailingSlash(dir)));
|
||||
if (outputWithInputAsSubPath) {
|
||||
parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, `the input "${inputPath}" is a subpath of the output "${outputWithInputAsSubPath.dir}"`));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user