rollup 2.67.0 → 2.68.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 +70 -0
- package/dist/bin/rollup +11 -13
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +3925 -3923
- package/dist/es/shared/watch.js +7 -7
- 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 -1
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +10 -10
- package/dist/shared/mergeOptions.js +4 -4
- package/dist/shared/rollup.js +3924 -3922
- package/dist/shared/watch-cli.js +6 -4
- package/dist/shared/watch.js +4 -4
- package/package.json +10 -8
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.68.0
|
|
4
|
+
Tue, 22 Feb 2022 06:24:42 GMT - commit 51cab92373bcf8c844a8de2a6765869f7eb05a5d
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
Released under the MIT License.
|
|
10
10
|
*/
|
|
11
11
|
import require$$0$2, { resolve } from 'path';
|
|
12
|
+
import process$1 from 'process';
|
|
12
13
|
import { defaultOnWarn, ensureArray, warnUnknownOptions, objectifyOptionWithPresets, treeshakePresets, objectifyOption, generatedCodePresets, picomatch as picomatch$2, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './rollup.js';
|
|
13
14
|
import require$$2$1, { platform } from 'os';
|
|
14
15
|
import require$$0$3 from 'events';
|
|
15
16
|
import require$$0$1 from 'fs';
|
|
16
17
|
import require$$2 from 'util';
|
|
17
18
|
import require$$1 from 'stream';
|
|
18
|
-
import 'process';
|
|
19
19
|
import 'perf_hooks';
|
|
20
20
|
import 'crypto';
|
|
21
21
|
|
|
@@ -60,7 +60,7 @@ function getCommandOptions(rawCommandOptions) {
|
|
|
60
60
|
? rawCommandOptions.globals.split(',').reduce((globals, globalDefinition) => {
|
|
61
61
|
const [id, variableName] = globalDefinition.split(':');
|
|
62
62
|
globals[id] = variableName;
|
|
63
|
-
if (external.
|
|
63
|
+
if (!external.includes(id)) {
|
|
64
64
|
external.push(id);
|
|
65
65
|
}
|
|
66
66
|
return globals;
|
|
@@ -100,7 +100,7 @@ function mergeInputOptions(config, overrides, defaultOnWarnHandler) {
|
|
|
100
100
|
const getExternal = (config, overrides) => {
|
|
101
101
|
const configExternal = config.external;
|
|
102
102
|
return typeof configExternal === 'function'
|
|
103
|
-
? (source, importer, isResolved) => configExternal(source, importer, isResolved) || overrides.external.
|
|
103
|
+
? (source, importer, isResolved) => configExternal(source, importer, isResolved) || overrides.external.includes(source)
|
|
104
104
|
: ensureArray(configExternal).concat(overrides.external);
|
|
105
105
|
};
|
|
106
106
|
const getOnWarn = (config, defaultOnWarnHandler) => config.onwarn
|
|
@@ -4805,7 +4805,7 @@ class Watcher {
|
|
|
4805
4805
|
this.buildDelay = configs.reduce((buildDelay, { watch }) => watch && typeof watch.buildDelay === 'number'
|
|
4806
4806
|
? Math.max(buildDelay, watch.buildDelay)
|
|
4807
4807
|
: buildDelay, this.buildDelay);
|
|
4808
|
-
process.nextTick(() => this.run());
|
|
4808
|
+
process$1.nextTick(() => this.run());
|
|
4809
4809
|
}
|
|
4810
4810
|
close() {
|
|
4811
4811
|
if (this.buildTimeout)
|
|
@@ -4897,7 +4897,7 @@ class Task {
|
|
|
4897
4897
|
this.invalidated = true;
|
|
4898
4898
|
if (details.isTransformDependency) {
|
|
4899
4899
|
for (const module of this.cache.modules) {
|
|
4900
|
-
if (module.transformDependencies.
|
|
4900
|
+
if (!module.transformDependencies.includes(id))
|
|
4901
4901
|
continue;
|
|
4902
4902
|
// effective invalidation
|
|
4903
4903
|
module.originalCode = null;
|
package/dist/loadConfigFile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.68.0
|
|
4
|
+
Tue, 22 Feb 2022 06:24:42 GMT - commit 51cab92373bcf8c844a8de2a6765869f7eb05a5d
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
require('fs');
|
|
14
14
|
require('path');
|
|
15
|
+
require('process');
|
|
15
16
|
require('url');
|
|
16
17
|
const loadConfigFile_js = require('./shared/loadConfigFile.js');
|
|
17
18
|
require('./shared/rollup.js');
|
|
18
19
|
require('./shared/mergeOptions.js');
|
|
19
|
-
require('process');
|
|
20
20
|
require('tty');
|
|
21
21
|
require('perf_hooks');
|
|
22
22
|
require('crypto');
|