rollup 4.1.6 → 4.3.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 +8 -4
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +16 -8
- package/dist/es/shared/parseAst.js +14 -6
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/native.js +2 -1
- package/dist/parseAst.d.ts +2 -1
- package/dist/parseAst.js +3 -2
- package/dist/rollup.d.ts +10 -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 +3 -4
- package/dist/shared/parseAst.js +13 -4
- package/dist/shared/rollup.js +15 -7
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch-proxy.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +24 -25
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.3.0
|
|
5
|
+
Fri, 03 Nov 2023 20:12:22 GMT - commit 937d9911376574c42f893e1cd14b55418c4f7b68
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
@@ -28,7 +28,7 @@ require('../native.js');
|
|
|
28
28
|
require('node:url');
|
|
29
29
|
require('../getLogFilter.js');
|
|
30
30
|
|
|
31
|
-
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--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--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-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--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";
|
|
31
|
+
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--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--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-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--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";
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
@@ -1705,7 +1705,11 @@ else {
|
|
|
1705
1705
|
catch {
|
|
1706
1706
|
// do nothing
|
|
1707
1707
|
}
|
|
1708
|
-
runRollup(command);
|
|
1708
|
+
const promise = runRollup(command);
|
|
1709
|
+
if (command.forceExit) {
|
|
1710
|
+
// eslint-disable-next-line unicorn/no-process-exit
|
|
1711
|
+
promise.then(() => process$1.exit());
|
|
1712
|
+
}
|
|
1709
1713
|
}
|
|
1710
1714
|
|
|
1711
1715
|
exports.getConfigPath = getConfigPath;
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.3.0
|
|
4
|
+
Fri, 03 Nov 2023 20:12:22 GMT - commit 937d9911376574c42f893e1cd14b55418c4f7b68
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
9
|
*/
|
|
10
10
|
import '../native.js';
|
|
11
|
-
export { parseAst } from './shared/parseAst.js';
|
|
11
|
+
export { parseAst, parseAstAsync } from './shared/parseAst.js';
|
|
12
12
|
import 'node:path';
|
package/dist/es/rollup.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.3.0
|
|
4
|
+
Fri, 03 Nov 2023 20:12:22 GMT - commit 937d9911376574c42f893e1cd14b55418c4f7b68
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
9
|
*/
|
|
10
|
-
import { normalize, getImportPath, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, logInvalidAnnotation, logModuleLevelDirective, logIllegalImportReassignment, logMissingExport, logCannotCallNamespace, logEval, LOGLEVEL_INFO, logFirstSideEffect, locate, logThisIsUndefined, logImportAttributeIsInvalid, logImportOptionsAreInvalid, error, logSyntheticNamedExportsNeedNamespaceExport, logInvalidFormatForTopLevelAwait, logInvalidSourcemapForError, augmentCodeLocation, logInconsistentImportAttributes, logNamespaceConflict, logAmbiguousExternalNamespaces, logShimmedExport, parseAst, logModuleParseError, logCircularReexport, logMissingNodeBuiltins, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logAddonNotGenerated, logIncompatibleExportOptionValue, logMixedExport, logFailedValidation, isPathFragment, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, isAbsolute as isAbsolute$1, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logChunkInvalid, logInvalidOption, URL_OUTPUT_FORMAT, URL_OUTPUT_DIR, URL_OUTPUT_SOURCEMAPFILE, URL_OUTPUT_AMD_ID, logCannotAssignModuleToChunk, logAnonymousPluginCache, logDuplicatePluginName, LOGLEVEL_ERROR, logLevelPriority, relativeId, LOGLEVEL_DEBUG, logUnknownOption, printQuotedStringList, logInvalidSetAssetSourceCall, logPluginError, logNoTransformMapOrAstWithoutCode, logBadLoader, logExternalModulesCannotBeTransformedToModules, logInternalIdCannotBeExternal, isRelative, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logExternalSyntheticExports, logUnresolvedEntry, logUnresolvedImplicitDependant, logExternalModulesCannotBeIncludedInManualChunks, logEntryCannotBeExternal, logImplicitDependantCannotBeExternal, logNoAssetSourceSet, logFileReferenceIdNotFoundForFilename, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logInvalidRollupPhaseForChunkEmission, logFileNameConflict, logAssetNotFinalisedForFileName, logChunkNotGeneratedForFileName, logInvalidLogPosition, logInvalidRollupPhaseForAddWatchFile, logInputHookInOutputPlugin, logInvalidFunctionPluginHook, logInvalidAddonPluginHook, logImplicitDependantIsNotIncluded, logCircularDependency, URL_TREESHAKE_MODULESIDEEFFECTS, URL_TREESHAKE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_PRESERVEENTRYSIGNATURES, URL_OUTPUT_AMD_BASEPATH, logInvalidExportOptionValue, warnDeprecation, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, isValidUrl, addTrailingSlashIfMissed, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, logAlreadyClosed, logMissingFileOrDirOption, logCannotEmitFromOptionsHook, URL_WATCH } from './parseAst.js';
|
|
10
|
+
import { normalize, getImportPath, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, logInvalidAnnotation, logModuleLevelDirective, logIllegalImportReassignment, logMissingExport, logCannotCallNamespace, logEval, LOGLEVEL_INFO, logFirstSideEffect, locate, logThisIsUndefined, logImportAttributeIsInvalid, logImportOptionsAreInvalid, error, logSyntheticNamedExportsNeedNamespaceExport, logInvalidFormatForTopLevelAwait, logInvalidSourcemapForError, augmentCodeLocation, logInconsistentImportAttributes, logNamespaceConflict, logAmbiguousExternalNamespaces, logShimmedExport, parseAst, logModuleParseError, parseAstAsync, logCircularReexport, logMissingNodeBuiltins, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logAddonNotGenerated, logIncompatibleExportOptionValue, logMixedExport, logFailedValidation, isPathFragment, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, isAbsolute as isAbsolute$1, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logChunkInvalid, logInvalidOption, URL_OUTPUT_FORMAT, URL_OUTPUT_DIR, URL_OUTPUT_SOURCEMAPFILE, URL_OUTPUT_AMD_ID, logCannotAssignModuleToChunk, logAnonymousPluginCache, logDuplicatePluginName, LOGLEVEL_ERROR, logLevelPriority, relativeId, LOGLEVEL_DEBUG, logUnknownOption, printQuotedStringList, logInvalidSetAssetSourceCall, logPluginError, logNoTransformMapOrAstWithoutCode, logBadLoader, logExternalModulesCannotBeTransformedToModules, logInternalIdCannotBeExternal, isRelative, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logExternalSyntheticExports, logUnresolvedEntry, logUnresolvedImplicitDependant, logExternalModulesCannotBeIncludedInManualChunks, logEntryCannotBeExternal, logImplicitDependantCannotBeExternal, logNoAssetSourceSet, logFileReferenceIdNotFoundForFilename, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logInvalidRollupPhaseForChunkEmission, logFileNameConflict, logAssetNotFinalisedForFileName, logChunkNotGeneratedForFileName, logInvalidLogPosition, logInvalidRollupPhaseForAddWatchFile, logInputHookInOutputPlugin, logInvalidFunctionPluginHook, logInvalidAddonPluginHook, logImplicitDependantIsNotIncluded, logCircularDependency, URL_TREESHAKE_MODULESIDEEFFECTS, URL_TREESHAKE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_PRESERVEENTRYSIGNATURES, URL_OUTPUT_AMD_BASEPATH, logInvalidExportOptionValue, warnDeprecation, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, isValidUrl, addTrailingSlashIfMissed, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, logAlreadyClosed, logMissingFileOrDirOption, logCannotEmitFromOptionsHook, URL_WATCH } from './parseAst.js';
|
|
11
11
|
import { relative, dirname, basename, extname, resolve as resolve$1 } from 'node:path';
|
|
12
12
|
import require$$0$1, { win32, posix, isAbsolute, resolve } from 'path';
|
|
13
13
|
import process$1, { env as env$1 } from 'node:process';
|
|
@@ -16,7 +16,7 @@ import { xxhashBase64Url } from '../../native.js';
|
|
|
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.3.0";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -12925,7 +12925,7 @@ class Module {
|
|
|
12925
12925
|
}
|
|
12926
12926
|
return { source, usesTopLevelAwait };
|
|
12927
12927
|
}
|
|
12928
|
-
setSource({ ast, code, customTransformCache, originalCode, originalSourcemap, resolvedIds, sourcemapChain, transformDependencies, transformFiles, ...moduleOptions }) {
|
|
12928
|
+
async setSource({ ast, code, customTransformCache, originalCode, originalSourcemap, resolvedIds, sourcemapChain, transformDependencies, transformFiles, ...moduleOptions }) {
|
|
12929
12929
|
if (code.startsWith('#!')) {
|
|
12930
12930
|
const shebangEndPosition = code.indexOf('\n');
|
|
12931
12931
|
this.shebang = code.slice(2, shebangEndPosition);
|
|
@@ -12950,7 +12950,7 @@ class Module {
|
|
|
12950
12950
|
this.transformDependencies = transformDependencies;
|
|
12951
12951
|
this.customTransformCache = customTransformCache;
|
|
12952
12952
|
this.updateOptions(moduleOptions);
|
|
12953
|
-
const moduleAst = ast ?? this.
|
|
12953
|
+
const moduleAst = ast ?? (await this.tryParseAsync());
|
|
12954
12954
|
timeEnd('generate ast', 3);
|
|
12955
12955
|
timeStart('analyze ast', 3);
|
|
12956
12956
|
this.resolvedIds = resolvedIds ?? Object.create(null);
|
|
@@ -13352,6 +13352,14 @@ class Module {
|
|
|
13352
13352
|
return this.error(logModuleParseError(error_, this.id), error_.pos);
|
|
13353
13353
|
}
|
|
13354
13354
|
}
|
|
13355
|
+
async tryParseAsync() {
|
|
13356
|
+
try {
|
|
13357
|
+
return (await parseAstAsync(this.info.code));
|
|
13358
|
+
}
|
|
13359
|
+
catch (error_) {
|
|
13360
|
+
return this.error(logModuleParseError(error_, this.id), error_.pos);
|
|
13361
|
+
}
|
|
13362
|
+
}
|
|
13355
13363
|
}
|
|
13356
13364
|
// if there is a cyclic import in the reexport chain, we should not
|
|
13357
13365
|
// import from the original module but from the cyclic module to not
|
|
@@ -17565,11 +17573,11 @@ class ModuleLoader {
|
|
|
17565
17573
|
for (const emittedFile of cachedModule.transformFiles)
|
|
17566
17574
|
this.pluginDriver.emitFile(emittedFile);
|
|
17567
17575
|
}
|
|
17568
|
-
module.setSource(cachedModule);
|
|
17576
|
+
await module.setSource(cachedModule);
|
|
17569
17577
|
}
|
|
17570
17578
|
else {
|
|
17571
17579
|
module.updateOptions(sourceDescription);
|
|
17572
|
-
module.setSource(await transform(sourceDescription, module, this.pluginDriver, this.options.onLog));
|
|
17580
|
+
await module.setSource(await transform(sourceDescription, module, this.pluginDriver, this.options.onLog));
|
|
17573
17581
|
}
|
|
17574
17582
|
}
|
|
17575
17583
|
async awaitLoadModulesPromise() {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.3.0
|
|
4
|
+
Fri, 03 Nov 2023 20:12:22 GMT - commit 937d9911376574c42f893e1cd14b55418c4f7b68
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
9
|
*/
|
|
10
|
-
import { parse } from '../../native.js';
|
|
10
|
+
import { parse, parseAsync } from '../../native.js';
|
|
11
11
|
import { resolve, basename, extname, dirname } from 'node:path';
|
|
12
12
|
|
|
13
13
|
const FIXED_STRINGS = [
|
|
@@ -777,7 +777,8 @@ function logModuleParseError(error, moduleId) {
|
|
|
777
777
|
cause: error,
|
|
778
778
|
code: PARSE_ERROR,
|
|
779
779
|
id: moduleId,
|
|
780
|
-
message
|
|
780
|
+
message,
|
|
781
|
+
stack: error.stack
|
|
781
782
|
};
|
|
782
783
|
}
|
|
783
784
|
function logPluginError(error, plugin, { hook, id } = {}) {
|
|
@@ -2128,7 +2129,14 @@ function getReadStringFunction(astBuffer) {
|
|
|
2128
2129
|
const parseAst = (input, { allowReturnOutsideFunction = false } = {}) => {
|
|
2129
2130
|
const astBuffer = parse(input, allowReturnOutsideFunction);
|
|
2130
2131
|
const readString = getReadStringFunction(astBuffer);
|
|
2131
|
-
|
|
2132
|
+
const result = convertProgram(astBuffer.buffer, readString);
|
|
2133
|
+
return result;
|
|
2134
|
+
};
|
|
2135
|
+
const parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal } = {}) => {
|
|
2136
|
+
const astBuffer = await parseAsync(input, allowReturnOutsideFunction, signal);
|
|
2137
|
+
const readString = getReadStringFunction(astBuffer);
|
|
2138
|
+
const result = convertProgram(astBuffer.buffer, readString);
|
|
2139
|
+
return result;
|
|
2132
2140
|
};
|
|
2133
2141
|
|
|
2134
|
-
export { ANNOTATION_KEY, INVALID_ANNOTATION_KEY, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, addTrailingSlashIfMissed, augmentCodeLocation, error, getAliasName, getImportPath, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logCyclicCrossChunkReexport, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileReferenceIdNotFoundForFilename, logFirstSideEffect, logIllegalIdentifierAsName, logIllegalImportReassignment, logImplicitDependantCannotBeExternal, logImplicitDependantIsNotIncluded, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logIncompatibleExportOptionValue, logInconsistentImportAttributes, logInputHookInOutputPlugin, logInternalIdCannotBeExternal, logInvalidAddonPluginHook, logInvalidAnnotation, logInvalidExportOptionValue, logInvalidFormatForTopLevelAwait, logInvalidFunctionPluginHook, logInvalidLogPosition, logInvalidOption, logInvalidRollupPhaseForAddWatchFile, logInvalidRollupPhaseForChunkEmission, logInvalidSetAssetSourceCall, logInvalidSourcemapForError, logLevelPriority, logMissingExport, logMissingFileOrDirOption, logMissingGlobalName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logOptimizeChunkStatus, logPluginError, logShimmedExport, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, printQuotedStringList, relative, relativeId, warnDeprecation };
|
|
2142
|
+
export { ANNOTATION_KEY, INVALID_ANNOTATION_KEY, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, addTrailingSlashIfMissed, augmentCodeLocation, error, getAliasName, getImportPath, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logCyclicCrossChunkReexport, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileReferenceIdNotFoundForFilename, logFirstSideEffect, logIllegalIdentifierAsName, logIllegalImportReassignment, logImplicitDependantCannotBeExternal, logImplicitDependantIsNotIncluded, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logIncompatibleExportOptionValue, logInconsistentImportAttributes, logInputHookInOutputPlugin, logInternalIdCannotBeExternal, logInvalidAddonPluginHook, logInvalidAnnotation, logInvalidExportOptionValue, logInvalidFormatForTopLevelAwait, logInvalidFunctionPluginHook, logInvalidLogPosition, logInvalidOption, logInvalidRollupPhaseForAddWatchFile, logInvalidRollupPhaseForChunkEmission, logInvalidSetAssetSourceCall, logInvalidSourcemapForError, logLevelPriority, logMissingExport, logMissingFileOrDirOption, logMissingGlobalName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logOptimizeChunkStatus, logPluginError, logShimmedExport, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/native.js
CHANGED
|
@@ -46,9 +46,10 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
46
46
|
|
|
47
47
|
const packageBase = imported.musl && isMusl() ? imported.musl : imported.base;
|
|
48
48
|
const localName = `./rollup.${packageBase}.node`;
|
|
49
|
-
const { parse, xxhashBase64Url } = require(
|
|
49
|
+
const { parse, parseAsync, xxhashBase64Url } = require(
|
|
50
50
|
existsSync(join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
|
51
51
|
);
|
|
52
52
|
|
|
53
53
|
module.exports.parse = parse;
|
|
54
|
+
module.exports.parseAsync = parseAsync;
|
|
54
55
|
module.exports.xxhashBase64Url = xxhashBase64Url;
|
package/dist/parseAst.d.ts
CHANGED
package/dist/parseAst.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.3.0
|
|
4
|
+
Fri, 03 Nov 2023 20:12:22 GMT - commit 937d9911376574c42f893e1cd14b55418c4f7b68
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -18,4 +18,5 @@ require('node:path');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
exports.parseAst = parseAst_js.parseAst;
|
|
21
|
+
exports.parseAstAsync = parseAst_js.parseAstAsync;
|
|
21
22
|
//# sourceMappingURL=parseAst.js.map
|
package/dist/rollup.d.ts
CHANGED
|
@@ -206,6 +206,16 @@ export type ParseAst = (
|
|
|
206
206
|
options?: { allowReturnOutsideFunction?: boolean }
|
|
207
207
|
) => AstNode;
|
|
208
208
|
|
|
209
|
+
// declare AbortSignal here for environments without DOM lib or @types/node
|
|
210
|
+
declare global {
|
|
211
|
+
interface AbortSignal {}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export type ParseAstAsync = (
|
|
215
|
+
input: string,
|
|
216
|
+
options?: { allowReturnOutsideFunction?: boolean; signal?: AbortSignal }
|
|
217
|
+
) => Promise<AstNode>;
|
|
218
|
+
|
|
209
219
|
export interface PluginContext extends MinimalPluginContext {
|
|
210
220
|
addWatchFile: (id: string) => void;
|
|
211
221
|
cache: PluginCache;
|
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.3.0
|
|
4
|
+
Fri, 03 Nov 2023 20:12:22 GMT - commit 937d9911376574c42f893e1cd14b55418c4f7b68
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -526,8 +526,7 @@ async function loadConfigFromWrittenFile(bundledFileName, bundledCode) {
|
|
|
526
526
|
return (await import(node_url.pathToFileURL(bundledFileName).href)).default;
|
|
527
527
|
}
|
|
528
528
|
finally {
|
|
529
|
-
|
|
530
|
-
promises.unlink(bundledFileName);
|
|
529
|
+
promises.unlink(bundledFileName).catch(error => console.warn(error?.message || error));
|
|
531
530
|
}
|
|
532
531
|
}
|
|
533
532
|
async function getConfigList(configFileExport, commandOptions) {
|
package/dist/shared/parseAst.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.3.0
|
|
4
|
+
Fri, 03 Nov 2023 20:12:22 GMT - commit 937d9911376574c42f893e1cd14b55418c4f7b68
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -777,7 +777,8 @@ function logModuleParseError(error, moduleId) {
|
|
|
777
777
|
cause: error,
|
|
778
778
|
code: PARSE_ERROR,
|
|
779
779
|
id: moduleId,
|
|
780
|
-
message
|
|
780
|
+
message,
|
|
781
|
+
stack: error.stack
|
|
781
782
|
};
|
|
782
783
|
}
|
|
783
784
|
function logPluginError(error, plugin, { hook, id } = {}) {
|
|
@@ -2191,7 +2192,14 @@ function getReadStringFunction(astBuffer) {
|
|
|
2191
2192
|
const parseAst = (input, { allowReturnOutsideFunction = false } = {}) => {
|
|
2192
2193
|
const astBuffer = native_js.parse(input, allowReturnOutsideFunction);
|
|
2193
2194
|
const readString = getReadStringFunction(astBuffer);
|
|
2194
|
-
|
|
2195
|
+
const result = convertProgram(astBuffer.buffer, readString);
|
|
2196
|
+
return result;
|
|
2197
|
+
};
|
|
2198
|
+
const parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal } = {}) => {
|
|
2199
|
+
const astBuffer = await native_js.parseAsync(input, allowReturnOutsideFunction, signal);
|
|
2200
|
+
const readString = getReadStringFunction(astBuffer);
|
|
2201
|
+
const result = convertProgram(astBuffer.buffer, readString);
|
|
2202
|
+
return result;
|
|
2195
2203
|
};
|
|
2196
2204
|
|
|
2197
2205
|
exports.ANNOTATION_KEY = ANNOTATION_KEY;
|
|
@@ -2319,6 +2327,7 @@ exports.logUnresolvedImportTreatedAsExternal = logUnresolvedImportTreatedAsExter
|
|
|
2319
2327
|
exports.logUnusedExternalImports = logUnusedExternalImports;
|
|
2320
2328
|
exports.normalize = normalize;
|
|
2321
2329
|
exports.parseAst = parseAst;
|
|
2330
|
+
exports.parseAstAsync = parseAstAsync;
|
|
2322
2331
|
exports.printQuotedStringList = printQuotedStringList;
|
|
2323
2332
|
exports.relative = relative;
|
|
2324
2333
|
exports.relativeId = relativeId;
|
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.3.0
|
|
4
|
+
Fri, 03 Nov 2023 20:12:22 GMT - commit 937d9911376574c42f893e1cd14b55418c4f7b68
|
|
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.3.0";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -14352,7 +14352,7 @@ class Module {
|
|
|
14352
14352
|
}
|
|
14353
14353
|
return { source, usesTopLevelAwait };
|
|
14354
14354
|
}
|
|
14355
|
-
setSource({ ast, code, customTransformCache, originalCode, originalSourcemap, resolvedIds, sourcemapChain, transformDependencies, transformFiles, ...moduleOptions }) {
|
|
14355
|
+
async setSource({ ast, code, customTransformCache, originalCode, originalSourcemap, resolvedIds, sourcemapChain, transformDependencies, transformFiles, ...moduleOptions }) {
|
|
14356
14356
|
if (code.startsWith('#!')) {
|
|
14357
14357
|
const shebangEndPosition = code.indexOf('\n');
|
|
14358
14358
|
this.shebang = code.slice(2, shebangEndPosition);
|
|
@@ -14377,7 +14377,7 @@ class Module {
|
|
|
14377
14377
|
this.transformDependencies = transformDependencies;
|
|
14378
14378
|
this.customTransformCache = customTransformCache;
|
|
14379
14379
|
this.updateOptions(moduleOptions);
|
|
14380
|
-
const moduleAst = ast ?? this.
|
|
14380
|
+
const moduleAst = ast ?? (await this.tryParseAsync());
|
|
14381
14381
|
timeEnd('generate ast', 3);
|
|
14382
14382
|
timeStart('analyze ast', 3);
|
|
14383
14383
|
this.resolvedIds = resolvedIds ?? Object.create(null);
|
|
@@ -14779,6 +14779,14 @@ class Module {
|
|
|
14779
14779
|
return this.error(parseAst_js.logModuleParseError(error_, this.id), error_.pos);
|
|
14780
14780
|
}
|
|
14781
14781
|
}
|
|
14782
|
+
async tryParseAsync() {
|
|
14783
|
+
try {
|
|
14784
|
+
return (await parseAst_js.parseAstAsync(this.info.code));
|
|
14785
|
+
}
|
|
14786
|
+
catch (error_) {
|
|
14787
|
+
return this.error(parseAst_js.logModuleParseError(error_, this.id), error_.pos);
|
|
14788
|
+
}
|
|
14789
|
+
}
|
|
14782
14790
|
}
|
|
14783
14791
|
// if there is a cyclic import in the reexport chain, we should not
|
|
14784
14792
|
// import from the original module but from the cyclic module to not
|
|
@@ -18639,11 +18647,11 @@ class ModuleLoader {
|
|
|
18639
18647
|
for (const emittedFile of cachedModule.transformFiles)
|
|
18640
18648
|
this.pluginDriver.emitFile(emittedFile);
|
|
18641
18649
|
}
|
|
18642
|
-
module.setSource(cachedModule);
|
|
18650
|
+
await module.setSource(cachedModule);
|
|
18643
18651
|
}
|
|
18644
18652
|
else {
|
|
18645
18653
|
module.updateOptions(sourceDescription);
|
|
18646
|
-
module.setSource(await transform(sourceDescription, module, this.pluginDriver, this.options.onLog));
|
|
18654
|
+
await module.setSource(await transform(sourceDescription, module, this.pluginDriver, this.options.onLog));
|
|
18647
18655
|
}
|
|
18648
18656
|
}
|
|
18649
18657
|
async awaitLoadModulesPromise() {
|
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.3.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -100,18 +100,18 @@
|
|
|
100
100
|
"homepage": "https://rollupjs.org/",
|
|
101
101
|
"optionalDependencies": {
|
|
102
102
|
"fsevents": "~2.3.2",
|
|
103
|
-
"@rollup/rollup-darwin-arm64": "4.
|
|
104
|
-
"@rollup/rollup-android-arm64": "4.
|
|
105
|
-
"@rollup/rollup-win32-arm64-msvc": "4.
|
|
106
|
-
"@rollup/rollup-linux-arm64-gnu": "4.
|
|
107
|
-
"@rollup/rollup-linux-arm64-musl": "4.
|
|
108
|
-
"@rollup/rollup-android-arm-eabi": "4.
|
|
109
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.
|
|
110
|
-
"@rollup/rollup-win32-ia32-msvc": "4.
|
|
111
|
-
"@rollup/rollup-darwin-x64": "4.
|
|
112
|
-
"@rollup/rollup-win32-x64-msvc": "4.
|
|
113
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
114
|
-
"@rollup/rollup-linux-x64-musl": "4.
|
|
103
|
+
"@rollup/rollup-darwin-arm64": "4.3.0",
|
|
104
|
+
"@rollup/rollup-android-arm64": "4.3.0",
|
|
105
|
+
"@rollup/rollup-win32-arm64-msvc": "4.3.0",
|
|
106
|
+
"@rollup/rollup-linux-arm64-gnu": "4.3.0",
|
|
107
|
+
"@rollup/rollup-linux-arm64-musl": "4.3.0",
|
|
108
|
+
"@rollup/rollup-android-arm-eabi": "4.3.0",
|
|
109
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.3.0",
|
|
110
|
+
"@rollup/rollup-win32-ia32-msvc": "4.3.0",
|
|
111
|
+
"@rollup/rollup-darwin-x64": "4.3.0",
|
|
112
|
+
"@rollup/rollup-win32-x64-msvc": "4.3.0",
|
|
113
|
+
"@rollup/rollup-linux-x64-gnu": "4.3.0",
|
|
114
|
+
"@rollup/rollup-linux-x64-musl": "4.3.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependenciesComments": {
|
|
117
117
|
"@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
|
|
@@ -124,33 +124,33 @@
|
|
|
124
124
|
"@codemirror/state": "^6.3.1",
|
|
125
125
|
"@codemirror/view": "^6.21.4",
|
|
126
126
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
127
|
-
"@mermaid-js/mermaid-cli": "^10.
|
|
127
|
+
"@mermaid-js/mermaid-cli": "^10.6.0",
|
|
128
128
|
"@napi-rs/cli": "^2.16.3",
|
|
129
129
|
"@rollup/plugin-alias": "^5.0.1",
|
|
130
130
|
"@rollup/plugin-buble": "^1.0.3",
|
|
131
131
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
132
132
|
"@rollup/plugin-json": "^6.0.1",
|
|
133
133
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
134
|
-
"@rollup/plugin-replace": "^5.0.
|
|
134
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
135
135
|
"@rollup/plugin-terser": "^0.4.4",
|
|
136
136
|
"@rollup/plugin-typescript": "11.1.5",
|
|
137
137
|
"@rollup/pluginutils": "^5.0.5",
|
|
138
|
-
"@types/estree": "1.0.
|
|
138
|
+
"@types/estree": "1.0.4",
|
|
139
139
|
"@types/mocha": "^10.0.3",
|
|
140
140
|
"@types/node": "18.0.0",
|
|
141
141
|
"@types/yargs-parser": "^21.0.2",
|
|
142
|
-
"@typescript-eslint/eslint-plugin": "^6.9.
|
|
143
|
-
"@typescript-eslint/parser": "^6.9.
|
|
142
|
+
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
143
|
+
"@typescript-eslint/parser": "^6.9.1",
|
|
144
144
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
145
145
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
146
|
-
"acorn": "^8.
|
|
146
|
+
"acorn": "^8.11.2",
|
|
147
147
|
"acorn-import-assertions": "^1.9.0",
|
|
148
148
|
"buble": "^0.20.0",
|
|
149
149
|
"builtin-modules": "^3.3.0",
|
|
150
150
|
"chokidar": "^3.5.3",
|
|
151
151
|
"colorette": "^2.0.20",
|
|
152
152
|
"concurrently": "^8.2.2",
|
|
153
|
-
"core-js": "^3.33.
|
|
153
|
+
"core-js": "^3.33.2",
|
|
154
154
|
"date-time": "^4.0.0",
|
|
155
155
|
"es5-shim": "^4.6.7",
|
|
156
156
|
"es6-shim": "^0.35.8",
|
|
@@ -158,13 +158,12 @@
|
|
|
158
158
|
"eslint-config-prettier": "^9.0.0",
|
|
159
159
|
"eslint-plugin-import": "^2.29.0",
|
|
160
160
|
"eslint-plugin-prettier": "^5.0.1",
|
|
161
|
-
"eslint-plugin-unicorn": "^
|
|
162
|
-
"eslint-plugin-vue": "^9.18.
|
|
161
|
+
"eslint-plugin-unicorn": "^49.0.0",
|
|
162
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
163
163
|
"fixturify": "^3.0.0",
|
|
164
164
|
"flru": "^1.0.2",
|
|
165
165
|
"fs-extra": "^11.1.1",
|
|
166
166
|
"github-api": "^3.4.0",
|
|
167
|
-
"hash.js": "^1.1.7",
|
|
168
167
|
"husky": "^8.0.3",
|
|
169
168
|
"inquirer": "^9.2.11",
|
|
170
169
|
"is-reference": "^3.0.2",
|
|
@@ -178,7 +177,7 @@
|
|
|
178
177
|
"pretty-bytes": "^6.1.1",
|
|
179
178
|
"pretty-ms": "^8.0.0",
|
|
180
179
|
"requirejs": "^2.3.6",
|
|
181
|
-
"rollup": "^4.1.
|
|
180
|
+
"rollup": "^4.1.5",
|
|
182
181
|
"rollup-plugin-license": "^3.2.0",
|
|
183
182
|
"rollup-plugin-string": "^3.0.0",
|
|
184
183
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
@@ -188,7 +187,7 @@
|
|
|
188
187
|
"source-map": "^0.7.4",
|
|
189
188
|
"source-map-support": "^0.5.21",
|
|
190
189
|
"systemjs": "^6.14.2",
|
|
191
|
-
"terser": "^5.
|
|
190
|
+
"terser": "^5.23.0",
|
|
192
191
|
"tslib": "^2.6.2",
|
|
193
192
|
"typescript": "^5.2.2",
|
|
194
193
|
"vite": "^4.5.0",
|