rollup 2.60.2 → 2.63.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 +83 -0
- package/dist/bin/rollup +4 -3
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +879 -779
- package/dist/es/shared/watch.js +6 -6
- package/dist/loadConfigFile.js +3 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.d.ts +1 -0
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +96 -37
- package/dist/shared/mergeOptions.js +12 -5
- package/dist/shared/rollup.js +879 -778
- package/dist/shared/watch-cli.js +36 -13
- package/dist/shared/watch.js +2 -2
- package/package.json +22 -22
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
Tue,
|
|
3
|
+
Rollup.js v2.63.0
|
|
4
|
+
Tue, 04 Jan 2022 07:30:25 GMT - commit ae674c9edde5efb8ce6d8ef845598a805938178c
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import * as require$$0$1 from 'path';
|
|
12
12
|
import require$$0__default from 'path';
|
|
13
|
-
import { defaultOnWarn, ensureArray, warnUnknownOptions, objectifyOptionWithPresets, treeshakePresets, generatedCodePresets, picomatch as picomatch$2, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './rollup.js';
|
|
13
|
+
import { defaultOnWarn, ensureArray, warnUnknownOptions, objectifyOptionWithPresets, treeshakePresets, objectifyOption, generatedCodePresets, picomatch as picomatch$2, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './rollup.js';
|
|
14
14
|
import require$$2$1, { platform } from 'os';
|
|
15
15
|
import require$$0$2 from 'events';
|
|
16
16
|
import fs$4 from 'fs';
|
|
@@ -91,7 +91,7 @@ function mergeInputOptions(config, overrides, defaultOnWarnHandler) {
|
|
|
91
91
|
shimMissingExports: getOption('shimMissingExports'),
|
|
92
92
|
strictDeprecations: getOption('strictDeprecations'),
|
|
93
93
|
treeshake: getObjectOption(config, overrides, 'treeshake', objectifyOptionWithPresets(treeshakePresets, 'treeshake', 'false, true, ')),
|
|
94
|
-
watch: getWatch(config, overrides
|
|
94
|
+
watch: getWatch(config, overrides)
|
|
95
95
|
};
|
|
96
96
|
warnUnknownOptions(config, Object.keys(inputOptions), 'input options', inputOptions.onwarn, /^output$/);
|
|
97
97
|
return inputOptions;
|
|
@@ -105,7 +105,7 @@ const getExternal = (config, overrides) => {
|
|
|
105
105
|
const getOnWarn = (config, defaultOnWarnHandler) => config.onwarn
|
|
106
106
|
? warning => config.onwarn(warning, defaultOnWarnHandler)
|
|
107
107
|
: defaultOnWarnHandler;
|
|
108
|
-
const getObjectOption = (config, overrides, name, objectifyValue =
|
|
108
|
+
const getObjectOption = (config, overrides, name, objectifyValue = objectifyOption) => {
|
|
109
109
|
const commandOption = normalizeObjectOptionValue(overrides[name], objectifyValue);
|
|
110
110
|
const configOption = normalizeObjectOptionValue(config[name], objectifyValue);
|
|
111
111
|
if (commandOption !== undefined) {
|
|
@@ -113,7 +113,7 @@ const getObjectOption = (config, overrides, name, objectifyValue = value => (typ
|
|
|
113
113
|
}
|
|
114
114
|
return configOption;
|
|
115
115
|
};
|
|
116
|
-
const getWatch = (config, overrides
|
|
116
|
+
const getWatch = (config, overrides) => config.watch !== false && getObjectOption(config, overrides, 'watch');
|
|
117
117
|
const normalizeObjectOptionValue = (optionValue, objectifyValue) => {
|
|
118
118
|
if (!optionValue) {
|
|
119
119
|
return optionValue;
|
package/dist/loadConfigFile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
Tue,
|
|
3
|
+
Rollup.js v2.63.0
|
|
4
|
+
Tue, 04 Jan 2022 07:30:25 GMT - commit ae674c9edde5efb8ce6d8ef845598a805938178c
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -16,6 +16,7 @@ require('url');
|
|
|
16
16
|
const loadConfigFile_js = require('./shared/loadConfigFile.js');
|
|
17
17
|
require('./shared/rollup.js');
|
|
18
18
|
require('./shared/mergeOptions.js');
|
|
19
|
+
require('process');
|
|
19
20
|
require('tty');
|
|
20
21
|
require('crypto');
|
|
21
22
|
require('events');
|