rollup 3.21.2 → 3.21.4

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/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.21.2
6
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
5
+ Rollup.js v3.21.4
6
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
@@ -1654,7 +1654,7 @@ async function runRollup(command) {
1654
1654
  if (rollup.isWatchEnabled(command.watch)) {
1655
1655
  await fseventsImporter.loadFsEvents();
1656
1656
  const { watch } = await Promise.resolve().then(() => require('../shared/watch-cli.js'));
1657
- watch(command);
1657
+ await watch(command);
1658
1658
  }
1659
1659
  else {
1660
1660
  try {
@@ -1705,7 +1705,7 @@ else {
1705
1705
  catch {
1706
1706
  // do nothing
1707
1707
  }
1708
- runRollup(command);
1708
+ runRollup(command).then(() => process$1.exit(0));
1709
1709
  }
1710
1710
 
1711
1711
  exports.getConfigPath = getConfigPath;
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/pr
16
16
  import { EventEmitter } from 'node:events';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version$1 = "3.21.2";
19
+ var version$1 = "3.21.4";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -13706,7 +13706,11 @@ class Module {
13706
13706
  isIncluded() {
13707
13707
  // Modules where this.ast is missing have been loaded via this.load and are
13708
13708
  // not yet fully processed, hence they cannot be included.
13709
- return (this.ast && (this.ast.included || this.namespace.included || this.importedFromNotTreeshaken));
13709
+ return (this.ast &&
13710
+ (this.ast.included ||
13711
+ this.namespace.included ||
13712
+ this.importedFromNotTreeshaken ||
13713
+ this.exportShimVariable.included));
13710
13714
  }
13711
13715
  linkImports() {
13712
13716
  this.addModulesToImportDescriptions(this.importDescriptions);
@@ -26014,7 +26018,6 @@ function handleError(error, recover = false) {
26014
26018
  }
26015
26019
  outputLines.push('', '');
26016
26020
  stderr(outputLines.join('\n'));
26017
- // eslint-disable-next-line unicorn/no-process-exit
26018
26021
  if (!recover)
26019
26022
  process$1.exit(1);
26020
26023
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -519,7 +519,7 @@ export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputP
519
519
 
520
520
  export interface InputOptions {
521
521
  acorn?: Record<string, unknown>;
522
- acornInjectPlugins?: (() => unknown)[] | (() => unknown);
522
+ acornInjectPlugins?: ((...arguments_: any[]) => unknown)[] | ((...arguments_: any[]) => unknown);
523
523
  cache?: boolean | RollupCache;
524
524
  context?: string;
525
525
  experimentalCacheExpiry?: number;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version$1 = "3.21.2";
34
+ var version$1 = "3.21.4";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -1282,7 +1282,6 @@ function handleError(error, recover = false) {
1282
1282
  }
1283
1283
  outputLines.push('', '');
1284
1284
  stderr(outputLines.join('\n'));
1285
- // eslint-disable-next-line unicorn/no-process-exit
1286
1285
  if (!recover)
1287
1286
  process$1.exit(1);
1288
1287
  }
@@ -14202,7 +14201,11 @@ class Module {
14202
14201
  isIncluded() {
14203
14202
  // Modules where this.ast is missing have been loaded via this.load and are
14204
14203
  // not yet fully processed, hence they cannot be included.
14205
- return (this.ast && (this.ast.included || this.namespace.included || this.importedFromNotTreeshaken));
14204
+ return (this.ast &&
14205
+ (this.ast.included ||
14206
+ this.namespace.included ||
14207
+ this.importedFromNotTreeshaken ||
14208
+ this.exportShimVariable.included));
14206
14209
  }
14207
14210
  linkImports() {
14208
14211
  this.addModulesToImportDescriptions(this.importDescriptions);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -537,11 +537,10 @@ async function watch(command) {
537
537
  await watcher.close();
538
538
  if (configWatcher)
539
539
  configWatcher.close();
540
- if (code) {
541
- // eslint-disable-next-line unicorn/no-process-exit
542
- process$2.exit(code);
543
- }
540
+ process$2.exit(code || 0);
544
541
  }
542
+ // return a promise that never resolves to keep the process running
543
+ return new Promise(() => { });
545
544
  }
546
545
 
547
546
  exports.watch = watch;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.21.2
4
- Sun, 30 Apr 2023 05:31:29 GMT - commit f138dcee19367f17f2e66f940fb8d612471f7ddf
3
+ Rollup.js v3.21.4
4
+ Wed, 03 May 2023 18:48:02 GMT - commit 61acfa4c71724f1c1acc62fbf77a7a07e0355fe3
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "3.21.2",
3
+ "version": "3.21.4",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -81,7 +81,8 @@
81
81
  "@rollup/plugin-typescript": "^11.1.0",
82
82
  "@rollup/pluginutils": "^5.0.2",
83
83
  "@types/estree": "1.0.1",
84
- "@types/node": "^14.18.42",
84
+ "@types/mocha": "^10.0.1",
85
+ "@types/node": "~14.18.42",
85
86
  "@types/yargs-parser": "^21.0.0",
86
87
  "@typescript-eslint/eslint-plugin": "^5.59.1",
87
88
  "@typescript-eslint/parser": "^5.59.1",