rollup 3.15.1-1 → 3.17.0

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 v3.15.1-1
4
- Tue, 14 Feb 2023 09:30:15 GMT - commit 5e91b2d7a9f833cf9e11d98c96c4cba3fac195a4
3
+ Rollup.js v3.17.0
4
+ Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
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 { picomatchExports, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './rollup.js';
12
+ import { picomatchExports, 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';
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-1
4
- Tue, 14 Feb 2023 09:30:15 GMT - commit 5e91b2d7a9f833cf9e11d98c96c4cba3fac195a4
3
+ Rollup.js v3.17.0
4
+ Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -17,11 +17,11 @@ require('node:process');
17
17
  require('node:url');
18
18
  require('./shared/rollup.js');
19
19
  const loadConfigFile_js = require('./shared/loadConfigFile.js');
20
+ require('tty');
20
21
  require('path');
21
22
  require('node:perf_hooks');
22
23
  require('node:crypto');
23
24
  require('node:events');
24
- require('tty');
25
25
 
26
26
 
27
27
 
package/dist/rollup.d.ts CHANGED
@@ -54,6 +54,7 @@ export interface ExistingDecodedSourceMap {
54
54
  sources: string[];
55
55
  sourcesContent?: (string | null)[];
56
56
  version: number;
57
+ x_google_ignoreList?: number[];
57
58
  }
58
59
 
59
60
  export interface ExistingRawSourceMap {
@@ -64,6 +65,7 @@ export interface ExistingRawSourceMap {
64
65
  sources: string[];
65
66
  sourcesContent?: (string | null)[];
66
67
  version: number;
68
+ x_google_ignoreList?: number[];
67
69
  }
68
70
 
69
71
  export type DecodedSourceMapOrMissing =
@@ -507,13 +509,17 @@ export type SourcemapPathTransformOption = (
507
509
  relativeSourcePath: string,
508
510
  sourcemapPath: string
509
511
  ) => string;
512
+ export type SourcemapIgnoreListOption = (
513
+ relativeSourcePath: string,
514
+ sourcemapPath: string
515
+ ) => boolean;
510
516
 
511
517
  export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputPluginOption[]>;
512
518
 
513
519
  export interface InputOptions {
514
520
  acorn?: Record<string, unknown>;
515
521
  acornInjectPlugins?: (() => unknown)[] | (() => unknown);
516
- cache?: false | RollupCache;
522
+ cache?: boolean | RollupCache;
517
523
  context?: string;
518
524
  experimentalCacheExpiry?: number;
519
525
  external?: ExternalOption;
@@ -647,6 +653,7 @@ export interface OutputOptions {
647
653
  dynamicImportInCjs?: boolean;
648
654
  entryFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
649
655
  esModule?: boolean | 'if-default-prop';
656
+ /** @deprecated This option is no longer needed and ignored. */
650
657
  experimentalDeepDynamicChunkOptimization?: boolean;
651
658
  experimentalMinChunkSize?: number;
652
659
  exports?: 'default' | 'named' | 'none' | 'auto';
@@ -683,6 +690,7 @@ export interface OutputOptions {
683
690
  sourcemapBaseUrl?: string;
684
691
  sourcemapExcludeSources?: boolean;
685
692
  sourcemapFile?: string;
693
+ sourcemapIgnoreList?: SourcemapIgnoreListOption;
686
694
  sourcemapPathTransform?: SourcemapPathTransformOption;
687
695
  strict?: boolean;
688
696
  systemNullSetters?: boolean;
@@ -701,6 +709,7 @@ export interface NormalizedOutputOptions {
701
709
  dynamicImportInCjs: boolean;
702
710
  entryFileNames: string | ((chunkInfo: PreRenderedChunk) => string);
703
711
  esModule: boolean | 'if-default-prop';
712
+ /** @deprecated This option is no longer needed and ignored. */
704
713
  experimentalDeepDynamicChunkOptimization: boolean;
705
714
  experimentalMinChunkSize: number;
706
715
  exports: 'default' | 'named' | 'none' | 'auto';
@@ -736,6 +745,7 @@ export interface NormalizedOutputOptions {
736
745
  sourcemapBaseUrl: string | undefined;
737
746
  sourcemapExcludeSources: boolean;
738
747
  sourcemapFile: string | undefined;
748
+ sourcemapIgnoreList: SourcemapIgnoreListOption | undefined;
739
749
  sourcemapPathTransform: SourcemapPathTransformOption | undefined;
740
750
  strict: boolean;
741
751
  systemNullSetters: boolean;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-1
4
- Tue, 14 Feb 2023 09:30:15 GMT - commit 5e91b2d7a9f833cf9e11d98c96c4cba3fac195a4
3
+ Rollup.js v3.17.0
4
+ Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -12,19 +12,21 @@
12
12
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
13
13
 
14
14
  const rollup = require('./shared/rollup.js');
15
+ const watchProxy = require('./shared/watch-proxy.js');
16
+ require('node:process');
17
+ require('tty');
15
18
  require('node:path');
16
19
  require('path');
17
- require('node:process');
18
20
  require('node:perf_hooks');
19
21
  require('node:crypto');
20
22
  require('node:fs/promises');
21
23
  require('node:events');
22
- require('tty');
24
+ require('./shared/fsevents-importer.js');
23
25
 
24
26
 
25
27
 
26
28
  exports.VERSION = rollup.version;
27
29
  exports.defineConfig = rollup.defineConfig;
28
30
  exports.rollup = rollup.rollup;
29
- exports.watch = rollup.watch;
31
+ exports.watch = watchProxy.watch;
30
32
  //# sourceMappingURL=rollup.js.map
@@ -0,0 +1,37 @@
1
+ /*
2
+ @license
3
+ Rollup.js v3.17.0
4
+ Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
5
+
6
+ https://github.com/rollup/rollup
7
+
8
+ Released under the MIT License.
9
+ */
10
+ 'use strict';
11
+
12
+ let fsEvents;
13
+ let fsEventsImportError;
14
+ async function loadFsEvents() {
15
+ try {
16
+ ({ default: fsEvents } = await import('fsevents'));
17
+ }
18
+ catch (error) {
19
+ fsEventsImportError = error;
20
+ }
21
+ }
22
+ // A call to this function will be injected into the chokidar code
23
+ function getFsEvents() {
24
+ if (fsEventsImportError)
25
+ throw fsEventsImportError;
26
+ return fsEvents;
27
+ }
28
+
29
+ const fseventsImporter = /*#__PURE__*/Object.defineProperty({
30
+ __proto__: null,
31
+ getFsEvents,
32
+ loadFsEvents
33
+ }, Symbol.toStringTag, { value: 'Module' });
34
+
35
+ exports.fseventsImporter = fseventsImporter;
36
+ exports.loadFsEvents = loadFsEvents;
37
+ //# sourceMappingURL=fsevents-importer.js.map
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-1
4
- Tue, 14 Feb 2023 09:30:15 GMT - commit 5e91b2d7a9f833cf9e11d98c96c4cba3fac195a4
3
+ Rollup.js v3.17.0
4
+ Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,6 +15,7 @@ const require$$2 = require('util');
15
15
  const require$$1 = require('stream');
16
16
  const require$$0$2 = require('path');
17
17
  const require$$2$1 = require('os');
18
+ const fseventsImporter = require('./fsevents-importer.js');
18
19
  const require$$0$3 = require('events');
19
20
 
20
21
  var chokidar = {};
@@ -3079,7 +3080,7 @@ var fseventsHandler = {
3079
3080
  set exports(v){ fseventsHandlerExports = v; },
3080
3081
  };
3081
3082
 
3082
- const require$$3 = /*@__PURE__*/rollup.getAugmentedNamespace(rollup.fseventsImporter);
3083
+ const require$$3 = /*@__PURE__*/rollup.getAugmentedNamespace(fseventsImporter.fseventsImporter);
3083
3084
 
3084
3085
  const fs$1 = require$$0$1;
3085
3086
  const sysPath$1 = require$$0$2;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-1
4
- Tue, 14 Feb 2023 09:30:15 GMT - commit 5e91b2d7a9f833cf9e11d98c96c4cba3fac195a4
3
+ Rollup.js v3.17.0
4
+ Sat, 18 Feb 2023 05:06:04 GMT - commit 0c33497a7de91e150a7d242125e8da9dd4e4a3ac
5
5
 
6
6
  https://github.com/rollup/rollup
7
7