rollup 3.17.0 → 3.17.1

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.17.0
6
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
5
+ Rollup.js v3.17.1
6
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
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.17.0";
19
+ var version$1 = "3.17.1";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -8017,9 +8017,12 @@ class Identifier extends NodeBase {
8017
8017
  // return cached value to avoid issues with the next tree-shaking pass
8018
8018
  if (this.isTDZAccess !== null)
8019
8019
  return this.isTDZAccess;
8020
- if (!(this.variable instanceof LocalVariable) ||
8021
- !this.variable.kind ||
8022
- !(this.variable.kind in tdzVariableKinds)) {
8020
+ if (!(this.variable instanceof LocalVariable &&
8021
+ this.variable.kind &&
8022
+ this.variable.kind in tdzVariableKinds &&
8023
+ // we ignore possible TDZs due to circular module dependencies as
8024
+ // otherwise we get many false positives
8025
+ this.variable.module === this.context.module)) {
8023
8026
  return (this.isTDZAccess = false);
8024
8027
  }
8025
8028
  let decl_id;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -0,0 +1,18 @@
1
+ import type { MergedRollupOptions, RollupWarning } from './rollup';
2
+
3
+ export interface BatchWarnings {
4
+ add: (warning: RollupWarning) => void;
5
+ readonly count: number;
6
+ flush: () => void;
7
+ readonly warningOccurred: boolean;
8
+ }
9
+
10
+ export type LoadConfigFile = typeof loadConfigFile;
11
+
12
+ export function loadConfigFile(
13
+ fileName: string,
14
+ commandOptions: any
15
+ ): Promise<{
16
+ options: MergedRollupOptions[];
17
+ warnings: BatchWarnings;
18
+ }>;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -387,7 +387,7 @@ async function requireOrImport(pluginPath) {
387
387
  }
388
388
  }
389
389
 
390
- async function loadConfigFile(fileName, commandOptions = {}) {
390
+ const loadConfigFile = async (fileName, commandOptions = {}) => {
391
391
  const configs = await getConfigList(getDefaultFromCjs(await getConfigFileExport(fileName, commandOptions)), commandOptions);
392
392
  const warnings = batchWarnings();
393
393
  try {
@@ -403,7 +403,7 @@ async function loadConfigFile(fileName, commandOptions = {}) {
403
403
  warnings.flush();
404
404
  throw error_;
405
405
  }
406
- }
406
+ };
407
407
  async function getConfigFileExport(fileName, commandOptions) {
408
408
  if (commandOptions.configPlugin || commandOptions.bundleConfigAsCjs) {
409
409
  try {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
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.17.0";
34
+ var version$1 = "3.17.1";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -8514,9 +8514,12 @@ class Identifier extends NodeBase {
8514
8514
  // return cached value to avoid issues with the next tree-shaking pass
8515
8515
  if (this.isTDZAccess !== null)
8516
8516
  return this.isTDZAccess;
8517
- if (!(this.variable instanceof LocalVariable) ||
8518
- !this.variable.kind ||
8519
- !(this.variable.kind in tdzVariableKinds)) {
8517
+ if (!(this.variable instanceof LocalVariable &&
8518
+ this.variable.kind &&
8519
+ this.variable.kind in tdzVariableKinds &&
8520
+ // we ignore possible TDZs due to circular module dependencies as
8521
+ // otherwise we get many false positives
8522
+ this.variable.module === this.context.module)) {
8520
8523
  return (this.isTDZAccess = false);
8521
8524
  }
8522
8525
  let decl_id;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.0
4
- Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
3
+ Rollup.js v3.17.1
4
+ Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
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.17.0",
3
+ "version": "3.17.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -162,7 +162,11 @@
162
162
  "require": "./dist/rollup.js",
163
163
  "import": "./dist/es/rollup.js"
164
164
  },
165
- "./loadConfigFile": "./dist/loadConfigFile.js",
165
+ "./loadConfigFile": {
166
+ "types": "./dist/loadConfigFile.d.ts",
167
+ "require": "./dist/loadConfigFile.js",
168
+ "default": "./dist/loadConfigFile.js"
169
+ },
166
170
  "./dist/*": "./dist/*"
167
171
  }
168
172
  }