rollup 4.9.2 → 4.9.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
@@ -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.4
5
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -2060,9 +2060,12 @@ function makeLegal(value) {
2060
2060
  return value || '_';
2061
2061
  }
2062
2062
  const VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u;
2063
- const NUMBER_REGEXP = /^\d+$/;
2063
+ const NUMBER_REGEXP = /^(?:0|[1-9]\d*)$/;
2064
2064
  function stringifyObjectKeyIfNeeded(key) {
2065
- if (VALID_IDENTIFIER_REGEXP.test(key) || NUMBER_REGEXP.test(key)) {
2065
+ if (VALID_IDENTIFIER_REGEXP.test(key)) {
2066
+ return key === '__proto__' ? '["__proto__"]' : key;
2067
+ }
2068
+ if (NUMBER_REGEXP.test(key) && +key <= Number.MAX_SAFE_INTEGER) {
2066
2069
  return key;
2067
2070
  }
2068
2071
  return JSON.stringify(key);
@@ -10051,14 +10054,14 @@ const HELPER_GENERATORS = {
10051
10054
  `}${n}${n}`);
10052
10055
  },
10053
10056
  [INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE](_t, snippets, _liveBindings, freeze, symbols) {
10054
- const { getDirectReturnFunction, getObject, n } = snippets;
10057
+ const { getDirectReturnFunction, getObject, n, _ } = snippets;
10055
10058
  const [left, right] = getDirectReturnFunction(['e'], {
10056
10059
  functionReturn: true,
10057
10060
  lineBreakIndent: null,
10058
10061
  name: INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE
10059
10062
  });
10060
10063
  return `${left}${getFrozen(freeze, getWithToStringTag(symbols, getObject([
10061
- ['__proto__', 'null'],
10064
+ [null, `__proto__:${_}null`],
10062
10065
  ['default', 'e']
10063
10066
  ], { lineBreakIndent: null }), snippets))}${right}${n}${n}`;
10064
10067
  },
@@ -13511,7 +13514,7 @@ class Module {
13511
13514
  }
13512
13515
  async tryParseAsync() {
13513
13516
  try {
13514
- return (await parseAstAsync(this.info.code));
13517
+ return await parseAstAsync(this.info.code);
13515
13518
  }
13516
13519
  catch (error_) {
13517
13520
  return this.error(logModuleParseError(error_, this.id), error_.pos);
@@ -13574,6 +13577,12 @@ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snip
13574
13577
  `${t}enumerable:${_}true,${n}` +
13575
13578
  `${t}get:${_}${left}${importName}${right}${n}});`;
13576
13579
  }
13580
+ else if (specifier.reexported === '__proto__') {
13581
+ exportBlock +=
13582
+ `Object.defineProperty(exports,${_}"__proto__",${_}{${n}` +
13583
+ `${t}enumerable:${_}true,${n}` +
13584
+ `${t}value:${_}${importName}${n}});`;
13585
+ }
13577
13586
  else {
13578
13587
  exportBlock += `exports${getPropertyAccess(specifier.reexported)}${_}=${_}${importName};`;
13579
13588
  }
@@ -13587,7 +13596,12 @@ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snip
13587
13596
  if (lhs !== rhs) {
13588
13597
  if (exportBlock)
13589
13598
  exportBlock += n;
13590
- exportBlock += `${lhs}${_}=${_}${rhs};`;
13599
+ exportBlock +=
13600
+ exported === '__proto__'
13601
+ ? `Object.defineProperty(exports,${_}"__proto__",${_}{${n}` +
13602
+ `${t}enumerable:${_}true,${n}` +
13603
+ `${t}value:${_}${rhs}${n}});`
13604
+ : `${lhs}${_}=${_}${rhs};`;
13591
13605
  }
13592
13606
  }
13593
13607
  for (const { name, reexports } of dependencies) {
@@ -13679,7 +13693,9 @@ const getDefineProperty = (name, needsLiveBinding, t, { _, getDirectReturnFuncti
13679
13693
  `${t}${t}enumerable:${_}true,${n}` +
13680
13694
  `${t}${t}get:${_}${left}${name}[k]${right}${n}${t}})`);
13681
13695
  }
13682
- return `exports[k]${_}=${_}${name}[k]`;
13696
+ return (`k${_}===${_}'__proto__'${_}?${_}Object.defineProperty(exports,${_}k,${_}{${n}` +
13697
+ `${t}${t}enumerable:${_}true,${n}` +
13698
+ `${t}${t}value:${_}${name}[k]${n}${t}})${_}:${_}exports[k]${_}=${_}${name}[k]`);
13683
13699
  };
13684
13700
 
13685
13701
  function getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, indent, snippets) {
@@ -14188,14 +14204,16 @@ function analyzeDependencies(dependencies, exports, t, { _, cnst, getObject, get
14188
14204
  }
14189
14205
  }
14190
14206
  if (reexportedNames.length > 1 || hasStarReexport) {
14191
- const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
14192
14207
  if (hasStarReexport) {
14193
14208
  if (!starExcludes) {
14194
14209
  starExcludes = getStarExcludes({ dependencies, exports });
14195
14210
  }
14211
+ reexportedNames.unshift([null, `__proto__:${_}null`]);
14212
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
14196
14213
  setter.push(`${cnst} setter${_}=${_}${exportMapping};`, `for${_}(${cnst} name in module)${_}{`, `${t}if${_}(!_starExcludes[name])${_}setter[name]${_}=${_}module[name];`, '}', 'exports(setter);');
14197
14214
  }
14198
14215
  else {
14216
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
14199
14217
  setter.push(`exports(${exportMapping});`);
14200
14218
  }
14201
14219
  }
@@ -14221,9 +14239,19 @@ const getStarExcludes = ({ dependencies, exports }) => {
14221
14239
  }
14222
14240
  return starExcludes;
14223
14241
  };
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
- : '';
14242
+ const getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n }) => {
14243
+ if (starExcludes) {
14244
+ const fields = [...starExcludes].map(property => [
14245
+ property,
14246
+ '1'
14247
+ ]);
14248
+ fields.unshift([null, `__proto__:${_}null`]);
14249
+ return `${n}${t}${cnst} _starExcludes${_}=${_}${getObject(fields, {
14250
+ lineBreakIndent: { base: t, t }
14251
+ })};`;
14252
+ }
14253
+ return '';
14254
+ };
14227
14255
  const getImportBindingsBlock = (importBindings, t, { _, n }) => (importBindings.length > 0 ? `${n}${t}var ${importBindings.join(`,${_}`)};` : '');
14228
14256
  const getHoistedExportsBlock = (exports, t, snippets) => getExportsBlock(exports.filter(expt => expt.hoisted).map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
14229
14257
  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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -3506,9 +3506,12 @@ function makeLegal(value) {
3506
3506
  return value || '_';
3507
3507
  }
3508
3508
  const VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u;
3509
- const NUMBER_REGEXP = /^\d+$/;
3509
+ const NUMBER_REGEXP = /^(?:0|[1-9]\d*)$/;
3510
3510
  function stringifyObjectKeyIfNeeded(key) {
3511
- if (VALID_IDENTIFIER_REGEXP.test(key) || NUMBER_REGEXP.test(key)) {
3511
+ if (VALID_IDENTIFIER_REGEXP.test(key)) {
3512
+ return key === '__proto__' ? '["__proto__"]' : key;
3513
+ }
3514
+ if (NUMBER_REGEXP.test(key) && +key <= Number.MAX_SAFE_INTEGER) {
3512
3515
  return key;
3513
3516
  }
3514
3517
  return JSON.stringify(key);
@@ -11483,14 +11486,14 @@ const HELPER_GENERATORS = {
11483
11486
  `}${n}${n}`);
11484
11487
  },
11485
11488
  [INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE](_t, snippets, _liveBindings, freeze, symbols) {
11486
- const { getDirectReturnFunction, getObject, n } = snippets;
11489
+ const { getDirectReturnFunction, getObject, n, _ } = snippets;
11487
11490
  const [left, right] = getDirectReturnFunction(['e'], {
11488
11491
  functionReturn: true,
11489
11492
  lineBreakIndent: null,
11490
11493
  name: INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE
11491
11494
  });
11492
11495
  return `${left}${getFrozen(freeze, getWithToStringTag(symbols, getObject([
11493
- ['__proto__', 'null'],
11496
+ [null, `__proto__:${_}null`],
11494
11497
  ['default', 'e']
11495
11498
  ], { lineBreakIndent: null }), snippets))}${right}${n}${n}`;
11496
11499
  },
@@ -14936,7 +14939,7 @@ class Module {
14936
14939
  }
14937
14940
  async tryParseAsync() {
14938
14941
  try {
14939
- return (await parseAst_js.parseAstAsync(this.info.code));
14942
+ return await parseAst_js.parseAstAsync(this.info.code);
14940
14943
  }
14941
14944
  catch (error_) {
14942
14945
  return this.error(parseAst_js.logModuleParseError(error_, this.id), error_.pos);
@@ -14999,6 +15002,12 @@ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snip
14999
15002
  `${t}enumerable:${_}true,${n}` +
15000
15003
  `${t}get:${_}${left}${importName}${right}${n}});`;
15001
15004
  }
15005
+ else if (specifier.reexported === '__proto__') {
15006
+ exportBlock +=
15007
+ `Object.defineProperty(exports,${_}"__proto__",${_}{${n}` +
15008
+ `${t}enumerable:${_}true,${n}` +
15009
+ `${t}value:${_}${importName}${n}});`;
15010
+ }
15002
15011
  else {
15003
15012
  exportBlock += `exports${getPropertyAccess(specifier.reexported)}${_}=${_}${importName};`;
15004
15013
  }
@@ -15012,7 +15021,12 @@ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snip
15012
15021
  if (lhs !== rhs) {
15013
15022
  if (exportBlock)
15014
15023
  exportBlock += n;
15015
- exportBlock += `${lhs}${_}=${_}${rhs};`;
15024
+ exportBlock +=
15025
+ exported === '__proto__'
15026
+ ? `Object.defineProperty(exports,${_}"__proto__",${_}{${n}` +
15027
+ `${t}enumerable:${_}true,${n}` +
15028
+ `${t}value:${_}${rhs}${n}});`
15029
+ : `${lhs}${_}=${_}${rhs};`;
15016
15030
  }
15017
15031
  }
15018
15032
  for (const { name, reexports } of dependencies) {
@@ -15104,7 +15118,9 @@ const getDefineProperty = (name, needsLiveBinding, t, { _, getDirectReturnFuncti
15104
15118
  `${t}${t}enumerable:${_}true,${n}` +
15105
15119
  `${t}${t}get:${_}${left}${name}[k]${right}${n}${t}})`);
15106
15120
  }
15107
- return `exports[k]${_}=${_}${name}[k]`;
15121
+ return (`k${_}===${_}'__proto__'${_}?${_}Object.defineProperty(exports,${_}k,${_}{${n}` +
15122
+ `${t}${t}enumerable:${_}true,${n}` +
15123
+ `${t}${t}value:${_}${name}[k]${n}${t}})${_}:${_}exports[k]${_}=${_}${name}[k]`);
15108
15124
  };
15109
15125
 
15110
15126
  function getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, indent, snippets) {
@@ -15613,14 +15629,16 @@ function analyzeDependencies(dependencies, exports, t, { _, cnst, getObject, get
15613
15629
  }
15614
15630
  }
15615
15631
  if (reexportedNames.length > 1 || hasStarReexport) {
15616
- const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
15617
15632
  if (hasStarReexport) {
15618
15633
  if (!starExcludes) {
15619
15634
  starExcludes = getStarExcludes({ dependencies, exports });
15620
15635
  }
15636
+ reexportedNames.unshift([null, `__proto__:${_}null`]);
15637
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
15621
15638
  setter.push(`${cnst} setter${_}=${_}${exportMapping};`, `for${_}(${cnst} name in module)${_}{`, `${t}if${_}(!_starExcludes[name])${_}setter[name]${_}=${_}module[name];`, '}', 'exports(setter);');
15622
15639
  }
15623
15640
  else {
15641
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
15624
15642
  setter.push(`exports(${exportMapping});`);
15625
15643
  }
15626
15644
  }
@@ -15646,9 +15664,19 @@ const getStarExcludes = ({ dependencies, exports }) => {
15646
15664
  }
15647
15665
  return starExcludes;
15648
15666
  };
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
- : '';
15667
+ const getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n }) => {
15668
+ if (starExcludes) {
15669
+ const fields = [...starExcludes].map(property => [
15670
+ property,
15671
+ '1'
15672
+ ]);
15673
+ fields.unshift([null, `__proto__:${_}null`]);
15674
+ return `${n}${t}${cnst} _starExcludes${_}=${_}${getObject(fields, {
15675
+ lineBreakIndent: { base: t, t }
15676
+ })};`;
15677
+ }
15678
+ return '';
15679
+ };
15652
15680
  const getImportBindingsBlock = (importBindings, t, { _, n }) => (importBindings.length > 0 ? `${n}${t}var ${importBindings.join(`,${_}`)};` : '');
15653
15681
  const getHoistedExportsBlock = (exports, t, snippets) => getExportsBlock(exports.filter(expt => expt.hoisted).map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
15654
15682
  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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4
4
+ Sat, 06 Jan 2024 06:38:31 GMT - commit 18372035f167ec104280e1e91ef795e4f7033f1e
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.4",
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.4",
105
+ "@rollup/rollup-android-arm64": "4.9.4",
106
+ "@rollup/rollup-win32-arm64-msvc": "4.9.4",
107
+ "@rollup/rollup-linux-arm64-gnu": "4.9.4",
108
+ "@rollup/rollup-linux-arm64-musl": "4.9.4",
109
+ "@rollup/rollup-android-arm-eabi": "4.9.4",
110
+ "@rollup/rollup-linux-arm-gnueabihf": "4.9.4",
111
+ "@rollup/rollup-win32-ia32-msvc": "4.9.4",
112
+ "@rollup/rollup-linux-riscv64-gnu": "4.9.4",
113
+ "@rollup/rollup-darwin-x64": "4.9.4",
114
+ "@rollup/rollup-win32-x64-msvc": "4.9.4",
115
+ "@rollup/rollup-linux-x64-gnu": "4.9.4",
116
+ "@rollup/rollup-linux-x64-musl": "4.9.4"
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": [