@module-federation/native-federation-tests 0.6.2 → 0.6.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.
Files changed (52) hide show
  1. package/dist/CHANGELOG.md +12 -0
  2. package/dist/HostOptions-DW6TkBZo.d.mts +21 -0
  3. package/dist/HostOptions-D_JYre2E.d.cts +21 -0
  4. package/dist/archiveHandler-Bz6yqu6A.mjs +1 -0
  5. package/dist/archiveHandler-DT43b-Nq.cjs +1 -0
  6. package/dist/esbuild.cjs +1 -0
  7. package/dist/esbuild.d.cts +618 -0
  8. package/dist/esbuild.d.mts +617 -6
  9. package/dist/esbuild.mjs +1 -1
  10. package/dist/farm.cjs +1 -0
  11. package/dist/{farm.d.ts → farm.d.cts} +4 -4
  12. package/dist/farm.d.mts +4 -4
  13. package/dist/farm.mjs +1 -1
  14. package/dist/index.cjs +1 -0
  15. package/dist/{index.d.ts → index.d.cts} +5 -5
  16. package/dist/index.d.mts +5 -5
  17. package/dist/index.mjs +1 -1
  18. package/dist/package.json +63 -23
  19. package/dist/rolldown.cjs +1 -0
  20. package/dist/{vite.d.ts → rolldown.d.cts} +4 -4
  21. package/dist/rolldown.d.mts +4 -4
  22. package/dist/rolldown.mjs +1 -1
  23. package/dist/rollup.cjs +1 -0
  24. package/dist/rollup.d.cts +8 -0
  25. package/dist/rollup.d.mts +7 -7
  26. package/dist/rollup.mjs +1 -1
  27. package/dist/rspack.cjs +1 -0
  28. package/dist/{rspack.d.ts → rspack.d.cts} +5 -5
  29. package/dist/rspack.d.mts +5 -5
  30. package/dist/rspack.mjs +1 -1
  31. package/dist/vite.cjs +1 -0
  32. package/dist/{rolldown.d.ts → vite.d.cts} +4 -4
  33. package/dist/vite.d.mts +4 -4
  34. package/dist/vite.mjs +1 -1
  35. package/dist/webpack.cjs +1 -0
  36. package/dist/{webpack.d.ts → webpack.d.cts} +5 -5
  37. package/dist/webpack.d.mts +5 -5
  38. package/dist/webpack.mjs +1 -1
  39. package/package.json +63 -23
  40. package/dist/RemoteOptions-BW2OrGcM.d.ts +0 -19
  41. package/dist/chunk-UQAU264C.js +0 -1
  42. package/dist/chunk-XQKXJQ5G.mjs +0 -1
  43. package/dist/esbuild.d.ts +0 -7
  44. package/dist/esbuild.js +0 -1
  45. package/dist/farm.js +0 -1
  46. package/dist/index.js +0 -1
  47. package/dist/rolldown.js +0 -1
  48. package/dist/rollup.d.ts +0 -8
  49. package/dist/rollup.js +0 -1
  50. package/dist/rspack.js +0 -1
  51. package/dist/vite.js +0 -1
  52. package/dist/webpack.js +0 -1
@@ -1,7 +1,618 @@
1
- import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
2
- import 'tsup';
1
+ import { n as RemoteOptions, t as HostOptions } from "./HostOptions-DW6TkBZo.mjs";
3
2
 
4
- declare const NativeFederationTestsRemote: (options: RemoteOptions) => undefined;
5
- declare const NativeFederationTestsHost: (options: HostOptions) => undefined;
6
-
7
- export { NativeFederationTestsHost, NativeFederationTestsRemote };
3
+ //#region ../../node_modules/.pnpm/esbuild@0.27.3/node_modules/esbuild/lib/main.d.ts
4
+ type Platform = 'browser' | 'node' | 'neutral';
5
+ type Format = 'iife' | 'cjs' | 'esm';
6
+ type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default' | 'empty' | 'file' | 'js' | 'json' | 'jsx' | 'local-css' | 'text' | 'ts' | 'tsx';
7
+ type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent';
8
+ type Charset = 'ascii' | 'utf8';
9
+ type Drop = 'console' | 'debugger';
10
+ type AbsPaths = 'code' | 'log' | 'metafile';
11
+ interface CommonOptions {
12
+ /** Documentation: https://esbuild.github.io/api/#sourcemap */
13
+ sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both';
14
+ /** Documentation: https://esbuild.github.io/api/#legal-comments */
15
+ legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
16
+ /** Documentation: https://esbuild.github.io/api/#source-root */
17
+ sourceRoot?: string;
18
+ /** Documentation: https://esbuild.github.io/api/#sources-content */
19
+ sourcesContent?: boolean;
20
+ /** Documentation: https://esbuild.github.io/api/#format */
21
+ format?: Format;
22
+ /** Documentation: https://esbuild.github.io/api/#global-name */
23
+ globalName?: string;
24
+ /** Documentation: https://esbuild.github.io/api/#target */
25
+ target?: string | string[];
26
+ /** Documentation: https://esbuild.github.io/api/#supported */
27
+ supported?: Record<string, boolean>;
28
+ /** Documentation: https://esbuild.github.io/api/#platform */
29
+ platform?: Platform;
30
+ /** Documentation: https://esbuild.github.io/api/#mangle-props */
31
+ mangleProps?: RegExp;
32
+ /** Documentation: https://esbuild.github.io/api/#mangle-props */
33
+ reserveProps?: RegExp;
34
+ /** Documentation: https://esbuild.github.io/api/#mangle-props */
35
+ mangleQuoted?: boolean;
36
+ /** Documentation: https://esbuild.github.io/api/#mangle-props */
37
+ mangleCache?: Record<string, string | false>;
38
+ /** Documentation: https://esbuild.github.io/api/#drop */
39
+ drop?: Drop[];
40
+ /** Documentation: https://esbuild.github.io/api/#drop-labels */
41
+ dropLabels?: string[];
42
+ /** Documentation: https://esbuild.github.io/api/#minify */
43
+ minify?: boolean;
44
+ /** Documentation: https://esbuild.github.io/api/#minify */
45
+ minifyWhitespace?: boolean;
46
+ /** Documentation: https://esbuild.github.io/api/#minify */
47
+ minifyIdentifiers?: boolean;
48
+ /** Documentation: https://esbuild.github.io/api/#minify */
49
+ minifySyntax?: boolean;
50
+ /** Documentation: https://esbuild.github.io/api/#line-limit */
51
+ lineLimit?: number;
52
+ /** Documentation: https://esbuild.github.io/api/#charset */
53
+ charset?: Charset;
54
+ /** Documentation: https://esbuild.github.io/api/#tree-shaking */
55
+ treeShaking?: boolean;
56
+ /** Documentation: https://esbuild.github.io/api/#ignore-annotations */
57
+ ignoreAnnotations?: boolean;
58
+ /** Documentation: https://esbuild.github.io/api/#jsx */
59
+ jsx?: 'transform' | 'preserve' | 'automatic';
60
+ /** Documentation: https://esbuild.github.io/api/#jsx-factory */
61
+ jsxFactory?: string;
62
+ /** Documentation: https://esbuild.github.io/api/#jsx-fragment */
63
+ jsxFragment?: string;
64
+ /** Documentation: https://esbuild.github.io/api/#jsx-import-source */
65
+ jsxImportSource?: string;
66
+ /** Documentation: https://esbuild.github.io/api/#jsx-development */
67
+ jsxDev?: boolean;
68
+ /** Documentation: https://esbuild.github.io/api/#jsx-side-effects */
69
+ jsxSideEffects?: boolean;
70
+ /** Documentation: https://esbuild.github.io/api/#define */
71
+ define?: {
72
+ [key: string]: string;
73
+ };
74
+ /** Documentation: https://esbuild.github.io/api/#pure */
75
+ pure?: string[];
76
+ /** Documentation: https://esbuild.github.io/api/#keep-names */
77
+ keepNames?: boolean;
78
+ /** Documentation: https://esbuild.github.io/api/#abs-paths */
79
+ absPaths?: AbsPaths[];
80
+ /** Documentation: https://esbuild.github.io/api/#color */
81
+ color?: boolean;
82
+ /** Documentation: https://esbuild.github.io/api/#log-level */
83
+ logLevel?: LogLevel;
84
+ /** Documentation: https://esbuild.github.io/api/#log-limit */
85
+ logLimit?: number;
86
+ /** Documentation: https://esbuild.github.io/api/#log-override */
87
+ logOverride?: Record<string, LogLevel>;
88
+ /** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
89
+ tsconfigRaw?: string | TsconfigRaw;
90
+ }
91
+ interface TsconfigRaw {
92
+ compilerOptions?: {
93
+ alwaysStrict?: boolean;
94
+ baseUrl?: string;
95
+ experimentalDecorators?: boolean;
96
+ importsNotUsedAsValues?: 'remove' | 'preserve' | 'error';
97
+ jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev';
98
+ jsxFactory?: string;
99
+ jsxFragmentFactory?: string;
100
+ jsxImportSource?: string;
101
+ paths?: Record<string, string[]>;
102
+ preserveValueImports?: boolean;
103
+ strict?: boolean;
104
+ target?: string;
105
+ useDefineForClassFields?: boolean;
106
+ verbatimModuleSyntax?: boolean;
107
+ };
108
+ }
109
+ interface BuildOptions extends CommonOptions {
110
+ /** Documentation: https://esbuild.github.io/api/#bundle */
111
+ bundle?: boolean;
112
+ /** Documentation: https://esbuild.github.io/api/#splitting */
113
+ splitting?: boolean;
114
+ /** Documentation: https://esbuild.github.io/api/#preserve-symlinks */
115
+ preserveSymlinks?: boolean;
116
+ /** Documentation: https://esbuild.github.io/api/#outfile */
117
+ outfile?: string;
118
+ /** Documentation: https://esbuild.github.io/api/#metafile */
119
+ metafile?: boolean;
120
+ /** Documentation: https://esbuild.github.io/api/#outdir */
121
+ outdir?: string;
122
+ /** Documentation: https://esbuild.github.io/api/#outbase */
123
+ outbase?: string;
124
+ /** Documentation: https://esbuild.github.io/api/#external */
125
+ external?: string[];
126
+ /** Documentation: https://esbuild.github.io/api/#packages */
127
+ packages?: 'bundle' | 'external';
128
+ /** Documentation: https://esbuild.github.io/api/#alias */
129
+ alias?: Record<string, string>;
130
+ /** Documentation: https://esbuild.github.io/api/#loader */
131
+ loader?: {
132
+ [ext: string]: Loader;
133
+ };
134
+ /** Documentation: https://esbuild.github.io/api/#resolve-extensions */
135
+ resolveExtensions?: string[];
136
+ /** Documentation: https://esbuild.github.io/api/#main-fields */
137
+ mainFields?: string[];
138
+ /** Documentation: https://esbuild.github.io/api/#conditions */
139
+ conditions?: string[];
140
+ /** Documentation: https://esbuild.github.io/api/#write */
141
+ write?: boolean;
142
+ /** Documentation: https://esbuild.github.io/api/#allow-overwrite */
143
+ allowOverwrite?: boolean;
144
+ /** Documentation: https://esbuild.github.io/api/#tsconfig */
145
+ tsconfig?: string;
146
+ /** Documentation: https://esbuild.github.io/api/#out-extension */
147
+ outExtension?: {
148
+ [ext: string]: string;
149
+ };
150
+ /** Documentation: https://esbuild.github.io/api/#public-path */
151
+ publicPath?: string;
152
+ /** Documentation: https://esbuild.github.io/api/#entry-names */
153
+ entryNames?: string;
154
+ /** Documentation: https://esbuild.github.io/api/#chunk-names */
155
+ chunkNames?: string;
156
+ /** Documentation: https://esbuild.github.io/api/#asset-names */
157
+ assetNames?: string;
158
+ /** Documentation: https://esbuild.github.io/api/#inject */
159
+ inject?: string[];
160
+ /** Documentation: https://esbuild.github.io/api/#banner */
161
+ banner?: {
162
+ [type: string]: string;
163
+ };
164
+ /** Documentation: https://esbuild.github.io/api/#footer */
165
+ footer?: {
166
+ [type: string]: string;
167
+ };
168
+ /** Documentation: https://esbuild.github.io/api/#entry-points */
169
+ entryPoints?: (string | {
170
+ in: string;
171
+ out: string;
172
+ })[] | Record<string, string>;
173
+ /** Documentation: https://esbuild.github.io/api/#stdin */
174
+ stdin?: StdinOptions;
175
+ /** Documentation: https://esbuild.github.io/plugins/ */
176
+ plugins?: Plugin[];
177
+ /** Documentation: https://esbuild.github.io/api/#working-directory */
178
+ absWorkingDir?: string;
179
+ /** Documentation: https://esbuild.github.io/api/#node-paths */
180
+ nodePaths?: string[]; // The "NODE_PATH" variable from Node.js
181
+ }
182
+ interface StdinOptions {
183
+ contents: string | Uint8Array;
184
+ resolveDir?: string;
185
+ sourcefile?: string;
186
+ loader?: Loader;
187
+ }
188
+ interface Message {
189
+ id: string;
190
+ pluginName: string;
191
+ text: string;
192
+ location: Location | null;
193
+ notes: Note[];
194
+ /**
195
+ * Optional user-specified data that is passed through unmodified. You can
196
+ * use this to stash the original error, for example.
197
+ */
198
+ detail: any;
199
+ }
200
+ interface Note {
201
+ text: string;
202
+ location: Location | null;
203
+ }
204
+ interface Location {
205
+ file: string;
206
+ namespace: string;
207
+ /** 1-based */
208
+ line: number;
209
+ /** 0-based, in bytes */
210
+ column: number;
211
+ /** in bytes */
212
+ length: number;
213
+ lineText: string;
214
+ suggestion: string;
215
+ }
216
+ interface OutputFile {
217
+ path: string;
218
+ contents: Uint8Array;
219
+ hash: string;
220
+ /** "contents" as text (changes automatically with "contents") */
221
+ readonly text: string;
222
+ }
223
+ interface BuildResult<ProvidedOptions extends BuildOptions = BuildOptions> {
224
+ errors: Message[];
225
+ warnings: Message[];
226
+ /** Only when "write: false" */
227
+ outputFiles: OutputFile[] | (ProvidedOptions['write'] extends false ? never : undefined);
228
+ /** Only when "metafile: true" */
229
+ metafile: Metafile | (ProvidedOptions['metafile'] extends true ? never : undefined);
230
+ /** Only when "mangleCache" is present */
231
+ mangleCache: Record<string, string | false> | (ProvidedOptions['mangleCache'] extends Object ? never : undefined);
232
+ }
233
+ /** Documentation: https://esbuild.github.io/api/#serve-arguments */
234
+ interface ServeOptions {
235
+ port?: number;
236
+ host?: string;
237
+ servedir?: string;
238
+ keyfile?: string;
239
+ certfile?: string;
240
+ fallback?: string;
241
+ cors?: CORSOptions;
242
+ onRequest?: (args: ServeOnRequestArgs) => void;
243
+ }
244
+ /** Documentation: https://esbuild.github.io/api/#cors */
245
+ interface CORSOptions {
246
+ origin?: string | string[];
247
+ }
248
+ interface ServeOnRequestArgs {
249
+ remoteAddress: string;
250
+ method: string;
251
+ path: string;
252
+ status: number;
253
+ /** The time to generate the response, not to send it */
254
+ timeInMS: number;
255
+ }
256
+ /** Documentation: https://esbuild.github.io/api/#serve-return-values */
257
+ interface ServeResult {
258
+ port: number;
259
+ hosts: string[];
260
+ }
261
+ interface TransformOptions extends CommonOptions {
262
+ /** Documentation: https://esbuild.github.io/api/#sourcefile */
263
+ sourcefile?: string;
264
+ /** Documentation: https://esbuild.github.io/api/#loader */
265
+ loader?: Loader;
266
+ /** Documentation: https://esbuild.github.io/api/#banner */
267
+ banner?: string;
268
+ /** Documentation: https://esbuild.github.io/api/#footer */
269
+ footer?: string;
270
+ }
271
+ interface TransformResult<ProvidedOptions extends TransformOptions = TransformOptions> {
272
+ code: string;
273
+ map: string;
274
+ warnings: Message[];
275
+ /** Only when "mangleCache" is present */
276
+ mangleCache: Record<string, string | false> | (ProvidedOptions['mangleCache'] extends Object ? never : undefined);
277
+ /** Only when "legalComments" is "external" */
278
+ legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined);
279
+ }
280
+ interface Plugin {
281
+ name: string;
282
+ setup: (build: PluginBuild) => (void | Promise<void>);
283
+ }
284
+ interface PluginBuild {
285
+ /** Documentation: https://esbuild.github.io/plugins/#build-options */
286
+ initialOptions: BuildOptions;
287
+ /** Documentation: https://esbuild.github.io/plugins/#resolve */
288
+ resolve(path: string, options?: ResolveOptions): Promise<ResolveResult>;
289
+ /** Documentation: https://esbuild.github.io/plugins/#on-start */
290
+ onStart(callback: () => (OnStartResult | null | void | Promise<OnStartResult | null | void>)): void;
291
+ /** Documentation: https://esbuild.github.io/plugins/#on-end */
292
+ onEnd(callback: (result: BuildResult) => (OnEndResult | null | void | Promise<OnEndResult | null | void>)): void;
293
+ /** Documentation: https://esbuild.github.io/plugins/#on-resolve */
294
+ onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) => (OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>)): void;
295
+ /** Documentation: https://esbuild.github.io/plugins/#on-load */
296
+ onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) => (OnLoadResult | null | undefined | Promise<OnLoadResult | null | undefined>)): void;
297
+ /** Documentation: https://esbuild.github.io/plugins/#on-dispose */
298
+ onDispose(callback: () => void): void; // This is a full copy of the esbuild library in case you need it
299
+ esbuild: {
300
+ context: typeof context;
301
+ build: typeof build;
302
+ buildSync: typeof buildSync;
303
+ transform: typeof transform;
304
+ transformSync: typeof transformSync;
305
+ formatMessages: typeof formatMessages;
306
+ formatMessagesSync: typeof formatMessagesSync;
307
+ analyzeMetafile: typeof analyzeMetafile;
308
+ analyzeMetafileSync: typeof analyzeMetafileSync;
309
+ initialize: typeof initialize;
310
+ version: typeof version;
311
+ };
312
+ }
313
+ /** Documentation: https://esbuild.github.io/plugins/#resolve-options */
314
+ interface ResolveOptions {
315
+ pluginName?: string;
316
+ importer?: string;
317
+ namespace?: string;
318
+ resolveDir?: string;
319
+ kind?: ImportKind;
320
+ pluginData?: any;
321
+ with?: Record<string, string>;
322
+ }
323
+ /** Documentation: https://esbuild.github.io/plugins/#resolve-results */
324
+ interface ResolveResult {
325
+ errors: Message[];
326
+ warnings: Message[];
327
+ path: string;
328
+ external: boolean;
329
+ sideEffects: boolean;
330
+ namespace: string;
331
+ suffix: string;
332
+ pluginData: any;
333
+ }
334
+ interface OnStartResult {
335
+ errors?: PartialMessage[];
336
+ warnings?: PartialMessage[];
337
+ }
338
+ interface OnEndResult {
339
+ errors?: PartialMessage[];
340
+ warnings?: PartialMessage[];
341
+ }
342
+ /** Documentation: https://esbuild.github.io/plugins/#on-resolve-options */
343
+ interface OnResolveOptions {
344
+ filter: RegExp;
345
+ namespace?: string;
346
+ }
347
+ /** Documentation: https://esbuild.github.io/plugins/#on-resolve-arguments */
348
+ interface OnResolveArgs {
349
+ path: string;
350
+ importer: string;
351
+ namespace: string;
352
+ resolveDir: string;
353
+ kind: ImportKind;
354
+ pluginData: any;
355
+ with: Record<string, string>;
356
+ }
357
+ type ImportKind = 'entry-point' // JS
358
+ | 'import-statement' | 'require-call' | 'dynamic-import' | 'require-resolve' // CSS
359
+ | 'import-rule' | 'composes-from' | 'url-token';
360
+ /** Documentation: https://esbuild.github.io/plugins/#on-resolve-results */
361
+ interface OnResolveResult {
362
+ pluginName?: string;
363
+ errors?: PartialMessage[];
364
+ warnings?: PartialMessage[];
365
+ path?: string;
366
+ external?: boolean;
367
+ sideEffects?: boolean;
368
+ namespace?: string;
369
+ suffix?: string;
370
+ pluginData?: any;
371
+ watchFiles?: string[];
372
+ watchDirs?: string[];
373
+ }
374
+ /** Documentation: https://esbuild.github.io/plugins/#on-load-options */
375
+ interface OnLoadOptions {
376
+ filter: RegExp;
377
+ namespace?: string;
378
+ }
379
+ /** Documentation: https://esbuild.github.io/plugins/#on-load-arguments */
380
+ interface OnLoadArgs {
381
+ path: string;
382
+ namespace: string;
383
+ suffix: string;
384
+ pluginData: any;
385
+ with: Record<string, string>;
386
+ }
387
+ /** Documentation: https://esbuild.github.io/plugins/#on-load-results */
388
+ interface OnLoadResult {
389
+ pluginName?: string;
390
+ errors?: PartialMessage[];
391
+ warnings?: PartialMessage[];
392
+ contents?: string | Uint8Array;
393
+ resolveDir?: string;
394
+ loader?: Loader;
395
+ pluginData?: any;
396
+ watchFiles?: string[];
397
+ watchDirs?: string[];
398
+ }
399
+ interface PartialMessage {
400
+ id?: string;
401
+ pluginName?: string;
402
+ text?: string;
403
+ location?: Partial<Location> | null;
404
+ notes?: PartialNote[];
405
+ detail?: any;
406
+ }
407
+ interface PartialNote {
408
+ text?: string;
409
+ location?: Partial<Location> | null;
410
+ }
411
+ /** Documentation: https://esbuild.github.io/api/#metafile */
412
+ interface Metafile {
413
+ inputs: {
414
+ [path: string]: {
415
+ bytes: number;
416
+ imports: {
417
+ path: string;
418
+ kind: ImportKind;
419
+ external?: boolean;
420
+ original?: string;
421
+ with?: Record<string, string>;
422
+ }[];
423
+ format?: 'cjs' | 'esm';
424
+ with?: Record<string, string>;
425
+ };
426
+ };
427
+ outputs: {
428
+ [path: string]: {
429
+ bytes: number;
430
+ inputs: {
431
+ [path: string]: {
432
+ bytesInOutput: number;
433
+ };
434
+ };
435
+ imports: {
436
+ path: string;
437
+ kind: ImportKind | 'file-loader';
438
+ external?: boolean;
439
+ }[];
440
+ exports: string[];
441
+ entryPoint?: string;
442
+ cssBundle?: string;
443
+ };
444
+ };
445
+ }
446
+ interface FormatMessagesOptions {
447
+ kind: 'error' | 'warning';
448
+ color?: boolean;
449
+ terminalWidth?: number;
450
+ }
451
+ interface AnalyzeMetafileOptions {
452
+ color?: boolean;
453
+ verbose?: boolean;
454
+ }
455
+ /** Documentation: https://esbuild.github.io/api/#watch-arguments */
456
+ interface WatchOptions {
457
+ delay?: number; // In milliseconds
458
+ }
459
+ interface BuildContext<ProvidedOptions extends BuildOptions = BuildOptions> {
460
+ /** Documentation: https://esbuild.github.io/api/#rebuild */
461
+ rebuild(): Promise<BuildResult<ProvidedOptions>>;
462
+ /** Documentation: https://esbuild.github.io/api/#watch */
463
+ watch(options?: WatchOptions): Promise<void>;
464
+ /** Documentation: https://esbuild.github.io/api/#serve */
465
+ serve(options?: ServeOptions): Promise<ServeResult>;
466
+ cancel(): Promise<void>;
467
+ dispose(): Promise<void>;
468
+ }
469
+ // This is a TypeScript type-level function which replaces any keys in "In"
470
+ // that aren't in "Out" with "never". We use this to reject properties with
471
+ // typos in object literals. See: https://stackoverflow.com/questions/49580725
472
+ type SameShape<Out, In extends Out> = In & { [Key in Exclude<keyof In, keyof Out>]: never };
473
+ /**
474
+ * This function invokes the "esbuild" command-line tool for you. It returns a
475
+ * promise that either resolves with a "BuildResult" object or rejects with a
476
+ * "BuildFailure" object.
477
+ *
478
+ * - Works in node: yes
479
+ * - Works in browser: yes
480
+ *
481
+ * Documentation: https://esbuild.github.io/api/#build
482
+ */
483
+ declare function build<T extends BuildOptions>(options: SameShape<BuildOptions, T>): Promise<BuildResult<T>>;
484
+ /**
485
+ * This is the advanced long-running form of "build" that supports additional
486
+ * features such as watch mode and a local development server.
487
+ *
488
+ * - Works in node: yes
489
+ * - Works in browser: no
490
+ *
491
+ * Documentation: https://esbuild.github.io/api/#build
492
+ */
493
+ declare function context<T extends BuildOptions>(options: SameShape<BuildOptions, T>): Promise<BuildContext<T>>;
494
+ /**
495
+ * This function transforms a single JavaScript file. It can be used to minify
496
+ * JavaScript, convert TypeScript/JSX to JavaScript, or convert newer JavaScript
497
+ * to older JavaScript. It returns a promise that is either resolved with a
498
+ * "TransformResult" object or rejected with a "TransformFailure" object.
499
+ *
500
+ * - Works in node: yes
501
+ * - Works in browser: yes
502
+ *
503
+ * Documentation: https://esbuild.github.io/api/#transform
504
+ */
505
+ declare function transform<T extends TransformOptions>(input: string | Uint8Array, options?: SameShape<TransformOptions, T>): Promise<TransformResult<T>>;
506
+ /**
507
+ * Converts log messages to formatted message strings suitable for printing in
508
+ * the terminal. This allows you to reuse the built-in behavior of esbuild's
509
+ * log message formatter. This is a batch-oriented API for efficiency.
510
+ *
511
+ * - Works in node: yes
512
+ * - Works in browser: yes
513
+ */
514
+ declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>;
515
+ /**
516
+ * Pretty-prints an analysis of the metafile JSON to a string. This is just for
517
+ * convenience to be able to match esbuild's pretty-printing exactly. If you want
518
+ * to customize it, you can just inspect the data in the metafile yourself.
519
+ *
520
+ * - Works in node: yes
521
+ * - Works in browser: yes
522
+ *
523
+ * Documentation: https://esbuild.github.io/api/#analyze
524
+ */
525
+ declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>;
526
+ /**
527
+ * A synchronous version of "build".
528
+ *
529
+ * - Works in node: yes
530
+ * - Works in browser: no
531
+ *
532
+ * Documentation: https://esbuild.github.io/api/#build
533
+ */
534
+ declare function buildSync<T extends BuildOptions>(options: SameShape<BuildOptions, T>): BuildResult<T>;
535
+ /**
536
+ * A synchronous version of "transform".
537
+ *
538
+ * - Works in node: yes
539
+ * - Works in browser: no
540
+ *
541
+ * Documentation: https://esbuild.github.io/api/#transform
542
+ */
543
+ declare function transformSync<T extends TransformOptions>(input: string | Uint8Array, options?: SameShape<TransformOptions, T>): TransformResult<T>;
544
+ /**
545
+ * A synchronous version of "formatMessages".
546
+ *
547
+ * - Works in node: yes
548
+ * - Works in browser: no
549
+ */
550
+ declare function formatMessagesSync(messages: PartialMessage[], options: FormatMessagesOptions): string[];
551
+ /**
552
+ * A synchronous version of "analyzeMetafile".
553
+ *
554
+ * - Works in node: yes
555
+ * - Works in browser: no
556
+ *
557
+ * Documentation: https://esbuild.github.io/api/#analyze
558
+ */
559
+ declare function analyzeMetafileSync(metafile: Metafile | string, options?: AnalyzeMetafileOptions): string;
560
+ /**
561
+ * This configures the browser-based version of esbuild. It is necessary to
562
+ * call this first and wait for the returned promise to be resolved before
563
+ * making other API calls when using esbuild in the browser.
564
+ *
565
+ * - Works in node: yes
566
+ * - Works in browser: yes ("options" is required)
567
+ *
568
+ * Documentation: https://esbuild.github.io/api/#browser
569
+ */
570
+ declare function initialize(options: InitializeOptions): Promise<void>;
571
+ interface InitializeOptions {
572
+ /**
573
+ * The URL of the "esbuild.wasm" file. This must be provided when running
574
+ * esbuild in the browser.
575
+ */
576
+ wasmURL?: string | URL;
577
+ /**
578
+ * The result of calling "new WebAssembly.Module(buffer)" where "buffer"
579
+ * is a typed array or ArrayBuffer containing the binary code of the
580
+ * "esbuild.wasm" file.
581
+ *
582
+ * You can use this as an alternative to "wasmURL" for environments where it's
583
+ * not possible to download the WebAssembly module.
584
+ */
585
+ wasmModule?: WebAssembly.Module;
586
+ /**
587
+ * By default esbuild runs the WebAssembly-based browser API in a web worker
588
+ * to avoid blocking the UI thread. This can be disabled by setting "worker"
589
+ * to false.
590
+ */
591
+ worker?: boolean;
592
+ }
593
+ declare let version: string;
594
+ // Note: These declarations exist to avoid type errors when you omit "dom" from
595
+ // "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
596
+ // global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
597
+ // with the browser DOM and is present in many non-browser JavaScript runtimes
598
+ // (e.g. node and deno). Declaring it here allows esbuild's API to be used in
599
+ // these scenarios.
600
+ //
601
+ // There's an open issue about getting this problem corrected (although these
602
+ // declarations will need to remain even if this is fixed for backward
603
+ // compatibility with older TypeScript versions):
604
+ //
605
+ // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
606
+ //
607
+ declare global {
608
+ namespace WebAssembly {
609
+ interface Module {}
610
+ }
611
+ interface URL {}
612
+ }
613
+ //#endregion
614
+ //#region src/esbuild.d.ts
615
+ declare const NativeFederationTestsRemote: (options: RemoteOptions) => Plugin;
616
+ declare const NativeFederationTestsHost: (options: HostOptions) => Plugin;
617
+ //#endregion
618
+ export { NativeFederationTestsHost, NativeFederationTestsRemote };
package/dist/esbuild.mjs CHANGED
@@ -1 +1 @@
1
- import{a as e,b as t}from"./chunk-XQKXJQ5G.mjs";var o=e.esbuild,a=t.esbuild;export{a as NativeFederationTestsHost,o as NativeFederationTestsRemote};
1
+ import"./archiveHandler-Bz6yqu6A.mjs";import{NativeFederationTestsHost as e,NativeFederationTestsRemote as t}from"./index.mjs";const n=t.esbuild,r=e.esbuild;export{r as NativeFederationTestsHost,n as NativeFederationTestsRemote};
package/dist/farm.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./archiveHandler-DT43b-Nq.cjs`);const e=require(`./index.cjs`),t=e.NativeFederationTestsRemote.farm,n=e.NativeFederationTestsHost.farm;exports.NativeFederationTestsHost=n,exports.NativeFederationTestsRemote=t;
@@ -1,7 +1,7 @@
1
- import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
2
- import 'tsup';
1
+ import { n as RemoteOptions, t as HostOptions } from "./HostOptions-D_JYre2E.cjs";
3
2
 
3
+ //#region src/farm.d.ts
4
4
  declare const NativeFederationTestsRemote: (options: RemoteOptions) => JsPlugin;
5
5
  declare const NativeFederationTestsHost: (options: HostOptions) => JsPlugin;
6
-
7
- export { NativeFederationTestsHost, NativeFederationTestsRemote };
6
+ //#endregion
7
+ export { NativeFederationTestsHost, NativeFederationTestsRemote };
package/dist/farm.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
2
- import 'tsup';
1
+ import { n as RemoteOptions, t as HostOptions } from "./HostOptions-DW6TkBZo.mjs";
3
2
 
3
+ //#region src/farm.d.ts
4
4
  declare const NativeFederationTestsRemote: (options: RemoteOptions) => JsPlugin;
5
5
  declare const NativeFederationTestsHost: (options: HostOptions) => JsPlugin;
6
-
7
- export { NativeFederationTestsHost, NativeFederationTestsRemote };
6
+ //#endregion
7
+ export { NativeFederationTestsHost, NativeFederationTestsRemote };
package/dist/farm.mjs CHANGED
@@ -1 +1 @@
1
- import{a as e,b as t}from"./chunk-XQKXJQ5G.mjs";var s=e.farm,a=t.farm;export{a as NativeFederationTestsHost,s as NativeFederationTestsRemote};
1
+ import"./archiveHandler-Bz6yqu6A.mjs";import{NativeFederationTestsHost as e,NativeFederationTestsRemote as t}from"./index.mjs";const n=t.farm,r=e.farm;export{r as NativeFederationTestsHost,n as NativeFederationTestsRemote};
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./archiveHandler-DT43b-Nq.cjs`);let t=require(`ansi-colors`);t=e.o(t);let n=require(`path`),r=require(`rambda`),i=require(`tsdown`),a=require(`unplugin`);const o=(0,a.createUnplugin)(a=>{let{remoteOptions:o,compiledFilesFolder:s,externalDeps:c,mapComponentsToExpose:l}=e.i(a);return{name:`native-federation-tests/remote`,async writeBundle(){let n=(0,r.mergeRight)(o.additionalBundlerConfig,{external:[/^[^./]/,...c.map(e=>RegExp(`^${e}`))],entry:l,format:[`cjs`],dts:!1,outExtensions:()=>({js:`.js`}),outDir:s,silent:!0});try{await(0,i.build)(n),await e.t(o,s),await e.n(o,s),console.log(t.default.green(`Federated mocks created correctly`))}catch(e){console.error(t.default.red(`Unable to build federated mocks: ${e}`))}},get vite(){return process.env.NODE_ENV===`production`?void 0:{buildStart:this.writeBundle,watchChange:this.writeBundle}},webpack(e){e.options.devServer=(0,r.mergeDeepRight)(e.options.devServer||{},{static:{directory:(0,n.resolve)(o.distFolder)}})},rspack(e){e.options.devServer=(0,r.mergeDeepRight)(e.options.devServer||{},{static:{directory:(0,n.resolve)(o.distFolder)}})}}}),s=(0,a.createUnplugin)(n=>{let{hostOptions:r,mapRemotesToDownload:i}=e.a(n),a=e.r(r);return{name:`native-federation-tests/host`,async writeBundle(){let e=Object.entries(i).map(a);await Promise.allSettled(e),console.log(t.default.green(`Federated mocks extraction completed`))},get vite(){return process.env.NODE_ENV===`production`?void 0:{buildStart:this.writeBundle,watchChange:this.writeBundle}}}});exports.NativeFederationTestsHost=s,exports.NativeFederationTestsRemote=o;
@@ -1,8 +1,8 @@
1
- import * as unplugin from 'unplugin';
2
- import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-BW2OrGcM.js';
3
- import 'tsup';
1
+ import { n as RemoteOptions, t as HostOptions } from "./HostOptions-D_JYre2E.cjs";
2
+ import * as unplugin from "unplugin";
4
3
 
4
+ //#region src/index.d.ts
5
5
  declare const NativeFederationTestsRemote: unplugin.UnpluginInstance<RemoteOptions, boolean>;
6
6
  declare const NativeFederationTestsHost: unplugin.UnpluginInstance<HostOptions, boolean>;
7
-
8
- export { NativeFederationTestsHost, NativeFederationTestsRemote };
7
+ //#endregion
8
+ export { NativeFederationTestsHost, NativeFederationTestsRemote };