rollup 2.67.2 → 2.69.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.67.2
4
- Thu, 10 Feb 2022 08:15:45 GMT - commit 60706c33073abe34cac170a92a17a1b166d348e3
3
+ Rollup.js v2.69.0
4
+ Wed, 02 Mar 2022 13:21:33 GMT - commit 10dc32678944cb276c2efe781b12350a8e0a5adf
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -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.indexOf(id) === -1) {
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.indexOf(source) !== -1
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
@@ -4839,7 +4839,7 @@ class Watcher {
4839
4839
  clearTimeout(this.buildTimeout);
4840
4840
  this.buildTimeout = setTimeout(() => {
4841
4841
  this.buildTimeout = null;
4842
- for (const [id, event] of this.invalidatedIds.entries()) {
4842
+ for (const [id, event] of this.invalidatedIds) {
4843
4843
  this.emitter.emit('change', id, { event });
4844
4844
  }
4845
4845
  this.invalidatedIds.clear();
@@ -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.indexOf(id) === -1)
4900
+ if (!module.transformDependencies.includes(id))
4901
4901
  continue;
4902
4902
  // effective invalidation
4903
4903
  module.originalCode = null;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.67.2
4
- Thu, 10 Feb 2022 08:15:45 GMT - commit 60706c33073abe34cac170a92a17a1b166d348e3
3
+ Rollup.js v2.69.0
4
+ Wed, 02 Mar 2022 13:21:33 GMT - commit 10dc32678944cb276c2efe781b12350a8e0a5adf
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup