rollup 4.0.0-2 → 4.0.0-20

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 v4.0.0-2
4
- Tue, 01 Aug 2023 11:16:13 GMT - commit d62558dbc45912c9c4478dc761bb290738c3b968
3
+ Rollup.js v4.0.0-20
4
+ Sun, 24 Sep 2023 06:09:55 GMT - commit 9d6dc574c6dca3d85e9eda512b09797a6d15462f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import { resolve } from 'node:path';
11
11
  import process$1 from 'node:process';
12
- import { getDefaultExportFromCjs, picomatch as picomatch$2, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './node-entry.js';
12
+ import { picomatch as picomatch$2, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './node-entry.js';
13
13
  import { platform } from 'node:os';
14
14
  import require$$0$1 from 'fs';
15
15
  import require$$2 from 'util';
@@ -19,7 +19,7 @@ import require$$2$1 from 'os';
19
19
  import require$$0$3 from 'events';
20
20
  import 'node:perf_hooks';
21
21
  import 'node:crypto';
22
- import './native';
22
+ import '../../native.js';
23
23
  import 'node:fs/promises';
24
24
  import 'tty';
25
25
 
@@ -311,8 +311,6 @@ readdirp$1.default = readdirp$1;
311
311
 
312
312
  var readdirp_1 = readdirp$1;
313
313
 
314
- /*@__PURE__*/getDefaultExportFromCjs(readdirp_1);
315
-
316
314
  var anymatch$2 = {exports: {}};
317
315
 
318
316
  /*!
@@ -351,8 +349,6 @@ var normalizePath$2 = function(path, stripTrailing) {
351
349
  return prefix + segs.join('/');
352
350
  };
353
351
 
354
- /*@__PURE__*/getDefaultExportFromCjs(normalizePath$2);
355
-
356
352
  var anymatch_1 = anymatch$2.exports;
357
353
 
358
354
  Object.defineProperty(anymatch_1, "__esModule", { value: true });
@@ -459,7 +455,6 @@ anymatch$1.default = anymatch$1;
459
455
  anymatch$2.exports = anymatch$1;
460
456
 
461
457
  var anymatchExports = anymatch$2.exports;
462
- /*@__PURE__*/getDefaultExportFromCjs(anymatchExports);
463
458
 
464
459
  /*!
465
460
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
@@ -482,8 +477,6 @@ var isExtglob$1 = function isExtglob(str) {
482
477
  return false;
483
478
  };
484
479
 
485
- /*@__PURE__*/getDefaultExportFromCjs(isExtglob$1);
486
-
487
480
  /*!
488
481
  * is-glob <https://github.com/jonschlinkert/is-glob>
489
482
  *
@@ -635,8 +628,6 @@ var isGlob$2 = function isGlob(str, options) {
635
628
  return check(str);
636
629
  };
637
630
 
638
- /*@__PURE__*/getDefaultExportFromCjs(isGlob$2);
639
-
640
631
  var isGlob$1 = isGlob$2;
641
632
  var pathPosixDirname = require$$0$2.posix.dirname;
642
633
  var isWin32 = require$$2$1.platform() === 'win32';
@@ -678,8 +669,6 @@ var globParent$1 = function globParent(str, opts) {
678
669
  return str.replace(escaped, '$1');
679
670
  };
680
671
 
681
- /*@__PURE__*/getDefaultExportFromCjs(globParent$1);
682
-
683
672
  var utils$3 = {};
684
673
 
685
674
  (function (exports) {
@@ -796,8 +785,6 @@ var utils$3 = {};
796
785
  };
797
786
  } (utils$3));
798
787
 
799
- /*@__PURE__*/getDefaultExportFromCjs(utils$3);
800
-
801
788
  const utils$2 = utils$3;
802
789
 
803
790
  var stringify$4 = (ast, options = {}) => {
@@ -828,8 +815,6 @@ var stringify$4 = (ast, options = {}) => {
828
815
  return stringify(ast);
829
816
  };
830
817
 
831
- /*@__PURE__*/getDefaultExportFromCjs(stringify$4);
832
-
833
818
  /*!
834
819
  * is-number <https://github.com/jonschlinkert/is-number>
835
820
  *
@@ -847,8 +832,6 @@ var isNumber$2 = function(num) {
847
832
  return false;
848
833
  };
849
834
 
850
- /*@__PURE__*/getDefaultExportFromCjs(isNumber$2);
851
-
852
835
  /*!
853
836
  * to-regex-range <https://github.com/micromatch/to-regex-range>
854
837
  *
@@ -1136,8 +1119,6 @@ toRegexRange$1.clearCache = () => (toRegexRange$1.cache = {});
1136
1119
 
1137
1120
  var toRegexRange_1 = toRegexRange$1;
1138
1121
 
1139
- /*@__PURE__*/getDefaultExportFromCjs(toRegexRange_1);
1140
-
1141
1122
  /*!
1142
1123
  * fill-range <https://github.com/jonschlinkert/fill-range>
1143
1124
  *
@@ -1386,8 +1367,6 @@ const fill$2 = (start, end, step, options = {}) => {
1386
1367
 
1387
1368
  var fillRange = fill$2;
1388
1369
 
1389
- /*@__PURE__*/getDefaultExportFromCjs(fillRange);
1390
-
1391
1370
  const fill$1 = fillRange;
1392
1371
  const utils$1 = utils$3;
1393
1372
 
@@ -1444,8 +1423,6 @@ const compile$1 = (ast, options = {}) => {
1444
1423
 
1445
1424
  var compile_1 = compile$1;
1446
1425
 
1447
- /*@__PURE__*/getDefaultExportFromCjs(compile_1);
1448
-
1449
1426
  const fill = fillRange;
1450
1427
  const stringify$2 = stringify$4;
1451
1428
  const utils = utils$3;
@@ -1558,8 +1535,6 @@ const expand$1 = (ast, options = {}) => {
1558
1535
 
1559
1536
  var expand_1 = expand$1;
1560
1537
 
1561
- /*@__PURE__*/getDefaultExportFromCjs(expand_1);
1562
-
1563
1538
  var constants$1 = {
1564
1539
  MAX_LENGTH: 1024 * 64,
1565
1540
 
@@ -1616,8 +1591,6 @@ var constants$1 = {
1616
1591
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */
1617
1592
  };
1618
1593
 
1619
- /*@__PURE__*/getDefaultExportFromCjs(constants$1);
1620
-
1621
1594
  const stringify$1 = stringify$4;
1622
1595
 
1623
1596
  /**
@@ -1947,8 +1920,6 @@ const parse$1 = (input, options = {}) => {
1947
1920
 
1948
1921
  var parse_1 = parse$1;
1949
1922
 
1950
- /*@__PURE__*/getDefaultExportFromCjs(parse_1);
1951
-
1952
1923
  const stringify = stringify$4;
1953
1924
  const compile = compile_1;
1954
1925
  const expand = expand_1;
@@ -2118,8 +2089,6 @@ braces$1.create = (input, options = {}) => {
2118
2089
 
2119
2090
  var braces_1 = braces$1;
2120
2091
 
2121
- /*@__PURE__*/getDefaultExportFromCjs(braces_1);
2122
-
2123
2092
  const require$$0 = [
2124
2093
  "3dm",
2125
2094
  "3ds",
@@ -2383,8 +2352,6 @@ const require$$0 = [
2383
2352
 
2384
2353
  var binaryExtensions$1 = require$$0;
2385
2354
 
2386
- /*@__PURE__*/getDefaultExportFromCjs(binaryExtensions$1);
2387
-
2388
2355
  const path = require$$0$2;
2389
2356
  const binaryExtensions = binaryExtensions$1;
2390
2357
 
@@ -2392,8 +2359,6 @@ const extensions = new Set(binaryExtensions);
2392
2359
 
2393
2360
  var isBinaryPath$1 = filePath => extensions.has(path.extname(filePath).slice(1).toLowerCase());
2394
2361
 
2395
- /*@__PURE__*/getDefaultExportFromCjs(isBinaryPath$1);
2396
-
2397
2362
  var constants = {};
2398
2363
 
2399
2364
  (function (exports) {
@@ -2463,8 +2428,6 @@ var constants = {};
2463
2428
  exports.isIBMi = os.type() === 'OS400';
2464
2429
  } (constants));
2465
2430
 
2466
- /*@__PURE__*/getDefaultExportFromCjs(constants);
2467
-
2468
2431
  const fs$2 = require$$0$1;
2469
2432
  const sysPath$2 = require$$0$2;
2470
2433
  const { promisify: promisify$2 } = require$$2;
@@ -3108,8 +3071,6 @@ async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
3108
3071
 
3109
3072
  var nodefsHandler = NodeFsHandler$1;
3110
3073
 
3111
- /*@__PURE__*/getDefaultExportFromCjs(nodefsHandler);
3112
-
3113
3074
  var fseventsHandler = {exports: {}};
3114
3075
 
3115
3076
  const require$$3 = /*@__PURE__*/getAugmentedNamespace(fseventsImporter);
@@ -3638,7 +3599,6 @@ fseventsHandler.exports = FsEventsHandler$1;
3638
3599
  fseventsHandler.exports.canUse = canUse;
3639
3600
 
3640
3601
  var fseventsHandlerExports = fseventsHandler.exports;
3641
- /*@__PURE__*/getDefaultExportFromCjs(fseventsHandlerExports);
3642
3602
 
3643
3603
  const { EventEmitter } = require$$0$3;
3644
3604
  const fs = require$$0$1;
@@ -4666,7 +4626,6 @@ class FileWatcher {
4666
4626
  return watcher;
4667
4627
  }
4668
4628
  }
4669
- //# sourceMappingURL=fileWatcher.js.map
4670
4629
 
4671
4630
  const eventsRewrites = {
4672
4631
  create: {
@@ -4895,6 +4854,5 @@ class Task {
4895
4854
  this.fileWatcher.watch(id, isTransformDependency);
4896
4855
  }
4897
4856
  }
4898
- //# sourceMappingURL=watch.js.map
4899
4857
 
4900
4858
  export { Task, Watcher };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-2
4
- Tue, 01 Aug 2023 11:16:13 GMT - commit d62558dbc45912c9c4478dc761bb290738c3b968
3
+ Rollup.js v4.0.0-20
4
+ Sun, 24 Sep 2023 06:09:55 GMT - commit 9d6dc574c6dca3d85e9eda512b09797a6d15462f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -64,7 +64,6 @@ const testFilter = (log, key, parts) => {
64
64
  }
65
65
  return value.endsWith(parts[lastPartIndex]);
66
66
  };
67
- //# sourceMappingURL=getLogFilter.js.map
68
67
 
69
68
  exports.getLogFilter = getLogFilter;
70
69
  //# sourceMappingURL=getLogFilter.js.map
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-2
4
- Tue, 01 Aug 2023 11:16:13 GMT - commit d62558dbc45912c9c4478dc761bb290738c3b968
3
+ Rollup.js v4.0.0-20
4
+ Sun, 24 Sep 2023 06:09:55 GMT - commit 9d6dc574c6dca3d85e9eda512b09797a6d15462f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -21,7 +21,7 @@ require('tty');
21
21
  require('path');
22
22
  require('node:perf_hooks');
23
23
  require('node:crypto');
24
- require('./native');
24
+ require('./native.js');
25
25
  require('./getLogFilter.js');
26
26
 
27
27
 
package/dist/rollup.d.ts CHANGED
@@ -15,8 +15,6 @@ export interface RollupError extends RollupLog {
15
15
  watchFiles?: string[];
16
16
  }
17
17
 
18
- export type RollupWarning = RollupLog;
19
-
20
18
  export interface RollupLog {
21
19
  binding?: string;
22
20
  cause?: unknown;
@@ -52,7 +50,7 @@ export type SourceMapSegment =
52
50
 
53
51
  export interface ExistingDecodedSourceMap {
54
52
  file?: string;
55
- mappings: SourceMapSegment[][];
53
+ readonly mappings: SourceMapSegment[][];
56
54
  names: string[];
57
55
  sourceRoot?: string;
58
56
  sources: string[];
@@ -74,11 +72,10 @@ export interface ExistingRawSourceMap {
74
72
 
75
73
  export type DecodedSourceMapOrMissing =
76
74
  | {
77
- mappings?: never;
78
75
  missing: true;
79
76
  plugin: string;
80
77
  }
81
- | ExistingDecodedSourceMap;
78
+ | (ExistingDecodedSourceMap & { missing?: false });
82
79
 
83
80
  export interface SourceMap {
84
81
  file: string;
@@ -94,20 +91,20 @@ export interface SourceMap {
94
91
  export type SourceMapInput = ExistingRawSourceMap | string | null | { mappings: '' };
95
92
 
96
93
  interface ModuleOptions {
97
- assertions: Record<string, string>;
94
+ attributes: Record<string, string>;
98
95
  meta: CustomPluginOptions;
99
96
  moduleSideEffects: boolean | 'no-treeshake';
100
97
  syntheticNamedExports: boolean | string;
101
98
  }
102
99
 
103
100
  export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
104
- ast?: AcornNode;
101
+ ast?: AstNode;
105
102
  code: string;
106
103
  map?: SourceMapInput;
107
104
  }
108
105
 
109
106
  export interface TransformModuleJSON {
110
- ast?: AcornNode;
107
+ ast?: AstNode;
111
108
  code: string;
112
109
  // note if plugins use new this.cache to opt-out auto transform cache
113
110
  customTransformCache: boolean;
@@ -118,7 +115,7 @@ export interface TransformModuleJSON {
118
115
  }
119
116
 
120
117
  export interface ModuleJSON extends TransformModuleJSON, ModuleOptions {
121
- ast: AcornNode;
118
+ ast: AstNode;
122
119
  dependencies: string[];
123
120
  id: string;
124
121
  resolvedIds: ResolvedIdMap;
@@ -165,6 +162,7 @@ export interface EmittedPrebuiltChunk {
165
162
  exports?: string[];
166
163
  fileName: string;
167
164
  map?: SourceMap;
165
+ sourcemapFileName?: string;
168
166
  type: 'prebuilt-chunk';
169
167
  }
170
168
 
@@ -173,7 +171,7 @@ export type EmittedFile = EmittedAsset | EmittedChunk | EmittedPrebuiltChunk;
173
171
  export type EmitFile = (emittedFile: EmittedFile) => string;
174
172
 
175
173
  interface ModuleInfo extends ModuleOptions {
176
- ast: AcornNode | null;
174
+ ast: AstNode | null;
177
175
  code: string | null;
178
176
  dynamicImporters: readonly string[];
179
177
  dynamicallyImportedIdResolutions: readonly ResolvedId[];
@@ -181,8 +179,6 @@ interface ModuleInfo extends ModuleOptions {
181
179
  exportedBindings: Record<string, string[]> | null;
182
180
  exports: string[] | null;
183
181
  hasDefaultExport: boolean | null;
184
- /** @deprecated Use `moduleSideEffects` instead */
185
- hasModuleSideEffects: boolean | 'no-treeshake';
186
182
  id: string;
187
183
  implicitlyLoadedAfterOneOf: readonly string[];
188
184
  implicitlyLoadedBefore: readonly string[];
@@ -219,14 +215,12 @@ export interface PluginContext extends MinimalPluginContext {
219
215
  load: (
220
216
  options: { id: string; resolveDependencies?: boolean } & Partial<PartialNull<ModuleOptions>>
221
217
  ) => Promise<ModuleInfo>;
222
- /** @deprecated Use `this.getModuleIds` instead */
223
- moduleIds: IterableIterator<string>;
224
- parse: (input: string, options?: any) => AcornNode;
218
+ parse: (input: string) => AstNode;
225
219
  resolve: (
226
220
  source: string,
227
221
  importer?: string,
228
222
  options?: {
229
- assertions?: Record<string, string>;
223
+ attributes?: Record<string, string>;
230
224
  custom?: CustomPluginOptions;
231
225
  isEntry?: boolean;
232
226
  skipSelf?: boolean;
@@ -265,13 +259,13 @@ export type ResolveIdHook = (
265
259
  this: PluginContext,
266
260
  source: string,
267
261
  importer: string | undefined,
268
- options: { assertions: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean }
262
+ options: { attributes: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean }
269
263
  ) => ResolveIdResult;
270
264
 
271
265
  export type ShouldTransformCachedModuleHook = (
272
266
  this: PluginContext,
273
267
  options: {
274
- ast: AcornNode;
268
+ ast: AstNode;
275
269
  code: string;
276
270
  id: string;
277
271
  meta: CustomPluginOptions;
@@ -287,8 +281,6 @@ export type IsExternal = (
287
281
  isResolved: boolean
288
282
  ) => boolean;
289
283
 
290
- export type IsPureModule = (id: string) => boolean | NullValue;
291
-
292
284
  export type HasModuleSideEffects = (id: string, external: boolean) => boolean;
293
285
 
294
286
  export type LoadResult = SourceDescription | string | NullValue;
@@ -323,9 +315,9 @@ export type RenderChunkHook = (
323
315
 
324
316
  export type ResolveDynamicImportHook = (
325
317
  this: PluginContext,
326
- specifier: string | AcornNode,
318
+ specifier: string | AstNode,
327
319
  importer: string,
328
- options: { assertions: Record<string, string> }
320
+ options: { attributes: Record<string, string> }
329
321
  ) => ResolveIdResult;
330
322
 
331
323
  export type ResolveImportMetaHook = (
@@ -370,7 +362,7 @@ export type WatchChangeHook = (
370
362
  * ```
371
363
  */
372
364
  // eslint-disable-next-line @typescript-eslint/ban-types
373
- export type PluginImpl<O extends object = object> = (options?: O) => Plugin;
365
+ export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;
374
366
 
375
367
  export interface OutputBundle {
376
368
  [fileName: string]: OutputAsset | OutputChunk;
@@ -498,12 +490,12 @@ export interface OutputPlugin
498
490
  version?: string;
499
491
  }
500
492
 
501
- export interface Plugin extends OutputPlugin, Partial<PluginHooks> {
493
+ export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
502
494
  // for inter-plugin communication
503
- api?: any;
495
+ api?: A;
504
496
  }
505
497
 
506
- type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
498
+ export type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
507
499
 
508
500
  export interface NormalizedTreeshakingOptions {
509
501
  annotations: boolean;
@@ -566,31 +558,21 @@ export type SourcemapIgnoreListOption = (
566
558
  export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputPluginOption[]>;
567
559
 
568
560
  export interface InputOptions {
569
- acorn?: Record<string, unknown>;
570
- acornInjectPlugins?: ((...arguments_: any[]) => unknown)[] | ((...arguments_: any[]) => unknown);
571
561
  cache?: boolean | RollupCache;
572
562
  context?: string;
573
563
  experimentalCacheExpiry?: number;
574
564
  experimentalLogSideEffects?: boolean;
575
565
  external?: ExternalOption;
576
- /** @deprecated Use the "inlineDynamicImports" output option instead. */
577
- inlineDynamicImports?: boolean;
578
566
  input?: InputOption;
579
567
  logLevel?: LogLevelOption;
580
568
  makeAbsoluteExternalsRelative?: boolean | 'ifRelativeSource';
581
- /** @deprecated Use the "manualChunks" output option instead. */
582
- manualChunks?: ManualChunksOption;
583
569
  maxParallelFileOps?: number;
584
- /** @deprecated Use the "maxParallelFileOps" option instead. */
585
- maxParallelFileReads?: number;
586
570
  moduleContext?: ((id: string) => string | NullValue) | { [id: string]: string };
587
571
  onLog?: LogHandlerWithDefault;
588
572
  onwarn?: WarningHandlerWithDefault;
589
573
  perf?: boolean;
590
574
  plugins?: InputPluginOption;
591
575
  preserveEntrySignatures?: PreserveEntrySignaturesOption;
592
- /** @deprecated Use the "preserveModules" output option instead. */
593
- preserveModules?: boolean;
594
576
  preserveSymlinks?: boolean;
595
577
  shimMissingExports?: boolean;
596
578
  strictDeprecations?: boolean;
@@ -603,31 +585,20 @@ export interface InputOptionsWithPlugins extends InputOptions {
603
585
  }
604
586
 
605
587
  export interface NormalizedInputOptions {
606
- acorn: Record<string, unknown>;
607
- acornInjectPlugins: (() => unknown)[];
608
588
  cache: false | undefined | RollupCache;
609
589
  context: string;
610
590
  experimentalCacheExpiry: number;
611
591
  experimentalLogSideEffects: boolean;
612
592
  external: IsExternal;
613
- /** @deprecated Use the "inlineDynamicImports" output option instead. */
614
- inlineDynamicImports: boolean | undefined;
615
593
  input: string[] | { [entryAlias: string]: string };
616
594
  logLevel: LogLevelOption;
617
595
  makeAbsoluteExternalsRelative: boolean | 'ifRelativeSource';
618
- /** @deprecated Use the "manualChunks" output option instead. */
619
- manualChunks: ManualChunksOption | undefined;
620
596
  maxParallelFileOps: number;
621
- /** @deprecated Use the "maxParallelFileOps" option instead. */
622
- maxParallelFileReads: number;
623
597
  moduleContext: (id: string) => string;
624
598
  onLog: LogHandler;
625
- onwarn: (warning: RollupLog) => void;
626
599
  perf: boolean;
627
600
  plugins: Plugin[];
628
601
  preserveEntrySignatures: PreserveEntrySignaturesOption;
629
- /** @deprecated Use the "preserveModules" output option instead. */
630
- preserveModules: boolean | undefined;
631
602
  preserveSymlinks: boolean;
632
603
  shimMissingExports: boolean;
633
604
  strictDeprecations: boolean;
@@ -703,17 +674,15 @@ export interface OutputOptions {
703
674
  compact?: boolean;
704
675
  // only required for bundle.write
705
676
  dir?: string;
706
- /** @deprecated Use the "renderDynamicImport" plugin hook instead. */
707
- dynamicImportFunction?: string;
708
677
  dynamicImportInCjs?: boolean;
709
678
  entryFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
710
679
  esModule?: boolean | 'if-default-prop';
711
- /** @deprecated This option is no longer needed and ignored. */
712
- experimentalDeepDynamicChunkOptimization?: boolean;
713
680
  experimentalMinChunkSize?: number;
714
681
  exports?: 'default' | 'named' | 'none' | 'auto';
715
682
  extend?: boolean;
683
+ /** @deprecated Use "externalImportAttributes" instead. */
716
684
  externalImportAssertions?: boolean;
685
+ externalImportAttributes?: boolean;
717
686
  externalLiveBindings?: boolean;
718
687
  // only required for bundle.write
719
688
  file?: string;
@@ -730,14 +699,10 @@ export interface OutputOptions {
730
699
  manualChunks?: ManualChunksOption;
731
700
  minifyInternalExports?: boolean;
732
701
  name?: string;
733
- /** @deprecated Use "generatedCode.symbols" instead. */
734
- namespaceToStringTag?: boolean;
735
702
  noConflict?: boolean;
736
703
  outro?: string | AddonFunction;
737
704
  paths?: OptionsPaths;
738
705
  plugins?: OutputPluginOption;
739
- /** @deprecated Use "generatedCode.constBindings" instead. */
740
- preferConst?: boolean;
741
706
  preserveModules?: boolean;
742
707
  preserveModulesRoot?: string;
743
708
  sanitizeFileName?: boolean | ((fileName: string) => string);
@@ -745,6 +710,7 @@ export interface OutputOptions {
745
710
  sourcemapBaseUrl?: string;
746
711
  sourcemapExcludeSources?: boolean;
747
712
  sourcemapFile?: string;
713
+ sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
748
714
  sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
749
715
  sourcemapPathTransform?: SourcemapPathTransformOption;
750
716
  strict?: boolean;
@@ -759,17 +725,15 @@ export interface NormalizedOutputOptions {
759
725
  chunkFileNames: string | ((chunkInfo: PreRenderedChunk) => string);
760
726
  compact: boolean;
761
727
  dir: string | undefined;
762
- /** @deprecated Use the "renderDynamicImport" plugin hook instead. */
763
- dynamicImportFunction: string | undefined;
764
728
  dynamicImportInCjs: boolean;
765
729
  entryFileNames: string | ((chunkInfo: PreRenderedChunk) => string);
766
730
  esModule: boolean | 'if-default-prop';
767
- /** @deprecated This option is no longer needed and ignored. */
768
- experimentalDeepDynamicChunkOptimization: boolean;
769
731
  experimentalMinChunkSize: number;
770
732
  exports: 'default' | 'named' | 'none' | 'auto';
771
733
  extend: boolean;
734
+ /** @deprecated Use "externalImportAttributes" instead. */
772
735
  externalImportAssertions: boolean;
736
+ externalImportAttributes: boolean;
773
737
  externalLiveBindings: boolean;
774
738
  file: string | undefined;
775
739
  footer: AddonFunction;
@@ -785,14 +749,10 @@ export interface NormalizedOutputOptions {
785
749
  manualChunks: ManualChunksOption;
786
750
  minifyInternalExports: boolean;
787
751
  name: string | undefined;
788
- /** @deprecated Use "generatedCode.symbols" instead. */
789
- namespaceToStringTag: boolean;
790
752
  noConflict: boolean;
791
753
  outro: AddonFunction;
792
754
  paths: OptionsPaths;
793
755
  plugins: OutputPlugin[];
794
- /** @deprecated Use "generatedCode.constBindings" instead. */
795
- preferConst: boolean;
796
756
  preserveModules: boolean;
797
757
  preserveModulesRoot: string | undefined;
798
758
  sanitizeFileName: (fileName: string) => string;
@@ -800,6 +760,7 @@ export interface NormalizedOutputOptions {
800
760
  sourcemapBaseUrl: string | undefined;
801
761
  sourcemapExcludeSources: boolean;
802
762
  sourcemapFile: string | undefined;
763
+ sourcemapFileNames: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
803
764
  sourcemapIgnoreList: SourcemapIgnoreListOption;
804
765
  sourcemapPathTransform: SourcemapPathTransformOption | undefined;
805
766
  strict: boolean;
@@ -828,7 +789,7 @@ export interface OutputAsset extends PreRenderedAsset {
828
789
  }
829
790
 
830
791
  export interface RenderedModule {
831
- code: string | null;
792
+ readonly code: string | null;
832
793
  originalLength: number;
833
794
  removedExports: string[];
834
795
  renderedExports: string[];
@@ -863,6 +824,8 @@ export interface RenderedChunk extends PreRenderedChunk {
863
824
  export interface OutputChunk extends RenderedChunk {
864
825
  code: string;
865
826
  map: SourceMap | null;
827
+ sourcemapFileName: string | null;
828
+ preliminaryFileName: string;
866
829
  }
867
830
 
868
831
  export interface SerializablePluginCache {
@@ -993,7 +956,7 @@ export type RollupWatcher = AwaitingEventEmitter<{
993
956
 
994
957
  export function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;
995
958
 
996
- interface AcornNode {
959
+ interface AstNode {
997
960
  end: number;
998
961
  start: number;
999
962
  type: string;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-2
4
- Tue, 01 Aug 2023 11:16:13 GMT - commit d62558dbc45912c9c4478dc761bb290738c3b968
3
+ Rollup.js v4.0.0-20
4
+ Sun, 24 Sep 2023 06:09:55 GMT - commit 9d6dc574c6dca3d85e9eda512b09797a6d15462f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -19,7 +19,7 @@ require('node:path');
19
19
  require('path');
20
20
  require('node:perf_hooks');
21
21
  require('node:crypto');
22
- require('./native');
22
+ require('./native.js');
23
23
  require('node:fs/promises');
24
24
  require('./shared/fsevents-importer.js');
25
25
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-2
4
- Tue, 01 Aug 2023 11:16:13 GMT - commit d62558dbc45912c9c4478dc761bb290738c3b968
3
+ Rollup.js v4.0.0-20
4
+ Sun, 24 Sep 2023 06:09:55 GMT - commit 9d6dc574c6dca3d85e9eda512b09797a6d15462f
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -25,7 +25,6 @@ function getFsEvents() {
25
25
  throw fsEventsImportError;
26
26
  return fsEvents;
27
27
  }
28
- //# sourceMappingURL=fsevents-importer.js.map
29
28
 
30
29
  const fseventsImporter = /*#__PURE__*/Object.defineProperty({
31
30
  __proto__: null,