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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.2
4
- Tue, 30 Nov 2021 05:36:58 GMT - commit 7c9b89fade00a4eb8ea39c6b15ef7d0e6e5739be
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, 'watch')
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 = value => (typeof value === 'object' ? value : {})) => {
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, name) => config.watch !== false && getObjectOption(config, overrides, name);
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;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.60.2
4
- Tue, 30 Nov 2021 05:36:58 GMT - commit 7c9b89fade00a4eb8ea39c6b15ef7d0e6e5739be
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');