@rollup/wasm-node 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 -0
- 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/dist/wasm-node/bindings_wasm.js +15 -15
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +12 -13
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
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
|
@@ -132,7 +132,7 @@ module.exports.parse = function(code, allow_return_outside_function) {
|
|
|
132
132
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
133
133
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
134
134
|
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
135
|
-
wasm.__wbindgen_free(r0, r1 * 1);
|
|
135
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
136
136
|
return v2;
|
|
137
137
|
} finally {
|
|
138
138
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -231,12 +231,12 @@ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return hand
|
|
|
231
231
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
232
232
|
}, arguments) };
|
|
233
233
|
|
|
234
|
-
module.exports.
|
|
234
|
+
module.exports.__wbg_newnoargs_ccdcae30fd002262 = function(arg0, arg1) {
|
|
235
235
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
236
236
|
return addHeapObject(ret);
|
|
237
237
|
};
|
|
238
238
|
|
|
239
|
-
module.exports.
|
|
239
|
+
module.exports.__wbg_call_669127b9d730c650 = function() { return handleError(function (arg0, arg1) {
|
|
240
240
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
241
241
|
return addHeapObject(ret);
|
|
242
242
|
}, arguments) };
|
|
@@ -246,22 +246,22 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
246
246
|
return addHeapObject(ret);
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
-
module.exports.
|
|
249
|
+
module.exports.__wbg_self_3fad056edded10bd = function() { return handleError(function () {
|
|
250
250
|
const ret = self.self;
|
|
251
251
|
return addHeapObject(ret);
|
|
252
252
|
}, arguments) };
|
|
253
253
|
|
|
254
|
-
module.exports.
|
|
254
|
+
module.exports.__wbg_window_a4f46c98a61d4089 = function() { return handleError(function () {
|
|
255
255
|
const ret = window.window;
|
|
256
256
|
return addHeapObject(ret);
|
|
257
257
|
}, arguments) };
|
|
258
258
|
|
|
259
|
-
module.exports.
|
|
259
|
+
module.exports.__wbg_globalThis_17eff828815f7d84 = function() { return handleError(function () {
|
|
260
260
|
const ret = globalThis.globalThis;
|
|
261
261
|
return addHeapObject(ret);
|
|
262
262
|
}, arguments) };
|
|
263
263
|
|
|
264
|
-
module.exports.
|
|
264
|
+
module.exports.__wbg_global_46f939f6541643c5 = function() { return handleError(function () {
|
|
265
265
|
const ret = global.global;
|
|
266
266
|
return addHeapObject(ret);
|
|
267
267
|
}, arguments) };
|
|
@@ -271,41 +271,41 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
271
271
|
return ret;
|
|
272
272
|
};
|
|
273
273
|
|
|
274
|
-
module.exports.
|
|
274
|
+
module.exports.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
275
275
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
276
276
|
return addHeapObject(ret);
|
|
277
277
|
}, arguments) };
|
|
278
278
|
|
|
279
|
-
module.exports.
|
|
279
|
+
module.exports.__wbg_buffer_344d9b41efe96da7 = function(arg0) {
|
|
280
280
|
const ret = getObject(arg0).buffer;
|
|
281
281
|
return addHeapObject(ret);
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
module.exports.
|
|
284
|
+
module.exports.__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3 = function(arg0, arg1, arg2) {
|
|
285
285
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
286
286
|
return addHeapObject(ret);
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
-
module.exports.
|
|
289
|
+
module.exports.__wbg_new_d8a000788389a31e = function(arg0) {
|
|
290
290
|
const ret = new Uint8Array(getObject(arg0));
|
|
291
291
|
return addHeapObject(ret);
|
|
292
292
|
};
|
|
293
293
|
|
|
294
|
-
module.exports.
|
|
294
|
+
module.exports.__wbg_set_dcfd613a3420f908 = function(arg0, arg1, arg2) {
|
|
295
295
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
module.exports.
|
|
298
|
+
module.exports.__wbg_length_a5587d6cd79ab197 = function(arg0) {
|
|
299
299
|
const ret = getObject(arg0).length;
|
|
300
300
|
return ret;
|
|
301
301
|
};
|
|
302
302
|
|
|
303
|
-
module.exports.
|
|
303
|
+
module.exports.__wbg_newwithlength_13b5319ab422dcf6 = function(arg0) {
|
|
304
304
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
305
305
|
return addHeapObject(ret);
|
|
306
306
|
};
|
|
307
307
|
|
|
308
|
-
module.exports.
|
|
308
|
+
module.exports.__wbg_subarray_6ca5cfa7fbb9abbe = function(arg0, arg1, arg2) {
|
|
309
309
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
310
310
|
return addHeapObject(ret);
|
|
311
311
|
};
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
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,33 +36,33 @@
|
|
|
36
36
|
"@codemirror/state": "^6.3.1",
|
|
37
37
|
"@codemirror/view": "^6.21.4",
|
|
38
38
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
39
|
-
"@mermaid-js/mermaid-cli": "^10.
|
|
39
|
+
"@mermaid-js/mermaid-cli": "^10.6.0",
|
|
40
40
|
"@napi-rs/cli": "^2.16.3",
|
|
41
41
|
"@rollup/plugin-alias": "^5.0.1",
|
|
42
42
|
"@rollup/plugin-buble": "^1.0.3",
|
|
43
43
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
44
44
|
"@rollup/plugin-json": "^6.0.1",
|
|
45
45
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
46
|
-
"@rollup/plugin-replace": "^5.0.
|
|
46
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
47
47
|
"@rollup/plugin-terser": "^0.4.4",
|
|
48
48
|
"@rollup/plugin-typescript": "11.1.5",
|
|
49
49
|
"@rollup/pluginutils": "^5.0.5",
|
|
50
|
-
"@types/estree": "1.0.
|
|
50
|
+
"@types/estree": "1.0.4",
|
|
51
51
|
"@types/mocha": "^10.0.3",
|
|
52
52
|
"@types/node": "18.0.0",
|
|
53
53
|
"@types/yargs-parser": "^21.0.2",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^6.9.
|
|
55
|
-
"@typescript-eslint/parser": "^6.9.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
55
|
+
"@typescript-eslint/parser": "^6.9.1",
|
|
56
56
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
57
57
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
58
|
-
"acorn": "^8.
|
|
58
|
+
"acorn": "^8.11.2",
|
|
59
59
|
"acorn-import-assertions": "^1.9.0",
|
|
60
60
|
"buble": "^0.20.0",
|
|
61
61
|
"builtin-modules": "^3.3.0",
|
|
62
62
|
"chokidar": "^3.5.3",
|
|
63
63
|
"colorette": "^2.0.20",
|
|
64
64
|
"concurrently": "^8.2.2",
|
|
65
|
-
"core-js": "^3.33.
|
|
65
|
+
"core-js": "^3.33.2",
|
|
66
66
|
"date-time": "^4.0.0",
|
|
67
67
|
"es5-shim": "^4.6.7",
|
|
68
68
|
"es6-shim": "^0.35.8",
|
|
@@ -70,13 +70,12 @@
|
|
|
70
70
|
"eslint-config-prettier": "^9.0.0",
|
|
71
71
|
"eslint-plugin-import": "^2.29.0",
|
|
72
72
|
"eslint-plugin-prettier": "^5.0.1",
|
|
73
|
-
"eslint-plugin-unicorn": "^
|
|
74
|
-
"eslint-plugin-vue": "^9.18.
|
|
73
|
+
"eslint-plugin-unicorn": "^49.0.0",
|
|
74
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
75
75
|
"fixturify": "^3.0.0",
|
|
76
76
|
"flru": "^1.0.2",
|
|
77
77
|
"fs-extra": "^11.1.1",
|
|
78
78
|
"github-api": "^3.4.0",
|
|
79
|
-
"hash.js": "^1.1.7",
|
|
80
79
|
"husky": "^8.0.3",
|
|
81
80
|
"inquirer": "^9.2.11",
|
|
82
81
|
"is-reference": "^3.0.2",
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
"pretty-bytes": "^6.1.1",
|
|
91
90
|
"pretty-ms": "^8.0.0",
|
|
92
91
|
"requirejs": "^2.3.6",
|
|
93
|
-
"rollup": "^4.1.
|
|
92
|
+
"rollup": "^4.1.5",
|
|
94
93
|
"rollup-plugin-license": "^3.2.0",
|
|
95
94
|
"rollup-plugin-string": "^3.0.0",
|
|
96
95
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
@@ -100,7 +99,7 @@
|
|
|
100
99
|
"source-map": "^0.7.4",
|
|
101
100
|
"source-map-support": "^0.5.21",
|
|
102
101
|
"systemjs": "^6.14.2",
|
|
103
|
-
"terser": "^5.
|
|
102
|
+
"terser": "^5.23.0",
|
|
104
103
|
"tslib": "^2.6.2",
|
|
105
104
|
"typescript": "^5.2.2",
|
|
106
105
|
"vite": "^4.5.0",
|