rollup 4.0.0-2 → 4.0.0-21
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/LICENSE.md +0 -36
- package/dist/bin/rollup +4 -10
- package/dist/es/getLogFilter.js +2 -3
- package/dist/es/rollup.js +3 -3
- package/dist/es/shared/node-entry.js +14654 -20963
- package/dist/es/shared/watch.js +4 -46
- package/dist/getLogFilter.js +2 -3
- package/dist/loadConfigFile.js +3 -3
- package/dist/rollup.d.ts +28 -65
- package/dist/rollup.js +3 -3
- package/dist/shared/fsevents-importer.js +2 -3
- package/dist/shared/index.js +2 -42
- package/dist/shared/loadConfigFile.js +2 -7
- package/dist/shared/rollup.js +14011 -20318
- package/dist/shared/watch-cli.js +22 -20
- package/dist/shared/watch-proxy.js +2 -4
- package/dist/shared/watch.js +3 -5
- package/package.json +62 -54
- package/dist/es/native.js +0 -257
package/LICENSE.md
CHANGED
|
@@ -52,42 +52,6 @@ Repository: rollup/plugins
|
|
|
52
52
|
|
|
53
53
|
---------------------------------------
|
|
54
54
|
|
|
55
|
-
## acorn
|
|
56
|
-
License: MIT
|
|
57
|
-
By: Marijn Haverbeke, Ingvar Stepanyan, Adrian Heine
|
|
58
|
-
Repository: https://github.com/acornjs/acorn.git
|
|
59
|
-
|
|
60
|
-
> MIT License
|
|
61
|
-
>
|
|
62
|
-
> Copyright (C) 2012-2022 by various contributors (see AUTHORS)
|
|
63
|
-
>
|
|
64
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
65
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
66
|
-
> in the Software without restriction, including without limitation the rights
|
|
67
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
68
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
69
|
-
> furnished to do so, subject to the following conditions:
|
|
70
|
-
>
|
|
71
|
-
> The above copyright notice and this permission notice shall be included in
|
|
72
|
-
> all copies or substantial portions of the Software.
|
|
73
|
-
>
|
|
74
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
75
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
76
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
77
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
78
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
79
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
80
|
-
> THE SOFTWARE.
|
|
81
|
-
|
|
82
|
-
---------------------------------------
|
|
83
|
-
|
|
84
|
-
## acorn-import-assertions
|
|
85
|
-
License: MIT
|
|
86
|
-
By: Sven Sauleau
|
|
87
|
-
Repository: https://github.com/xtuc/acorn-import-assertions
|
|
88
|
-
|
|
89
|
-
---------------------------------------
|
|
90
|
-
|
|
91
55
|
## anymatch
|
|
92
56
|
License: ISC
|
|
93
57
|
By: Elan Shanker
|
package/dist/bin/rollup
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
@license
|
|
5
|
-
Rollup.js v4.0.0-
|
|
6
|
-
|
|
5
|
+
Rollup.js v4.0.0-21
|
|
6
|
+
Sun, 24 Sep 2023 17:21:35 GMT - commit fa868ad975b9ae6007ddc64b1a9e82766de6fa9e
|
|
7
7
|
|
|
8
8
|
https://github.com/rollup/rollup
|
|
9
9
|
|
|
@@ -25,11 +25,11 @@ const loadConfigFile_js = require('../shared/loadConfigFile.js');
|
|
|
25
25
|
require('tty');
|
|
26
26
|
require('node:perf_hooks');
|
|
27
27
|
require('node:crypto');
|
|
28
|
-
require('../native');
|
|
28
|
+
require('../native.js');
|
|
29
29
|
require('node:url');
|
|
30
30
|
require('../getLogFilter.js');
|
|
31
31
|
|
|
32
|
-
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-
|
|
32
|
+
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";
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
@@ -1520,7 +1520,6 @@ function printTimings(timings) {
|
|
|
1520
1520
|
console.info(appliedColor(row));
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
|
-
//# sourceMappingURL=timings.js.map
|
|
1524
1523
|
|
|
1525
1524
|
async function build(inputOptions, warnings, silent = false) {
|
|
1526
1525
|
const outputOptions = inputOptions.output;
|
|
@@ -1567,7 +1566,6 @@ async function build(inputOptions, warnings, silent = false) {
|
|
|
1567
1566
|
}
|
|
1568
1567
|
}
|
|
1569
1568
|
}
|
|
1570
|
-
//# sourceMappingURL=build.js.map
|
|
1571
1569
|
|
|
1572
1570
|
const DEFAULT_CONFIG_BASE = 'rollup.config';
|
|
1573
1571
|
async function getConfigPath(commandConfig) {
|
|
@@ -1604,7 +1602,6 @@ async function findConfigFileNameInCwd() {
|
|
|
1604
1602
|
}
|
|
1605
1603
|
return `${DEFAULT_CONFIG_BASE}.js`;
|
|
1606
1604
|
}
|
|
1607
|
-
//# sourceMappingURL=getConfigPath.js.map
|
|
1608
1605
|
|
|
1609
1606
|
async function loadConfigFromCommand(commandOptions, watchMode) {
|
|
1610
1607
|
const warnings = loadConfigFile_js.batchWarnings(commandOptions);
|
|
@@ -1615,7 +1612,6 @@ async function loadConfigFromCommand(commandOptions, watchMode) {
|
|
|
1615
1612
|
await loadConfigFile_js.addCommandPluginsToInputOptions(options, commandOptions);
|
|
1616
1613
|
return { options: [options], warnings };
|
|
1617
1614
|
}
|
|
1618
|
-
//# sourceMappingURL=loadConfigFromCommand.js.map
|
|
1619
1615
|
|
|
1620
1616
|
async function runRollup(command) {
|
|
1621
1617
|
let inputSource;
|
|
@@ -1691,7 +1687,6 @@ async function getConfigs(command) {
|
|
|
1691
1687
|
}
|
|
1692
1688
|
return await loadConfigFromCommand(command, false);
|
|
1693
1689
|
}
|
|
1694
|
-
//# sourceMappingURL=index.js.map
|
|
1695
1690
|
|
|
1696
1691
|
const command = argParser(process$1.argv.slice(2), {
|
|
1697
1692
|
alias: rollup.commandAliases,
|
|
@@ -1713,7 +1708,6 @@ else {
|
|
|
1713
1708
|
}
|
|
1714
1709
|
runRollup(command);
|
|
1715
1710
|
}
|
|
1716
|
-
//# sourceMappingURL=cli.js.map
|
|
1717
1711
|
|
|
1718
1712
|
exports.getConfigPath = getConfigPath;
|
|
1719
1713
|
exports.loadConfigFromCommand = loadConfigFromCommand;
|
package/dist/es/getLogFilter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.0.0-
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.0.0-21
|
|
4
|
+
Sun, 24 Sep 2023 17:21:35 GMT - commit fa868ad975b9ae6007ddc64b1a9e82766de6fa9e
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -60,6 +60,5 @@ const testFilter = (log, key, parts) => {
|
|
|
60
60
|
}
|
|
61
61
|
return value.endsWith(parts[lastPartIndex]);
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=getLogFilter.js.map
|
|
64
63
|
|
|
65
64
|
export { getLogFilter };
|
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.0.0-
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.0.0-21
|
|
4
|
+
Sun, 24 Sep 2023 17:21:35 GMT - commit fa868ad975b9ae6007ddc64b1a9e82766de6fa9e
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -13,6 +13,6 @@ import 'path';
|
|
|
13
13
|
import 'node:process';
|
|
14
14
|
import 'node:perf_hooks';
|
|
15
15
|
import 'node:crypto';
|
|
16
|
-
import '../native';
|
|
16
|
+
import '../native.js';
|
|
17
17
|
import 'node:fs/promises';
|
|
18
18
|
import 'tty';
|