rollup 2.64.0 → 2.67.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 +77 -0
- package/LICENSE.md +0 -7
- package/dist/bin/rollup +13 -55
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +8624 -8592
- package/dist/es/shared/watch.js +26 -18
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.d.ts +8 -4
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +26 -18
- package/dist/shared/loadConfigFile.js +4 -4
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +321 -289
- package/dist/shared/watch-cli.js +15 -16
- package/dist/shared/watch.js +2 -2
- package/package.json +21 -23
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.67.0
|
|
4
|
+
Wed, 02 Feb 2022 06:19:08 GMT - commit 61d772ba59be605e53e72613ae51cee4b72aee64
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
9
9
|
Released under the MIT License.
|
|
10
10
|
*/
|
|
11
|
-
import require$$0$
|
|
11
|
+
import require$$0$2, { resolve } from 'path';
|
|
12
12
|
import { defaultOnWarn, ensureArray, warnUnknownOptions, objectifyOptionWithPresets, treeshakePresets, objectifyOption, generatedCodePresets, picomatch as picomatch$2, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './rollup.js';
|
|
13
13
|
import require$$2$1, { platform } from 'os';
|
|
14
|
-
import require$$0$
|
|
15
|
-
import
|
|
14
|
+
import require$$0$3 from 'events';
|
|
15
|
+
import require$$0$1 from 'fs';
|
|
16
16
|
import require$$2 from 'util';
|
|
17
17
|
import require$$1 from 'stream';
|
|
18
18
|
import 'process';
|
|
@@ -176,9 +176,9 @@ function mergeOutputOptions(config, overrides, warn) {
|
|
|
176
176
|
|
|
177
177
|
var chokidar$1 = {};
|
|
178
178
|
|
|
179
|
-
const fs$3 =
|
|
179
|
+
const fs$3 = require$$0$1;
|
|
180
180
|
const { Readable } = require$$1;
|
|
181
|
-
const sysPath$3 = require$$0$
|
|
181
|
+
const sysPath$3 = require$$0$2;
|
|
182
182
|
const { promisify: promisify$3 } = require$$2;
|
|
183
183
|
const picomatch$1 = picomatch$2;
|
|
184
184
|
|
|
@@ -776,7 +776,7 @@ var isGlob$2 = function isGlob(str, options) {
|
|
|
776
776
|
};
|
|
777
777
|
|
|
778
778
|
var isGlob$1 = isGlob$2;
|
|
779
|
-
var pathPosixDirname = require$$0$
|
|
779
|
+
var pathPosixDirname = require$$0$2.posix.dirname;
|
|
780
780
|
var isWin32 = require$$2$1.platform() === 'win32';
|
|
781
781
|
|
|
782
782
|
var slash = '/';
|
|
@@ -2499,7 +2499,7 @@ const require$$0 = [
|
|
|
2499
2499
|
|
|
2500
2500
|
var binaryExtensions$1 = require$$0;
|
|
2501
2501
|
|
|
2502
|
-
const path = require$$0$
|
|
2502
|
+
const path = require$$0$2;
|
|
2503
2503
|
const binaryExtensions = binaryExtensions$1;
|
|
2504
2504
|
|
|
2505
2505
|
const extensions = new Set(binaryExtensions);
|
|
@@ -2510,7 +2510,7 @@ var constants = {};
|
|
|
2510
2510
|
|
|
2511
2511
|
(function (exports) {
|
|
2512
2512
|
|
|
2513
|
-
const {sep} = require$$0$
|
|
2513
|
+
const {sep} = require$$0$2;
|
|
2514
2514
|
const {platform} = process;
|
|
2515
2515
|
const os = require$$2$1;
|
|
2516
2516
|
|
|
@@ -2575,8 +2575,8 @@ exports.isLinux = platform === 'linux';
|
|
|
2575
2575
|
exports.isIBMi = os.type() === 'OS400';
|
|
2576
2576
|
}(constants));
|
|
2577
2577
|
|
|
2578
|
-
const fs$2 =
|
|
2579
|
-
const sysPath$2 = require$$0$
|
|
2578
|
+
const fs$2 = require$$0$1;
|
|
2579
|
+
const sysPath$2 = require$$0$2;
|
|
2580
2580
|
const { promisify: promisify$2 } = require$$2;
|
|
2581
2581
|
const isBinaryPath = isBinaryPath$1;
|
|
2582
2582
|
const {
|
|
@@ -2986,7 +2986,15 @@ async _handleSymlink(entry, directory, path, item) {
|
|
|
2986
2986
|
if (!this.fsw.options.followSymlinks) {
|
|
2987
2987
|
// watch symlink directly (don't follow) and detect changes
|
|
2988
2988
|
this.fsw._incrReadyCount();
|
|
2989
|
-
|
|
2989
|
+
|
|
2990
|
+
let linkPath;
|
|
2991
|
+
try {
|
|
2992
|
+
linkPath = await fsrealpath(path);
|
|
2993
|
+
} catch (e) {
|
|
2994
|
+
this.fsw._emitReady();
|
|
2995
|
+
return true;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2990
2998
|
if (this.fsw.closed) return;
|
|
2991
2999
|
if (dir.has(item)) {
|
|
2992
3000
|
if (this.fsw._symlinkPaths.get(full) !== linkPath) {
|
|
@@ -3214,8 +3222,8 @@ var fseventsHandler = {exports: {}};
|
|
|
3214
3222
|
|
|
3215
3223
|
const require$$3 = /*@__PURE__*/getAugmentedNamespace(fseventsImporter);
|
|
3216
3224
|
|
|
3217
|
-
const fs$1 =
|
|
3218
|
-
const sysPath$1 = require$$0$
|
|
3225
|
+
const fs$1 = require$$0$1;
|
|
3226
|
+
const sysPath$1 = require$$0$2;
|
|
3219
3227
|
const { promisify: promisify$1 } = require$$2;
|
|
3220
3228
|
|
|
3221
3229
|
let fsevents;
|
|
@@ -3737,9 +3745,9 @@ async _addToFsEvents(path, transform, forceAdd, priorDepth) {
|
|
|
3737
3745
|
fseventsHandler.exports = FsEventsHandler$1;
|
|
3738
3746
|
fseventsHandler.exports.canUse = canUse;
|
|
3739
3747
|
|
|
3740
|
-
const { EventEmitter } = require$$0$
|
|
3741
|
-
const fs =
|
|
3742
|
-
const sysPath = require$$0$
|
|
3748
|
+
const { EventEmitter } = require$$0$3;
|
|
3749
|
+
const fs = require$$0$1;
|
|
3750
|
+
const sysPath = require$$0$2;
|
|
3743
3751
|
const { promisify } = require$$2;
|
|
3744
3752
|
const readdirp = readdirp_1;
|
|
3745
3753
|
const anymatch = anymatch$2.exports.default;
|
package/dist/loadConfigFile.js
CHANGED