rollup 4.9.2 → 4.9.3

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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.9.2
5
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
4
+ Rollup.js v4.9.3
5
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { xxhashBase64Url } from '../../native.js';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version = "4.9.2";
19
+ var version = "4.9.3";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -2063,7 +2063,7 @@ const VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]
2063
2063
  const NUMBER_REGEXP = /^\d+$/;
2064
2064
  function stringifyObjectKeyIfNeeded(key) {
2065
2065
  if (VALID_IDENTIFIER_REGEXP.test(key) || NUMBER_REGEXP.test(key)) {
2066
- return key;
2066
+ return key === '__proto__' ? '["__proto__"]' : key;
2067
2067
  }
2068
2068
  return JSON.stringify(key);
2069
2069
  }
@@ -10051,14 +10051,14 @@ const HELPER_GENERATORS = {
10051
10051
  `}${n}${n}`);
10052
10052
  },
10053
10053
  [INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE](_t, snippets, _liveBindings, freeze, symbols) {
10054
- const { getDirectReturnFunction, getObject, n } = snippets;
10054
+ const { getDirectReturnFunction, getObject, n, _ } = snippets;
10055
10055
  const [left, right] = getDirectReturnFunction(['e'], {
10056
10056
  functionReturn: true,
10057
10057
  lineBreakIndent: null,
10058
10058
  name: INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE
10059
10059
  });
10060
10060
  return `${left}${getFrozen(freeze, getWithToStringTag(symbols, getObject([
10061
- ['__proto__', 'null'],
10061
+ [null, `__proto__:${_}null`],
10062
10062
  ['default', 'e']
10063
10063
  ], { lineBreakIndent: null }), snippets))}${right}${n}${n}`;
10064
10064
  },
@@ -13511,7 +13511,7 @@ class Module {
13511
13511
  }
13512
13512
  async tryParseAsync() {
13513
13513
  try {
13514
- return (await parseAstAsync(this.info.code));
13514
+ return await parseAstAsync(this.info.code);
13515
13515
  }
13516
13516
  catch (error_) {
13517
13517
  return this.error(logModuleParseError(error_, this.id), error_.pos);
@@ -13574,6 +13574,12 @@ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snip
13574
13574
  `${t}enumerable:${_}true,${n}` +
13575
13575
  `${t}get:${_}${left}${importName}${right}${n}});`;
13576
13576
  }
13577
+ else if (specifier.reexported === '__proto__') {
13578
+ exportBlock +=
13579
+ `Object.defineProperty(exports,${_}"__proto__",${_}{${n}` +
13580
+ `${t}enumerable:${_}true,${n}` +
13581
+ `${t}value:${_}${importName}${n}});`;
13582
+ }
13577
13583
  else {
13578
13584
  exportBlock += `exports${getPropertyAccess(specifier.reexported)}${_}=${_}${importName};`;
13579
13585
  }
@@ -13587,7 +13593,12 @@ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snip
13587
13593
  if (lhs !== rhs) {
13588
13594
  if (exportBlock)
13589
13595
  exportBlock += n;
13590
- exportBlock += `${lhs}${_}=${_}${rhs};`;
13596
+ exportBlock +=
13597
+ exported === '__proto__'
13598
+ ? `Object.defineProperty(exports,${_}"__proto__",${_}{${n}` +
13599
+ `${t}enumerable:${_}true,${n}` +
13600
+ `${t}value:${_}${rhs}${n}});`
13601
+ : `${lhs}${_}=${_}${rhs};`;
13591
13602
  }
13592
13603
  }
13593
13604
  for (const { name, reexports } of dependencies) {
@@ -13679,7 +13690,9 @@ const getDefineProperty = (name, needsLiveBinding, t, { _, getDirectReturnFuncti
13679
13690
  `${t}${t}enumerable:${_}true,${n}` +
13680
13691
  `${t}${t}get:${_}${left}${name}[k]${right}${n}${t}})`);
13681
13692
  }
13682
- return `exports[k]${_}=${_}${name}[k]`;
13693
+ return (`k${_}===${_}'__proto__'${_}?${_}Object.defineProperty(exports,${_}k,${_}{${n}` +
13694
+ `${t}${t}enumerable:${_}true,${n}` +
13695
+ `${t}${t}value:${_}${name}[k]${n}${t}})${_}:${_}exports[k]${_}=${_}${name}[k]`);
13683
13696
  };
13684
13697
 
13685
13698
  function getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, indent, snippets) {
@@ -14188,14 +14201,16 @@ function analyzeDependencies(dependencies, exports, t, { _, cnst, getObject, get
14188
14201
  }
14189
14202
  }
14190
14203
  if (reexportedNames.length > 1 || hasStarReexport) {
14191
- const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
14192
14204
  if (hasStarReexport) {
14193
14205
  if (!starExcludes) {
14194
14206
  starExcludes = getStarExcludes({ dependencies, exports });
14195
14207
  }
14208
+ reexportedNames.unshift([null, `__proto__:${_}null`]);
14209
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
14196
14210
  setter.push(`${cnst} setter${_}=${_}${exportMapping};`, `for${_}(${cnst} name in module)${_}{`, `${t}if${_}(!_starExcludes[name])${_}setter[name]${_}=${_}module[name];`, '}', 'exports(setter);');
14197
14211
  }
14198
14212
  else {
14213
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
14199
14214
  setter.push(`exports(${exportMapping});`);
14200
14215
  }
14201
14216
  }
@@ -14221,9 +14236,19 @@ const getStarExcludes = ({ dependencies, exports }) => {
14221
14236
  }
14222
14237
  return starExcludes;
14223
14238
  };
14224
- const getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n }) => starExcludes
14225
- ? `${n}${t}${cnst} _starExcludes${_}=${_}${getObject([...starExcludes].map(property => [property, '1']), { lineBreakIndent: { base: t, t } })};`
14226
- : '';
14239
+ const getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n }) => {
14240
+ if (starExcludes) {
14241
+ const fields = [...starExcludes].map(property => [
14242
+ property,
14243
+ '1'
14244
+ ]);
14245
+ fields.unshift([null, `__proto__:${_}null`]);
14246
+ return `${n}${t}${cnst} _starExcludes${_}=${_}${getObject(fields, {
14247
+ lineBreakIndent: { base: t, t }
14248
+ })};`;
14249
+ }
14250
+ return '';
14251
+ };
14227
14252
  const getImportBindingsBlock = (importBindings, t, { _, n }) => (importBindings.length > 0 ? `${n}${t}var ${importBindings.join(`,${_}`)};` : '');
14228
14253
  const getHoistedExportsBlock = (exports, t, snippets) => getExportsBlock(exports.filter(expt => expt.hoisted).map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
14229
14254
  function getExportsBlock(exports, t, { _, n }) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { Program } from 'estree';
2
+
1
3
  export const VERSION: string;
2
4
 
3
5
  // utils
@@ -98,13 +100,13 @@ interface ModuleOptions {
98
100
  }
99
101
 
100
102
  export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
101
- ast?: AstNode;
103
+ ast?: ProgramNode;
102
104
  code: string;
103
105
  map?: SourceMapInput;
104
106
  }
105
107
 
106
108
  export interface TransformModuleJSON {
107
- ast?: AstNode;
109
+ ast?: ProgramNode;
108
110
  code: string;
109
111
  // note if plugins use new this.cache to opt-out auto transform cache
110
112
  customTransformCache: boolean;
@@ -115,7 +117,7 @@ export interface TransformModuleJSON {
115
117
  }
116
118
 
117
119
  export interface ModuleJSON extends TransformModuleJSON, ModuleOptions {
118
- ast: AstNode;
120
+ ast: ProgramNode;
119
121
  dependencies: string[];
120
122
  id: string;
121
123
  resolvedIds: ResolvedIdMap;
@@ -171,7 +173,7 @@ export type EmittedFile = EmittedAsset | EmittedChunk | EmittedPrebuiltChunk;
171
173
  export type EmitFile = (emittedFile: EmittedFile) => string;
172
174
 
173
175
  interface ModuleInfo extends ModuleOptions {
174
- ast: AstNode | null;
176
+ ast: ProgramNode | null;
175
177
  code: string | null;
176
178
  dynamicImporters: readonly string[];
177
179
  dynamicallyImportedIdResolutions: readonly ResolvedId[];
@@ -204,7 +206,7 @@ type LoggingFunctionWithPosition = (
204
206
  export type ParseAst = (
205
207
  input: string,
206
208
  options?: { allowReturnOutsideFunction?: boolean }
207
- ) => AstNode;
209
+ ) => ProgramNode;
208
210
 
209
211
  // declare AbortSignal here for environments without DOM lib or @types/node
210
212
  declare global {
@@ -214,7 +216,7 @@ declare global {
214
216
  export type ParseAstAsync = (
215
217
  input: string,
216
218
  options?: { allowReturnOutsideFunction?: boolean; signal?: AbortSignal }
217
- ) => Promise<AstNode>;
219
+ ) => Promise<ProgramNode>;
218
220
 
219
221
  export interface PluginContext extends MinimalPluginContext {
220
222
  addWatchFile: (id: string) => void;
@@ -280,7 +282,7 @@ export type ResolveIdHook = (
280
282
  export type ShouldTransformCachedModuleHook = (
281
283
  this: PluginContext,
282
284
  options: {
283
- ast: AstNode;
285
+ ast: ProgramNode;
284
286
  code: string;
285
287
  id: string;
286
288
  meta: CustomPluginOptions;
@@ -977,6 +979,8 @@ interface AstNode {
977
979
  type: string;
978
980
  }
979
981
 
982
+ type ProgramNode = Program & AstNode;
983
+
980
984
  export function defineConfig(options: RollupOptions): RollupOptions;
981
985
  export function defineConfig(options: RollupOptions[]): RollupOptions[];
982
986
  export function defineConfig(optionsFunction: RollupOptionsFunction): RollupOptionsFunction;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
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 = "4.9.2";
34
+ var version = "4.9.3";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -3509,7 +3509,7 @@ const VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]
3509
3509
  const NUMBER_REGEXP = /^\d+$/;
3510
3510
  function stringifyObjectKeyIfNeeded(key) {
3511
3511
  if (VALID_IDENTIFIER_REGEXP.test(key) || NUMBER_REGEXP.test(key)) {
3512
- return key;
3512
+ return key === '__proto__' ? '["__proto__"]' : key;
3513
3513
  }
3514
3514
  return JSON.stringify(key);
3515
3515
  }
@@ -11483,14 +11483,14 @@ const HELPER_GENERATORS = {
11483
11483
  `}${n}${n}`);
11484
11484
  },
11485
11485
  [INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE](_t, snippets, _liveBindings, freeze, symbols) {
11486
- const { getDirectReturnFunction, getObject, n } = snippets;
11486
+ const { getDirectReturnFunction, getObject, n, _ } = snippets;
11487
11487
  const [left, right] = getDirectReturnFunction(['e'], {
11488
11488
  functionReturn: true,
11489
11489
  lineBreakIndent: null,
11490
11490
  name: INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE
11491
11491
  });
11492
11492
  return `${left}${getFrozen(freeze, getWithToStringTag(symbols, getObject([
11493
- ['__proto__', 'null'],
11493
+ [null, `__proto__:${_}null`],
11494
11494
  ['default', 'e']
11495
11495
  ], { lineBreakIndent: null }), snippets))}${right}${n}${n}`;
11496
11496
  },
@@ -14936,7 +14936,7 @@ class Module {
14936
14936
  }
14937
14937
  async tryParseAsync() {
14938
14938
  try {
14939
- return (await parseAst_js.parseAstAsync(this.info.code));
14939
+ return await parseAst_js.parseAstAsync(this.info.code);
14940
14940
  }
14941
14941
  catch (error_) {
14942
14942
  return this.error(parseAst_js.logModuleParseError(error_, this.id), error_.pos);
@@ -14999,6 +14999,12 @@ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snip
14999
14999
  `${t}enumerable:${_}true,${n}` +
15000
15000
  `${t}get:${_}${left}${importName}${right}${n}});`;
15001
15001
  }
15002
+ else if (specifier.reexported === '__proto__') {
15003
+ exportBlock +=
15004
+ `Object.defineProperty(exports,${_}"__proto__",${_}{${n}` +
15005
+ `${t}enumerable:${_}true,${n}` +
15006
+ `${t}value:${_}${importName}${n}});`;
15007
+ }
15002
15008
  else {
15003
15009
  exportBlock += `exports${getPropertyAccess(specifier.reexported)}${_}=${_}${importName};`;
15004
15010
  }
@@ -15012,7 +15018,12 @@ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snip
15012
15018
  if (lhs !== rhs) {
15013
15019
  if (exportBlock)
15014
15020
  exportBlock += n;
15015
- exportBlock += `${lhs}${_}=${_}${rhs};`;
15021
+ exportBlock +=
15022
+ exported === '__proto__'
15023
+ ? `Object.defineProperty(exports,${_}"__proto__",${_}{${n}` +
15024
+ `${t}enumerable:${_}true,${n}` +
15025
+ `${t}value:${_}${rhs}${n}});`
15026
+ : `${lhs}${_}=${_}${rhs};`;
15016
15027
  }
15017
15028
  }
15018
15029
  for (const { name, reexports } of dependencies) {
@@ -15104,7 +15115,9 @@ const getDefineProperty = (name, needsLiveBinding, t, { _, getDirectReturnFuncti
15104
15115
  `${t}${t}enumerable:${_}true,${n}` +
15105
15116
  `${t}${t}get:${_}${left}${name}[k]${right}${n}${t}})`);
15106
15117
  }
15107
- return `exports[k]${_}=${_}${name}[k]`;
15118
+ return (`k${_}===${_}'__proto__'${_}?${_}Object.defineProperty(exports,${_}k,${_}{${n}` +
15119
+ `${t}${t}enumerable:${_}true,${n}` +
15120
+ `${t}${t}value:${_}${name}[k]${n}${t}})${_}:${_}exports[k]${_}=${_}${name}[k]`);
15108
15121
  };
15109
15122
 
15110
15123
  function getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, indent, snippets) {
@@ -15613,14 +15626,16 @@ function analyzeDependencies(dependencies, exports, t, { _, cnst, getObject, get
15613
15626
  }
15614
15627
  }
15615
15628
  if (reexportedNames.length > 1 || hasStarReexport) {
15616
- const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
15617
15629
  if (hasStarReexport) {
15618
15630
  if (!starExcludes) {
15619
15631
  starExcludes = getStarExcludes({ dependencies, exports });
15620
15632
  }
15633
+ reexportedNames.unshift([null, `__proto__:${_}null`]);
15634
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
15621
15635
  setter.push(`${cnst} setter${_}=${_}${exportMapping};`, `for${_}(${cnst} name in module)${_}{`, `${t}if${_}(!_starExcludes[name])${_}setter[name]${_}=${_}module[name];`, '}', 'exports(setter);');
15622
15636
  }
15623
15637
  else {
15638
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
15624
15639
  setter.push(`exports(${exportMapping});`);
15625
15640
  }
15626
15641
  }
@@ -15646,9 +15661,19 @@ const getStarExcludes = ({ dependencies, exports }) => {
15646
15661
  }
15647
15662
  return starExcludes;
15648
15663
  };
15649
- const getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n }) => starExcludes
15650
- ? `${n}${t}${cnst} _starExcludes${_}=${_}${getObject([...starExcludes].map(property => [property, '1']), { lineBreakIndent: { base: t, t } })};`
15651
- : '';
15664
+ const getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n }) => {
15665
+ if (starExcludes) {
15666
+ const fields = [...starExcludes].map(property => [
15667
+ property,
15668
+ '1'
15669
+ ]);
15670
+ fields.unshift([null, `__proto__:${_}null`]);
15671
+ return `${n}${t}${cnst} _starExcludes${_}=${_}${getObject(fields, {
15672
+ lineBreakIndent: { base: t, t }
15673
+ })};`;
15674
+ }
15675
+ return '';
15676
+ };
15652
15677
  const getImportBindingsBlock = (importBindings, t, { _, n }) => (importBindings.length > 0 ? `${n}${t}var ${importBindings.join(`,${_}`)};` : '');
15653
15678
  const getHoistedExportsBlock = (exports, t, snippets) => getExportsBlock(exports.filter(expt => expt.hoisted).map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
15654
15679
  function getExportsBlock(exports, t, { _, n }) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.9.2
4
- Sat, 30 Dec 2023 06:23:00 GMT - commit 347a34745b2679c1192535db3c0f60889861d3ad
3
+ Rollup.js v4.9.3
4
+ Fri, 05 Jan 2024 06:20:18 GMT - commit 4ab3ad360457cd79f4ea852447d3ddca22da95d6
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": "4.9.2",
3
+ "version": "4.9.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -101,30 +101,33 @@
101
101
  "homepage": "https://rollupjs.org/",
102
102
  "optionalDependencies": {
103
103
  "fsevents": "~2.3.2",
104
- "@rollup/rollup-darwin-arm64": "4.9.2",
105
- "@rollup/rollup-android-arm64": "4.9.2",
106
- "@rollup/rollup-win32-arm64-msvc": "4.9.2",
107
- "@rollup/rollup-linux-arm64-gnu": "4.9.2",
108
- "@rollup/rollup-linux-arm64-musl": "4.9.2",
109
- "@rollup/rollup-android-arm-eabi": "4.9.2",
110
- "@rollup/rollup-linux-arm-gnueabihf": "4.9.2",
111
- "@rollup/rollup-win32-ia32-msvc": "4.9.2",
112
- "@rollup/rollup-linux-riscv64-gnu": "4.9.2",
113
- "@rollup/rollup-darwin-x64": "4.9.2",
114
- "@rollup/rollup-win32-x64-msvc": "4.9.2",
115
- "@rollup/rollup-linux-x64-gnu": "4.9.2",
116
- "@rollup/rollup-linux-x64-musl": "4.9.2"
104
+ "@rollup/rollup-darwin-arm64": "4.9.3",
105
+ "@rollup/rollup-android-arm64": "4.9.3",
106
+ "@rollup/rollup-win32-arm64-msvc": "4.9.3",
107
+ "@rollup/rollup-linux-arm64-gnu": "4.9.3",
108
+ "@rollup/rollup-linux-arm64-musl": "4.9.3",
109
+ "@rollup/rollup-android-arm-eabi": "4.9.3",
110
+ "@rollup/rollup-linux-arm-gnueabihf": "4.9.3",
111
+ "@rollup/rollup-win32-ia32-msvc": "4.9.3",
112
+ "@rollup/rollup-linux-riscv64-gnu": "4.9.3",
113
+ "@rollup/rollup-darwin-x64": "4.9.3",
114
+ "@rollup/rollup-win32-x64-msvc": "4.9.3",
115
+ "@rollup/rollup-linux-x64-gnu": "4.9.3",
116
+ "@rollup/rollup-linux-x64-musl": "4.9.3"
117
+ },
118
+ "dependencies": {
119
+ "@types/estree": "1.0.5"
117
120
  },
118
121
  "devDependenciesComments": {
119
122
  "@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
120
123
  },
121
124
  "devDependencies": {
122
- "@codemirror/commands": "^6.3.2",
125
+ "@codemirror/commands": "^6.3.3",
123
126
  "@codemirror/lang-javascript": "^6.2.1",
124
- "@codemirror/language": "^6.9.3",
127
+ "@codemirror/language": "^6.10.0",
125
128
  "@codemirror/search": "^6.5.5",
126
- "@codemirror/state": "^6.3.3",
127
- "@codemirror/view": "^6.22.3",
129
+ "@codemirror/state": "^6.4.0",
130
+ "@codemirror/view": "^6.23.0",
128
131
  "@jridgewell/sourcemap-codec": "^1.4.15",
129
132
  "@mermaid-js/mermaid-cli": "^10.6.1",
130
133
  "@napi-rs/cli": "^2.17.0",
@@ -137,23 +140,22 @@
137
140
  "@rollup/plugin-terser": "^0.4.4",
138
141
  "@rollup/plugin-typescript": "11.1.5",
139
142
  "@rollup/pluginutils": "^5.1.0",
140
- "@types/estree": "1.0.5",
141
143
  "@types/inquirer": "^9.0.7",
142
144
  "@types/mocha": "^10.0.6",
143
145
  "@types/node": "18.0.0",
144
146
  "@types/yargs-parser": "^21.0.3",
145
- "@typescript-eslint/eslint-plugin": "^6.16.0",
146
- "@typescript-eslint/parser": "^6.16.0",
147
- "@vue/eslint-config-prettier": "^8.0.0",
147
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
148
+ "@typescript-eslint/parser": "^6.17.0",
149
+ "@vue/eslint-config-prettier": "^9.0.0",
148
150
  "@vue/eslint-config-typescript": "^12.0.0",
149
- "acorn": "^8.11.2",
151
+ "acorn": "^8.11.3",
150
152
  "acorn-import-assertions": "^1.9.0",
151
153
  "buble": "^0.20.0",
152
154
  "builtin-modules": "^3.3.0",
153
155
  "chokidar": "^3.5.3",
154
156
  "colorette": "^2.0.20",
155
157
  "concurrently": "^8.2.2",
156
- "core-js": "^3.34.0",
158
+ "core-js": "^3.35.0",
157
159
  "date-time": "^4.0.0",
158
160
  "es5-shim": "^4.6.7",
159
161
  "es6-shim": "^0.35.8",
@@ -180,7 +182,7 @@
180
182
  "pretty-bytes": "^6.1.1",
181
183
  "pretty-ms": "^8.0.0",
182
184
  "requirejs": "^2.3.6",
183
- "rollup": "^4.9.1",
185
+ "rollup": "^4.9.2",
184
186
  "rollup-plugin-license": "^3.2.0",
185
187
  "rollup-plugin-string": "^3.0.0",
186
188
  "semver": "^7.5.4",
@@ -188,19 +190,19 @@
188
190
  "signal-exit": "^4.1.0",
189
191
  "source-map": "^0.7.4",
190
192
  "source-map-support": "^0.5.21",
191
- "systemjs": "^6.14.2",
193
+ "systemjs": "^6.14.3",
192
194
  "terser": "^5.26.0",
193
195
  "tslib": "^2.6.2",
194
196
  "typescript": "^5.3.3",
195
197
  "vite": "^5.0.10",
196
- "vitepress": "^1.0.0-rc.32",
197
- "vue": "^3.3.13",
198
+ "vitepress": "^1.0.0-rc.34",
199
+ "vue": "^3.4.3",
198
200
  "wasm-pack": "^0.12.1",
199
201
  "weak-napi": "^2.0.2",
200
202
  "yargs-parser": "^21.1.1"
201
203
  },
202
204
  "overrides": {
203
- "axios": "^1.6.2",
205
+ "axios": "^1.6.3",
204
206
  "semver": "^7.5.4"
205
207
  },
206
208
  "files": [