rollup 2.57.0 → 2.58.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/CHANGELOG.md +14 -0
- package/dist/bin/rollup +20 -20
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +23 -23
- package/dist/es/shared/watch.js +131 -29
- package/dist/loadConfigFile.js +3 -3
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +3 -3
- package/dist/shared/index.js +138 -36
- package/dist/shared/loadConfigFile.js +14 -14
- package/dist/shared/mergeOptions.js +3 -3
- package/dist/shared/rollup.js +32 -32
- package/dist/shared/watch-cli.js +11 -11
- package/dist/shared/watch.js +11 -11
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 2.58.0
|
|
4
|
+
|
|
5
|
+
_2021-10-01_
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Add a flag to more reliably identify entry points in the `resolveId` hook (#4230)
|
|
10
|
+
|
|
11
|
+
### Pull Requests
|
|
12
|
+
|
|
13
|
+
- [#4230](https://github.com/rollup/rollup/pull/4230): Add isEntry flag to resolveId and this.resolve (@lukastaegert)
|
|
14
|
+
- [#4233](https://github.com/rollup/rollup/pull/4233): Remove unused rollup-plugin-typescript ambient module types (@dnalborczyk)
|
|
15
|
+
- [#4235](https://github.com/rollup/rollup/pull/4235): Update dependencies (@lukastaegert)
|
|
16
|
+
|
|
3
17
|
## 2.57.0
|
|
4
18
|
|
|
5
19
|
_2021-09-22_
|
package/dist/bin/rollup
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
@license
|
|
5
|
-
Rollup.js v2.
|
|
6
|
-
|
|
5
|
+
Rollup.js v2.58.0
|
|
6
|
+
Fri, 01 Oct 2021 06:54:03 GMT - commit 3a404a07f41a10d10b7af536f05b90ea46d8ad3d
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
https://github.com/rollup/rollup
|
|
@@ -14,32 +14,32 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
const rollup = require('../shared/rollup.js');
|
|
18
|
+
const require$$2 = require('util');
|
|
19
|
+
const fs = require('fs');
|
|
20
|
+
const path$1 = require('path');
|
|
21
|
+
const mergeOptions = require('../shared/mergeOptions.js');
|
|
22
|
+
const loadConfigFile_js = require('../shared/loadConfigFile.js');
|
|
23
|
+
const require$$1 = require('module');
|
|
24
24
|
require('crypto');
|
|
25
25
|
require('events');
|
|
26
26
|
require('url');
|
|
27
27
|
require('tty');
|
|
28
28
|
|
|
29
29
|
function _interopNamespaceDefault(e) {
|
|
30
|
-
|
|
30
|
+
const n = Object.create(null);
|
|
31
31
|
if (e) {
|
|
32
|
-
for (
|
|
32
|
+
for (const k in e) {
|
|
33
33
|
n[k] = e[k];
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
n
|
|
36
|
+
n.default = e;
|
|
37
37
|
return n;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
const path__namespace = /*#__PURE__*/_interopNamespaceDefault(path$1);
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
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.id <id> ID for AMD module (default is anonymous)\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--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--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-externalLiveBindings Do not generate code to support live bindings\n--failAfterWarnings Exit with an error if the build produced warnings\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--no-freeze Do not freeze namespace objects\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--no-indent Don't indent result\n--no-interop Do not include interop block\n--inlineDynamicImports Create single bundle when using dynamic imports\n--intro <text> Code to insert at top of bundle (inside wrapper)\n--minifyInternalExports Force or disable minification of internal exports\n--namespaceToStringTag Create proper `.toString` methods for namespaces\n--noConflict Generate a noConflict method for UMD globals\n--outro <text> Code to insert at end of bundle (inside wrapper)\n--preferConst Use `const` instead of `var` for exports\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--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\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--systemNullSetters Replace empty SystemJS setters with `null`\n--no-treeshake Disable tree-shaking optimisations\n--no-treeshake.annotations Ignore pure call annotations\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--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.skipWrite Do not write files to disk when watching\n--watch.exclude <files> Exclude files from being watched\n--watch.include <files> Limit watching to specified files\n--validate Validate output\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";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
@@ -1246,7 +1246,7 @@ yargsParser.detailed = function (args, opts) {
|
|
|
1246
1246
|
yargsParser.camelCase = camelCase;
|
|
1247
1247
|
yargsParser.decamelize = decamelize;
|
|
1248
1248
|
yargsParser.looksLikeNumber = looksLikeNumber;
|
|
1249
|
-
|
|
1249
|
+
const argParser = yargsParser;
|
|
1250
1250
|
|
|
1251
1251
|
var parseMs = milliseconds => {
|
|
1252
1252
|
if (typeof milliseconds !== 'number') {
|
|
@@ -1391,11 +1391,11 @@ var prettyMs = (milliseconds, options = {}) => {
|
|
|
1391
1391
|
return options.colonNotation ? result.join('') : result.join(' ');
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
|
-
|
|
1394
|
+
const ms = prettyMs;
|
|
1395
1395
|
|
|
1396
1396
|
let SOURCEMAPPING_URL = 'sourceMa';
|
|
1397
1397
|
SOURCEMAPPING_URL += 'ppingURL';
|
|
1398
|
-
|
|
1398
|
+
const SOURCEMAPPING_URL$1 = SOURCEMAPPING_URL;
|
|
1399
1399
|
|
|
1400
1400
|
const BYTE_UNITS = [
|
|
1401
1401
|
'B',
|
|
@@ -1514,7 +1514,7 @@ var prettyBytes = (number, options) => {
|
|
|
1514
1514
|
return prefix + numberString + ' ' + unit;
|
|
1515
1515
|
};
|
|
1516
1516
|
|
|
1517
|
-
|
|
1517
|
+
const prettyBytes$1 = prettyBytes;
|
|
1518
1518
|
|
|
1519
1519
|
function printTimings(timings) {
|
|
1520
1520
|
Object.keys(timings).forEach(label => {
|
|
@@ -1618,7 +1618,7 @@ requireRelative.resolve = function(requested, relativeTo) {
|
|
|
1618
1618
|
|
|
1619
1619
|
var requireRelative_1 = requireRelative;
|
|
1620
1620
|
|
|
1621
|
-
|
|
1621
|
+
const relative = requireRelative_1;
|
|
1622
1622
|
|
|
1623
1623
|
const DEFAULT_CONFIG_BASE = 'rollup.config';
|
|
1624
1624
|
function getConfigPath(commandConfig) {
|
|
@@ -1719,7 +1719,7 @@ async function runRollup(command) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
if (command.watch) {
|
|
1721
1721
|
await rollup.loadFsEvents();
|
|
1722
|
-
const { watch } = await Promise.resolve().then(
|
|
1722
|
+
const { watch } = await Promise.resolve().then(() => require('../shared/watch-cli.js'));
|
|
1723
1723
|
watch(command);
|
|
1724
1724
|
}
|
|
1725
1725
|
else {
|