metro 0.84.0 → 0.84.2

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.
Files changed (101) hide show
  1. package/package.json +15 -14
  2. package/src/Assets.d.ts +90 -0
  3. package/src/Bundler/util.d.ts +34 -0
  4. package/src/Bundler.d.ts +45 -0
  5. package/src/DeltaBundler/DeltaCalculator.d.ts +78 -0
  6. package/src/DeltaBundler/Graph.d.ts +174 -0
  7. package/src/DeltaBundler/Serializers/baseJSBundle.d.ts +27 -0
  8. package/src/DeltaBundler/Serializers/getAllFiles.d.ts +29 -0
  9. package/src/DeltaBundler/Serializers/getAssets.d.ts +32 -0
  10. package/src/DeltaBundler/Serializers/getExplodedSourceMap.d.ts +33 -0
  11. package/src/DeltaBundler/Serializers/getRamBundleInfo.d.ts +55 -0
  12. package/src/DeltaBundler/Serializers/helpers/getInlineSourceMappingURL.d.ts +19 -0
  13. package/src/DeltaBundler/Serializers/helpers/getSourceMapInfo.d.ts +40 -0
  14. package/src/DeltaBundler/Serializers/helpers/getTransitiveDependencies.d.ts +24 -0
  15. package/src/DeltaBundler/Serializers/helpers/js.d.ts +37 -0
  16. package/src/DeltaBundler/Serializers/helpers/processModules.d.ts +32 -0
  17. package/src/DeltaBundler/Serializers/hmrJSBundle.d.ts +37 -0
  18. package/src/DeltaBundler/Serializers/sourceMapGenerator.d.ts +36 -0
  19. package/src/DeltaBundler/Serializers/sourceMapObject.d.ts +30 -0
  20. package/src/DeltaBundler/Serializers/sourceMapString.d.ts +29 -0
  21. package/src/DeltaBundler/Transformer.d.ts +45 -0
  22. package/src/DeltaBundler/Worker.d.ts +44 -0
  23. package/src/DeltaBundler/WorkerFarm.d.ts +77 -0
  24. package/src/DeltaBundler/buildSubgraph.d.ts +37 -0
  25. package/src/DeltaBundler/getTransformCacheKey.d.ts +25 -0
  26. package/src/DeltaBundler/mergeDeltas.d.ts +24 -0
  27. package/src/DeltaBundler/types.d.ts +170 -0
  28. package/src/DeltaBundler.d.ts +67 -0
  29. package/src/HmrServer.d.ts +86 -0
  30. package/src/IncrementalBundler/GraphNotFoundError.d.ts +24 -0
  31. package/src/IncrementalBundler/ResourceNotFoundError.d.ts +22 -0
  32. package/src/IncrementalBundler/RevisionNotFoundError.d.ts +24 -0
  33. package/src/IncrementalBundler.d.ts +103 -0
  34. package/src/ModuleGraph/worker/JsFileWrapping.d.ts +36 -0
  35. package/src/ModuleGraph/worker/collectDependencies.d.ts +138 -0
  36. package/src/ModuleGraph/worker/generateImportNames.d.ts +26 -0
  37. package/src/ModuleGraph/worker/importLocationsPlugin.d.ts +33 -0
  38. package/src/Server/MultipartResponse.d.ts +37 -0
  39. package/src/Server/symbolicate.d.ts +38 -0
  40. package/src/Server.d.ts +278 -0
  41. package/src/Server.js +10 -6
  42. package/src/Server.js.flow +9 -10
  43. package/src/cli/parseKeyValueParamArray.d.ts +21 -0
  44. package/src/cli-utils.d.ts +26 -0
  45. package/src/commands/build.d.ts +23 -0
  46. package/src/commands/dependencies.d.ts +23 -0
  47. package/src/commands/serve.d.ts +23 -0
  48. package/src/index.d.ts +187 -0
  49. package/src/index.flow.js +24 -10
  50. package/src/index.flow.js.flow +25 -10
  51. package/src/lib/BatchProcessor.d.ts +61 -0
  52. package/src/lib/CountingSet.d.ts +55 -0
  53. package/src/lib/JsonReporter.d.ts +44 -0
  54. package/src/lib/RamBundleParser.d.ts +36 -0
  55. package/src/lib/TerminalReporter.d.ts +125 -0
  56. package/src/lib/TerminalReporter.js +6 -7
  57. package/src/lib/TerminalReporter.js.flow +6 -15
  58. package/src/lib/bundleProgressUtils.d.ts +33 -0
  59. package/src/lib/bundleProgressUtils.js +19 -0
  60. package/src/lib/bundleProgressUtils.js.flow +35 -0
  61. package/src/lib/bundleToString.d.ts +26 -0
  62. package/src/lib/contextModule.d.ts +40 -0
  63. package/src/lib/contextModuleTemplates.d.ts +32 -0
  64. package/src/lib/countLines.d.ts +19 -0
  65. package/src/lib/createWebsocketServer.d.ts +50 -0
  66. package/src/lib/debounceAsyncQueue.d.ts +22 -0
  67. package/src/lib/formatBundlingError.d.ts +30 -0
  68. package/src/lib/getAppendScripts.d.ts +38 -0
  69. package/src/lib/getGraphId.d.ts +32 -0
  70. package/src/lib/getPreludeCode.d.ts +25 -0
  71. package/src/lib/getPrependedScripts.d.ts +31 -0
  72. package/src/lib/isResolvedDependency.d.ts +22 -0
  73. package/src/lib/logToConsole.d.ts +26 -0
  74. package/src/lib/parseBundleOptionsFromBundleRequestUrl.d.ts +24 -0
  75. package/src/lib/parseCustomResolverOptions.d.ts +23 -0
  76. package/src/lib/parseCustomTransformOptions.d.ts +23 -0
  77. package/src/lib/parseJsonBody.d.ts +34 -0
  78. package/src/lib/pathUtils.d.ts +21 -0
  79. package/src/lib/relativizeSourceMap.d.ts +24 -0
  80. package/src/lib/reporting.d.ts +135 -0
  81. package/src/lib/splitBundleOptions.d.ts +23 -0
  82. package/src/lib/transformHelpers.d.ts +42 -0
  83. package/src/node-haste/DependencyGraph/ModuleResolution.d.ts +133 -0
  84. package/src/node-haste/DependencyGraph/createFileMap.d.ts +36 -0
  85. package/src/node-haste/DependencyGraph.d.ts +93 -0
  86. package/src/node-haste/Package.d.ts +28 -0
  87. package/src/node-haste/PackageCache.d.ts +41 -0
  88. package/src/node-haste/lib/AssetPaths.d.ts +36 -0
  89. package/src/node-haste/lib/parsePlatformFilePath.d.ts +32 -0
  90. package/src/shared/output/RamBundle/as-assets.d.ts +32 -0
  91. package/src/shared/output/RamBundle/as-indexed-file.d.ts +45 -0
  92. package/src/shared/output/RamBundle/buildSourcemapWithMetadata.d.ts +30 -0
  93. package/src/shared/output/RamBundle/magic-number.d.ts +21 -0
  94. package/src/shared/output/RamBundle/util.d.ts +48 -0
  95. package/src/shared/output/RamBundle/write-sourcemap.d.ts +23 -0
  96. package/src/shared/output/RamBundle.d.ts +33 -0
  97. package/src/shared/output/bundle.d.ts +34 -0
  98. package/src/shared/output/meta.d.ts +22 -0
  99. package/src/shared/output/unbundle.d.ts +18 -0
  100. package/src/shared/output/writeFile.d.ts +23 -0
  101. package/src/shared/types.d.ts +152 -0
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<669a46ab2a802ea2b93d98edf337fff0>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/RamBundle/buildSourcemapWithMetadata.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ import type {ModuleGroups, ModuleTransportLike} from '../../types';
19
+ import type {IndexMap} from 'metro-source-map';
20
+
21
+ type Params = {
22
+ fixWrapperOffset: boolean;
23
+ lazyModules: ReadonlyArray<ModuleTransportLike>;
24
+ moduleGroups: null | undefined | ModuleGroups;
25
+ startupModules: ReadonlyArray<ModuleTransportLike>;
26
+ };
27
+ declare const $$EXPORT_DEFAULT_DECLARATION$$: ($$PARAM_0$$: Params) => IndexMap;
28
+ declare type $$EXPORT_DEFAULT_DECLARATION$$ =
29
+ typeof $$EXPORT_DEFAULT_DECLARATION$$;
30
+ export default $$EXPORT_DEFAULT_DECLARATION$$;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<94cd41a2f04528e81f82e6c2feadaf52>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/RamBundle/magic-number.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ declare const $$EXPORT_DEFAULT_DECLARATION$$: 0xfb0bd1e5;
19
+ declare type $$EXPORT_DEFAULT_DECLARATION$$ =
20
+ typeof $$EXPORT_DEFAULT_DECLARATION$$;
21
+ export default $$EXPORT_DEFAULT_DECLARATION$$;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<cb3371e2f23da9cd30e08ed76ec4f7db>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/RamBundle/util.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ import type {ModuleGroups, ModuleTransportLike} from '../../types';
19
+ import type {BasicSourceMap, IndexMap} from 'metro-source-map';
20
+
21
+ import countLines from '../../../lib/countLines';
22
+
23
+ declare function lineToLineSourceMap(
24
+ source: string,
25
+ filename?: string,
26
+ ): BasicSourceMap;
27
+ type CombineOptions = {fixWrapperOffset: boolean};
28
+ declare function combineSourceMaps(
29
+ modules: ReadonlyArray<ModuleTransportLike>,
30
+ moduleGroups?: ModuleGroups,
31
+ options?: null | undefined | CombineOptions,
32
+ ): IndexMap;
33
+ declare function combineSourceMapsAddingOffsets(
34
+ modules: ReadonlyArray<ModuleTransportLike>,
35
+ x_metro_module_paths: Array<string>,
36
+ moduleGroups?: null | undefined | ModuleGroups,
37
+ options?: null | undefined | CombineOptions,
38
+ ): IndexMap;
39
+ declare const joinModules: (
40
+ modules: ReadonlyArray<{readonly code: string}>,
41
+ ) => string;
42
+ export {
43
+ combineSourceMaps,
44
+ combineSourceMapsAddingOffsets,
45
+ countLines,
46
+ joinModules,
47
+ lineToLineSourceMap,
48
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<000f29900c01342de92d247507075575>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/RamBundle/write-sourcemap.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ declare function writeSourcemap(
19
+ fileName: string,
20
+ contents: string,
21
+ log: (...args: Array<string>) => void,
22
+ ): Promise<unknown>;
23
+ export default writeSourcemap;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<bef82861a3de459220bf62515fd5900c>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/RamBundle.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ import type {RamBundleInfo} from '../../DeltaBundler/Serializers/getRamBundleInfo';
19
+ import type {OutputOptions, RequestOptions} from '../types';
20
+
21
+ import Server from '../../Server';
22
+
23
+ export declare function build(
24
+ packagerClient: Server,
25
+ requestOptions: RequestOptions,
26
+ ): Promise<RamBundleInfo>;
27
+ export declare function save(
28
+ bundle: RamBundleInfo,
29
+ options: OutputOptions,
30
+ log: (x: string) => void,
31
+ ): Promise<unknown>;
32
+ export declare const formatName: 'bundle';
33
+ export declare type formatName = typeof formatName;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<d9877b2ba27e8e3f279901c80c7ad895>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/bundle.flow.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ import type {AssetData} from '../../Assets';
19
+ import type {BuildOptions, OutputOptions, RequestOptions} from '../types';
20
+
21
+ import Server from '../../Server';
22
+
23
+ export declare function build(
24
+ packagerClient: Server,
25
+ requestOptions: RequestOptions,
26
+ buildOptions?: BuildOptions,
27
+ ): Promise<{code: string; map: string; assets?: ReadonlyArray<AssetData>}>;
28
+ export declare function save(
29
+ bundle: {code: string; map: string},
30
+ options: OutputOptions,
31
+ log: ($$PARAM_0$$: string) => void,
32
+ ): Promise<unknown>;
33
+ export declare const formatName: 'bundle';
34
+ export declare type formatName = typeof formatName;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<17ae3fc242dc6b3915a72d04dad032b8>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/meta.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ declare function meta(
19
+ code: Buffer | string,
20
+ encoding?: 'ascii' | 'utf16le' | 'utf8',
21
+ ): Buffer;
22
+ export default meta;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<12b27507f799c8170067738c227bb2f3>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/unbundle.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ export * from './RamBundle';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<37de849e415f8aa1e94b73289a573ee3>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/output/writeFile.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ declare function writeFile(
19
+ filePath: string,
20
+ data: string | Buffer | Uint8Array,
21
+ encoding?: string,
22
+ ): Promise<void>;
23
+ export default writeFile;
@@ -0,0 +1,152 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @noformat
8
+ * @oncall react_native
9
+ * @generated SignedSource<<31593693c0cafcd55eaf4885efddc6be>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/shared/types.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
16
+ */
17
+
18
+ import type {
19
+ Options as DeltaBundlerOptions,
20
+ TransformInputOptions,
21
+ } from '../DeltaBundler/types';
22
+ import type {TransformProfile} from 'metro-babel-transformer';
23
+ import type {CustomResolverOptions} from 'metro-resolver';
24
+ import type {
25
+ MetroSourceMapSegmentTuple,
26
+ MixedSourceMap,
27
+ } from 'metro-source-map';
28
+ import type {
29
+ CustomTransformOptions,
30
+ MinifierOptions,
31
+ } from 'metro-transform-worker';
32
+
33
+ type MetroSourceMapOrMappings =
34
+ | MixedSourceMap
35
+ | Array<MetroSourceMapSegmentTuple>;
36
+ export declare enum SourcePathsMode {
37
+ Absolute = 'absolute',
38
+ ServerUrl = 'url-server',
39
+ }
40
+ export declare namespace SourcePathsMode {
41
+ export function cast(value: string | null | undefined): SourcePathsMode;
42
+ export function isValid(
43
+ value: string | null | undefined,
44
+ ): value is SourcePathsMode;
45
+ export function members(): IterableIterator<SourcePathsMode>;
46
+ export function getName(value: SourcePathsMode): string;
47
+ }
48
+ export type ReadonlySourceLocation = Readonly<{
49
+ start: Readonly<{line: number; column: number}>;
50
+ end: Readonly<{line: number; column: number}>;
51
+ }>;
52
+ export type BundleOptions = {
53
+ readonly customResolverOptions: CustomResolverOptions;
54
+ customTransformOptions: CustomTransformOptions;
55
+ dev: boolean;
56
+ entryFile: string;
57
+ readonly excludeSource: boolean;
58
+ readonly inlineSourceMap: boolean;
59
+ readonly lazy: boolean;
60
+ minify: boolean;
61
+ readonly modulesOnly: boolean;
62
+ onProgress:
63
+ | null
64
+ | undefined
65
+ | ((doneCont: number, totalCount: number) => unknown);
66
+ readonly platform: null | undefined | string;
67
+ readonly runModule: boolean;
68
+ readonly shallow: boolean;
69
+ sourceMapUrl: null | undefined | string;
70
+ sourceUrl: null | undefined | string;
71
+ createModuleIdFactory?: () => (path: string) => number;
72
+ readonly unstable_transformProfile: TransformProfile;
73
+ readonly sourcePaths: SourcePathsMode;
74
+ };
75
+ export type BuildOptions = Readonly<{withAssets?: boolean}>;
76
+ export type ResolverInputOptions = Readonly<{
77
+ customResolverOptions?: CustomResolverOptions;
78
+ dev: boolean;
79
+ }>;
80
+ export type SerializerOptions = {
81
+ readonly sourceMapUrl: null | undefined | string;
82
+ readonly sourceUrl: null | undefined | string;
83
+ readonly runModule: boolean;
84
+ readonly excludeSource: boolean;
85
+ readonly inlineSourceMap: boolean;
86
+ readonly modulesOnly: boolean;
87
+ readonly sourcePaths: SourcePathsMode;
88
+ };
89
+ export type GraphOptions = {
90
+ readonly lazy: boolean;
91
+ readonly shallow: boolean;
92
+ };
93
+ export type SplitBundleOptions = Readonly<{
94
+ entryFile: string;
95
+ resolverOptions: ResolverInputOptions;
96
+ transformOptions: TransformInputOptions;
97
+ serializerOptions: SerializerOptions;
98
+ graphOptions: GraphOptions;
99
+ onProgress: DeltaBundlerOptions['onProgress'];
100
+ }>;
101
+ export type ModuleGroups = {
102
+ groups: Map<number, Set<number>>;
103
+ modulesById: Map<number, ModuleTransportLike>;
104
+ modulesInGroups: Set<number>;
105
+ };
106
+ export type ModuleTransportLike = {
107
+ readonly code: string;
108
+ readonly id: number;
109
+ readonly map: null | undefined | MetroSourceMapOrMappings;
110
+ readonly name?: string;
111
+ readonly sourcePath: string;
112
+ };
113
+ export type ModuleTransportLikeStrict = {
114
+ readonly code: string;
115
+ readonly id: number;
116
+ readonly map: null | undefined | MetroSourceMapOrMappings;
117
+ readonly name?: string;
118
+ readonly sourcePath: string;
119
+ };
120
+ export type RamModuleTransport = Omit<
121
+ ModuleTransportLikeStrict,
122
+ keyof {readonly source: string; readonly type: string}
123
+ > & {readonly source: string; readonly type: string};
124
+ export type OutputOptions = {
125
+ bundleOutput: string;
126
+ bundleEncoding?: 'utf8' | 'utf16le' | 'ascii';
127
+ dev?: boolean;
128
+ indexedRamBundle?: boolean;
129
+ platform: string;
130
+ sourcemapOutput?: string;
131
+ sourcemapSourcesRoot?: string;
132
+ sourcemapUseAbsolutePath?: boolean;
133
+ };
134
+ type SafeOptionalProps<T> = {
135
+ [K in keyof T]: T[K] extends void ? void | T[K] : T[K];
136
+ };
137
+ export type RequestOptions = Readonly<
138
+ SafeOptionalProps<{
139
+ entryFile: string;
140
+ inlineSourceMap?: boolean;
141
+ sourceMapUrl?: string;
142
+ dev?: boolean;
143
+ minify: boolean;
144
+ platform: string;
145
+ createModuleIdFactory?: () => (path: string) => number;
146
+ onProgress?: (transformedFileCount: number, totalFileCount: number) => void;
147
+ customResolverOptions?: CustomResolverOptions;
148
+ customTransformOptions?: CustomTransformOptions;
149
+ unstable_transformProfile?: TransformProfile;
150
+ }>
151
+ >;
152
+ export type {MinifierOptions};