rollipop 0.1.0-dev.20260424074146 → 1.0.0-alpha.21

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.
@@ -125,7 +125,7 @@
125
125
  return e && typeof Symbol !== "undefined" && e.constructor === Symbol ? "symbol" : typeof e;
126
126
  }
127
127
  function isReactRefreshBoundary(n) {
128
- if (__ROLLIPOP_GLOBAL__.__ReactRefresh.isLikelyComponentType(n)) return true;
128
+ if (global.__ReactRefresh.isLikelyComponentType(n)) return true;
129
129
  if (n === void 0 || n === null || (typeof n === "undefined" ? "undefined" : e(n)) !== "object") return false;
130
130
  var r = false;
131
131
  var t = true;
@@ -133,7 +133,7 @@
133
133
  r = true;
134
134
  if (o === "__esModule") continue;
135
135
  var f = n[o];
136
- if (!__ROLLIPOP_GLOBAL__.__ReactRefresh.isLikelyComponentType(f)) t = false;
136
+ if (!global.__ReactRefresh.isLikelyComponentType(f)) t = false;
137
137
  }
138
138
  return r && t;
139
139
  }
@@ -141,7 +141,7 @@
141
141
  function enqueueUpdate() {
142
142
  if (n) return;
143
143
  n = setTimeout(function() {
144
- __ROLLIPOP_GLOBAL__.__ReactRefresh.performReactRefresh();
144
+ global.__ReactRefresh.performReactRefresh();
145
145
  n = null;
146
146
  }, 50);
147
147
  }
@@ -268,6 +268,7 @@
268
268
  return !!e;
269
269
  })();
270
270
  }
271
+ var _globalThis, ___rolldown_runtime__;
271
272
  var BaseDevRuntime = DevRuntime;
272
273
  var ModuleHotContext = /* @__PURE__ */ function() {
273
274
  "use strict";
@@ -282,7 +283,7 @@
282
283
  {
283
284
  key: "refresh",
284
285
  get: function e() {
285
- return __ROLLIPOP_GLOBAL__.__ReactRefresh;
286
+ return global.__ReactRefresh;
286
287
  }
287
288
  },
288
289
  {
@@ -493,7 +494,7 @@
493
494
  var r = true, n = false, o = void 0;
494
495
  try {
495
496
  var i, u = function() {
496
- var e = _sliced_to_array(s.value, 2), r = e[0], n = e[1];
497
+ var e = _sliced_to_array(l.value, 2), r = e[0], n = e[1];
497
498
  var o = i.moduleHotContexts.get(r);
498
499
  if (o) {
499
500
  o.acceptCallbacks.filter(function(e) {
@@ -502,7 +503,7 @@
502
503
  o.cleanup();
503
504
  }
504
505
  };
505
- for (var a = e[Symbol.iterator](), s; !(r = (s = a.next()).done); r = true) i = this, u();
506
+ for (var a = e[Symbol.iterator](), l; !(r = (l = a.next()).done); r = true) i = this, u();
506
507
  } catch (e) {
507
508
  n = true;
508
509
  o = e;
@@ -534,7 +535,7 @@
534
535
  var o, i;
535
536
  debug("[HMR]: Custom HMR message received: ".concat(n.type));
536
537
  r.socketHolder.emit(n.type, n.payload);
537
- (o = (i = __ROLLIPOP_GLOBAL__).__ROLLIPOP_CUSTOM_HMR_HANDLER__) === null || o === void 0 || o.call(i, e, n);
538
+ (o = (i = global).__ROLLIPOP_CUSTOM_HMR_HANDLER__) === null || o === void 0 || o.call(i, e, n);
538
539
  return;
539
540
  }
540
541
  switch (n.type) {
@@ -552,7 +553,7 @@
552
553
  key: "evaluate",
553
554
  value: function evaluate(code, sourceURL) {
554
555
  debug("[HMR]: Evaluating code\n".concat(code));
555
- if (__ROLLIPOP_GLOBAL__.globalEvalWithSourceUrl) __ROLLIPOP_GLOBAL__.globalEvalWithSourceUrl(code, sourceURL);
556
+ if (global.globalEvalWithSourceUrl) global.globalEvalWithSourceUrl(code, sourceURL);
556
557
  else eval(code);
557
558
  }
558
559
  },
@@ -561,7 +562,7 @@
561
562
  value: function e() {
562
563
  debug("[HMR]: Reloading");
563
564
  var e = "DevSettings";
564
- (__ROLLIPOP_GLOBAL__.__turboModuleProxy ? __ROLLIPOP_GLOBAL__.__turboModuleProxy(e) : __ROLLIPOP_GLOBAL__.nativeModuleProxy[e]).reload();
565
+ (global.__turboModuleProxy ? global.__turboModuleProxy(e) : global.nativeModuleProxy[e]).reload();
565
566
  }
566
567
  }
567
568
  ]);
@@ -579,6 +580,6 @@
579
580
  if ("type" in e && typeof e.type === "string" && e.type.startsWith("hmr:")) return false;
580
581
  return true;
581
582
  }
582
- __ROLLIPOP_GLOBAL__.__rolldown_runtime__ = new ReactNativeDevRuntime();
583
+ (___rolldown_runtime__ = (_globalThis = global).__rolldown_runtime__) !== null && ___rolldown_runtime__ !== void 0 || (_globalThis.__rolldown_runtime__ = new ReactNativeDevRuntime());
583
584
  //#endregion
584
585
  })();
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ChalkInstance } from "chalk";
2
2
  import * as rolldown from "@rollipop/rolldown";
3
3
  import { RollupLogWithString } from "@rollipop/rolldown";
4
4
  import * as rolldownExperimental from "@rollipop/rolldown/experimental";
5
- import { DevEngine as DevEngine$1, DevOptions, DevWatchOptions } from "@rollipop/rolldown/experimental";
5
+ import { DevEngine as DevEngine$1, DevOptions, DevWatchOptions, RollipopReactNativeFlowConfig, RollipopReactNativePluginConfig, RollipopReactNativeWorkletsConfig } from "@rollipop/rolldown/experimental";
6
6
  import { TopLevelFilterExpression } from "@rollipop/rolldown-pluginutils";
7
7
  import { FastifyInstance as FastifyInstance$1 } from "fastify";
8
8
  import { Emitter } from "mitt";
@@ -52,6 +52,12 @@ type MetroCompatibleClientLogEvent = {
52
52
  | 'error';
53
53
  data: any[];
54
54
  };
55
+ interface PackageJson {
56
+ name: string;
57
+ version?: string;
58
+ dependencies?: Record<string, string>;
59
+ devDependencies?: Record<string, string>;
60
+ }
55
61
  //#endregion
56
62
  //#region src/common/types.d.ts
57
63
  interface FileStorageData {
@@ -298,7 +304,8 @@ interface PluginContext {
298
304
  }
299
305
  //#endregion
300
306
  //#region src/core/plugins/types.d.ts
301
- type PluginConfig = Omit<Config, 'plugins' | 'dangerously_overrideRolldownOptions'>;
307
+ type PluginConfig = Omit<Config, 'plugins'>;
308
+ type ResolvedPluginConfig = Omit<ResolvedConfig, 'plugins'>;
302
309
  type Plugin = rolldown.Plugin & {
303
310
  config?: PluginConfig | ((this: PluginContext, config: PluginConfig) => AsyncResult<PluginConfig | null | void>);
304
311
  configResolved?: (this: PluginContext, config: ResolvedConfig) => AsyncResult<void>;
@@ -309,6 +316,7 @@ type Plugin = rolldown.Plugin & {
309
316
  interface CommandDefinition<Options> {
310
317
  name: string;
311
318
  description: string;
319
+ helpText?: string;
312
320
  options?: CommandOptionDefinition[];
313
321
  action: CommandAction<Options>;
314
322
  }
@@ -348,7 +356,7 @@ declare function createCommand<T>(commandDefinition: CommandDefinition<T>): Comm
348
356
  declare function createReactNativeCliCommand<T>(commandDefinition: CommandDefinition<T>): Command$1;
349
357
  //#endregion
350
358
  //#region src/config/types.d.ts
351
- type ExperimentalConfig = NonNullable<rolldown.InputOptions['experimental']>;
359
+ type RolldownExperimentalOptions = NonNullable<rolldown.InputOptions['experimental']>;
352
360
  interface Config {
353
361
  /**
354
362
  * Defaults to current working directory.
@@ -406,6 +414,19 @@ interface Config {
406
414
  * Defaults to: `root`
407
415
  */
408
416
  envDir?: string;
417
+ /**
418
+ * Base name for environment files.
419
+ *
420
+ * Acts as the basename of the standard four-file resolution: the loader looks
421
+ * for `${envFile}`, `${envFile}.local`, `${envFile}.[mode]`, and
422
+ * `${envFile}.[mode].local`. Override this to use a custom name such as
423
+ * `.rollipop-env` instead of the default `.env`.
424
+ *
425
+ * Expects a file name (not a path).
426
+ *
427
+ * Defaults to: `'.env'`
428
+ */
429
+ envFile?: string;
409
430
  /**
410
431
  * Environment variable prefix.
411
432
  *
@@ -504,6 +525,11 @@ interface Config {
504
525
  * Defaults to 'hermes-v1'.
505
526
  */
506
527
  runtimeTarget?: 'hermes' | 'hermes-v1';
528
+ /**
529
+ * Experimental options. Behaviour and shape may change between releases
530
+ * without a major version bump.
531
+ */
532
+ experimental?: ExperimentalConfig;
507
533
  /**
508
534
  * Rollipop provides default options for Rolldown, but you can override them by this option.
509
535
  *
@@ -520,7 +546,10 @@ type ResolverConfig = Omit<NonNullable<rolldown.InputOptions['resolve']>, 'exten
520
546
  */
521
547
  sourceExtensions?: string[];
522
548
  /**
523
- * Defaults to: `['bmp', 'gif', 'jpg', 'jpeg', 'png', 'webp', 'avif', 'ico', 'icns', 'icxl']`
549
+ * Defaults to images (`bmp`, `gif`, `jpg`, `jpeg`, `png`, `psd`, `svg`, `webp`, `xml`),
550
+ * video (`m4v`, `mov`, `mp4`, `mpeg`, `mpg`, `webm`), audio (`aac`, `aiff`, `caf`, `m4a`,
551
+ * `mp3`, `wav`), documents (`html`, `pdf`, `yaml`, `yml`), fonts (`otf`, `ttf`), and
552
+ * archives (`zip`).
524
553
  */
525
554
  assetExtensions?: string[];
526
555
  /**
@@ -541,14 +570,12 @@ type ResolverConfig = Omit<NonNullable<rolldown.InputOptions['resolve']>, 'exten
541
570
  external?: rolldown.InputOptions['external'];
542
571
  };
543
572
  type TransformerConfig = Omit<TransformOptions, 'cwd' | 'lang' | 'sourceType' | 'plugins'> & {
544
- /**
545
- * Transform SVG assets files to React components using `@svgr/core`.
546
- *
547
- * Defaults to: `true`
548
- */
549
- svg?: boolean;
550
573
  /**
551
574
  * Flow specific configuration.
575
+ *
576
+ * Only applied when `experimental.nativeTransformPipeline` is **disabled** (the
577
+ * default). With the native pipeline enabled, the rust-side plugin
578
+ * handles Flow stripping internally.
552
579
  */
553
580
  flow?: FlowConfig;
554
581
  /**
@@ -576,6 +603,32 @@ interface FlowConfig {
576
603
  */
577
604
  filter?: rolldown.HookFilter | TopLevelFilterExpression[];
578
605
  }
606
+ interface ExperimentalConfig {
607
+ /**
608
+ * Enables the native (rust) transform pipeline, which replaces the
609
+ * legacy JS-side codegen marker, Flow strip, and SWC/babel preset
610
+ * machinery with a single built-in `rollipopReactNativePlugin`.
611
+ *
612
+ * This is a breaking change for projects that customised the legacy
613
+ * pipeline via `transformer.flow.filter`, `reactNative.codegen.filter`,
614
+ * or `runtimeTarget`. Opt in once you have validated builds locally.
615
+ *
616
+ * Defaults to `false`.
617
+ */
618
+ nativeTransformPipeline?: boolean;
619
+ /**
620
+ * Flow handling configuration for the native transform pipeline.
621
+ *
622
+ * Only applied when `experimental.nativeTransformPipeline` is enabled.
623
+ */
624
+ flow?: RollipopReactNativeFlowConfig;
625
+ /**
626
+ * `react-native-worklets` transformation configuration.
627
+ *
628
+ * Only applied when `experimental.nativeTransformPipeline` is enabled.
629
+ */
630
+ worklets?: RollipopReactNativeWorkletsConfig;
631
+ }
579
632
  interface SerializerConfig {
580
633
  /**
581
634
  * Paths to prelude files.
@@ -660,7 +713,7 @@ type OptimizationConfig = rolldown.OptimizationOptions & {
660
713
  *
661
714
  * @see {@link https://rolldown.rs/in-depth/lazy-barrel-optimization | Lazy Barrel Documentation}
662
715
  */
663
- lazyBarrel?: ExperimentalConfig['lazyBarrel'];
716
+ lazyBarrel?: RolldownExperimentalOptions['lazyBarrel'];
664
717
  };
665
718
  type WatcherConfig = DevWatchOptions;
666
719
  interface DevModeConfig {
@@ -695,6 +748,10 @@ interface ReactNativeConfig {
695
748
  reactNativePath?: string;
696
749
  /**
697
750
  * Codegen specific configuration.
751
+ *
752
+ * Only applied when `experimental.nativeTransformPipeline` is **disabled** (the
753
+ * default). With the native pipeline enabled, the rust-side plugin
754
+ * handles codegen marking internally.
698
755
  */
699
756
  codegen?: CodegenConfig;
700
757
  /**
@@ -755,12 +812,12 @@ declare function getDefaultConfig(projectRoot: string, mode?: Config['mode']): P
755
812
  sourceExtensions: string[];
756
813
  assetExtensions: string[];
757
814
  mainFields: string[];
815
+ aliasFields: string[][];
758
816
  conditionNames: string[];
759
817
  preferNativePlatform: true;
760
818
  symlinks: true;
761
819
  };
762
820
  transformer: {
763
- svg: true;
764
821
  flow: {
765
822
  filter: {
766
823
  id: RegExp;
@@ -805,8 +862,12 @@ declare function getDefaultConfig(projectRoot: string, mode?: Config['mode']): P
805
862
  status: "none" | "compat" | "progress" | undefined;
806
863
  };
807
864
  envDir: string;
865
+ envFile: string;
808
866
  envPrefix: string;
809
867
  runtimeTarget: "hermes-v1";
868
+ experimental: {
869
+ nativeTransformPipeline: boolean;
870
+ };
810
871
  }>;
811
872
  type DefaultConfig = Awaited<ReturnType<typeof getDefaultConfig>>;
812
873
  type ResolvedConfig = DefaultConfig & PluginFlattenConfig;
@@ -829,6 +890,7 @@ interface LoadConfigOptions {
829
890
  }
830
891
  declare function loadConfig(options?: LoadConfigOptions): Promise<ResolvedConfig>;
831
892
  declare function flattenPluginOption(pluginOption: PluginOption): Promise<Plugin[]>;
893
+ declare function resolvePluginConfig(baseConfig: ResolvedConfig, plugins: Plugin[]): Promise<ResolvedPluginConfig>;
832
894
  declare function resolvePluginConfig(baseConfig: Config, plugins: Plugin[]): Promise<PluginConfig>;
833
895
  declare function invokeConfigResolved(config: ResolvedConfig, plugins: Plugin[]): Promise<void>;
834
896
  //#endregion
@@ -858,17 +920,32 @@ declare class Bundler {
858
920
  //#endregion
859
921
  //#region src/core/plugins/react-native-plugin.d.ts
860
922
  interface ReactNativePluginOptions {
923
+ projectRoot: string;
861
924
  platform: string;
862
- dev: boolean;
925
+ preferNativePlatform: boolean;
863
926
  buildType: BuildType;
864
- flowFilter: rolldown.HookFilter | TopLevelFilterExpression[];
865
- codegenFilter: rolldown.HookFilter | TopLevelFilterExpression[];
866
927
  assetsDir?: string;
867
928
  assetExtensions: string[];
868
929
  assetRegistryPath: string;
869
- hmrClientPath: string;
930
+ /**
931
+ * Native pipeline configuration. When `null`, the legacy JS plugins
932
+ * (codegen marker + Flow strip) are installed instead.
933
+ *
934
+ * @internal builtin plugin config
935
+ */
936
+ builtinPluginConfig: RollipopReactNativePluginConfig | null;
937
+ /**
938
+ * Filter for the legacy Flow-strip transform pipeline. Used when the
939
+ * native pipeline is disabled.
940
+ */
941
+ flowFilter: rolldown.HookFilter | TopLevelFilterExpression[];
942
+ /**
943
+ * Filter for the legacy codegen marker pipeline. Used when the native
944
+ * pipeline is disabled.
945
+ */
946
+ codegenFilter: rolldown.HookFilter | TopLevelFilterExpression[];
870
947
  }
871
- declare function reactNativePlugin(config: ResolvedConfig, options: ReactNativePluginOptions): rolldown.Plugin[];
948
+ declare function reactNativePlugin(options: ReactNativePluginOptions): rolldown.Plugin[];
872
949
  //#endregion
873
950
  //#region src/core/plugins/prelude-plugin.d.ts
874
951
  interface PreludePluginOptions {
@@ -879,17 +956,38 @@ declare function preludePlugin(options: PreludePluginOptions): rolldown.Plugin |
879
956
  //#region src/core/plugins/json-plugin.d.ts
880
957
  declare function jsonPlugin(): rolldown.Plugin;
881
958
  //#endregion
882
- //#region src/core/plugins/svg-plugin.d.ts
883
- interface SvgPluginOptions {
884
- enabled: boolean;
885
- }
886
- declare function svgPlugin(options: SvgPluginOptions): rolldown.Plugin | null;
887
- //#endregion
888
959
  //#region src/core/plugins/babel-plugin.d.ts
889
- declare function babelPlugin(options?: TransformerConfig['babel']): rolldown.Plugin[];
960
+ interface BabelPluginOptions {
961
+ /**
962
+ * When `false`, the legacy JS preset (TS strip / Flow strip / RN
963
+ * codegen) is applied. When `true`, the preset is skipped and only
964
+ * user-provided rules run — the rust-side pipeline handles the rest.
965
+ */
966
+ useNativeTransformPipeline: boolean;
967
+ transformConfig?: TransformerConfig['babel'];
968
+ }
969
+ declare function babelPlugin({
970
+ useNativeTransformPipeline,
971
+ transformConfig
972
+ }: BabelPluginOptions): rolldown.Plugin[];
890
973
  //#endregion
891
974
  //#region src/core/plugins/swc-plugin.d.ts
892
- declare function swcPlugin(runtimeTarget: ResolvedConfig['runtimeTarget'], options?: TransformerConfig['swc']): rolldown.Plugin[];
975
+ interface SwcPluginOptions {
976
+ /**
977
+ * When `false`, the legacy JS preset for the resolved `runtimeTarget`
978
+ * is applied to every module (TS/JSX strip, hermes target). When
979
+ * `true`, the preset is skipped and only user-provided rules run — the
980
+ * rust-side pipeline handles the rest.
981
+ */
982
+ useNativeTransformPipeline: boolean;
983
+ runtimeTarget: ResolvedConfig['runtimeTarget'];
984
+ transformConfig?: TransformerConfig['swc'];
985
+ }
986
+ declare function swcPlugin({
987
+ useNativeTransformPipeline,
988
+ runtimeTarget,
989
+ transformConfig
990
+ }: SwcPluginOptions): rolldown.Plugin[];
893
991
  //#endregion
894
992
  //#region src/core/plugins/reporter-plugin.d.ts
895
993
  interface ReporterPluginOptions {
@@ -897,8 +995,19 @@ interface ReporterPluginOptions {
897
995
  reporter?: Reporter;
898
996
  }
899
997
  declare function reporterPlugin(options?: ReporterPluginOptions): rolldown.Plugin | null;
998
+ //#endregion
999
+ //#region src/utils/config.d.ts
1000
+ type ResolvedHmrConfig = Required<HmrConfig>;
1001
+ //#endregion
1002
+ //#region src/core/plugins/dev-server-plugin.d.ts
1003
+ interface DevServerPluginOptions {
1004
+ cwd: string;
1005
+ hmrClientPath: ResolvedConfig['reactNative']['hmrClientPath'];
1006
+ hmrConfig: ResolvedHmrConfig | null;
1007
+ }
1008
+ declare function devServerPlugin(options: DevServerPluginOptions): Promise<rolldown.Plugin[] | null>;
900
1009
  declare namespace index_d_exports {
901
- export { PreludePluginOptions, ReactNativePluginOptions, ReporterPluginOptions, SvgPluginOptions, babelPlugin as babel, jsonPlugin as json, preludePlugin as prelude, reactNativePlugin as reactNative, reporterPlugin as reporter, svgPlugin as svg, swcPlugin as swc };
1010
+ export { BabelPluginOptions, DevServerPluginOptions, PreludePluginOptions, ReactNativePluginOptions, ReporterPluginOptions, SwcPluginOptions, babelPlugin as babel, devServerPlugin as devServer, jsonPlugin as json, preludePlugin as prelude, reactNativePlugin as reactNative, reporterPlugin as reporter, swcPlugin as swc };
902
1011
  }
903
1012
  declare namespace assets_d_exports {
904
1013
  export { AssetContext, AssetData, AssetDataFiltered, AssetDataWithoutFiles, AssetInfo, AssetScale, copyAssetsToDestination, generateAssetRegistryCode, getAssetPriority, getSuffixedPath, platformSuffixPattern, resolveAssetPath, resolveScaledAssets, stripSuffix };
@@ -954,7 +1063,7 @@ interface ResolveScaledAssetsOptions {
954
1063
  declare function resolveScaledAssets(options: ResolveScaledAssetsOptions): Promise<AssetData>;
955
1064
  declare function platformSuffixPattern(context: AssetContext): string;
956
1065
  declare function stripSuffix(assetPath: string, context: AssetContext): string;
957
- declare function getAssetPriority(assetPath: string, context: AssetContext): 3 | 2 | 1 | 0;
1066
+ declare function getAssetPriority(assetPath: string, context: AssetContext): 0 | 3 | 2 | 1;
958
1067
  interface GetSuffixedPathOptions {
959
1068
  scale?: AssetScale;
960
1069
  platform?: string;
@@ -994,9 +1103,43 @@ declare function generateAssetRegistryCode(assetRegistryPath: string, asset: Ass
994
1103
  interface LoadEnvOptions {
995
1104
  envDir: string;
996
1105
  envPrefix: string;
1106
+ envFile: string;
997
1107
  mode?: Config['mode'];
998
1108
  }
999
1109
  declare function loadEnv(options: LoadEnvOptions): Record<string, string>;
1110
+ declare namespace constants_d_exports {
1111
+ export { DEFAULT_ASSET_EXTENSIONS, DEFAULT_ASSET_REGISTRY_PATH, DEFAULT_ENV_FILE, DEFAULT_ENV_PREFIX, DEFAULT_HMR_CLIENT_PATH, DEFAULT_IMAGE_EXTENSIONS, DEFAULT_REACT_NATIVE_GLOBAL_IDENTIFIERS, DEFAULT_RESOLVER_ALIAS_FIELDS, DEFAULT_RESOLVER_CONDITION_NAMES, DEFAULT_RESOLVER_MAIN_FIELDS, DEFAULT_RUNTIME_TARGET, DEFAULT_SOURCE_EXTENSIONS, GLOBAL_IDENTIFIER, IMAGE_EXTENSIONS, ROLLIPOP_VERSION };
1112
+ }
1113
+ /**
1114
+ * @see `tsdown.config.ts`
1115
+ */
1116
+ declare global {
1117
+ var __ROLLIPOP_VERSION__: string;
1118
+ }
1119
+ declare const ROLLIPOP_VERSION: string;
1120
+ declare const GLOBAL_IDENTIFIER = "global";
1121
+ /**
1122
+ * @see {@link https://github.com/facebook/metro/blob/0.81.x/docs/Configuration.md#resolvermainfields}
1123
+ */
1124
+ declare const DEFAULT_RESOLVER_MAIN_FIELDS: string[];
1125
+ declare const DEFAULT_RESOLVER_ALIAS_FIELDS: string[][];
1126
+ declare const DEFAULT_RESOLVER_CONDITION_NAMES: string[];
1127
+ /**
1128
+ * Unlike the Metro bundler configuration, this prioritizes resolving TypeScript and ESM first.
1129
+ *
1130
+ * @see {@link https://github.com/facebook/metro/blob/0.81.x/packages/metro-config/src/defaults/defaults.js}
1131
+ * @see {@link https://github.com/facebook/metro/blob/0.81.x/packages/metro-file-map/src/workerExclusionList.js}
1132
+ */
1133
+ declare const DEFAULT_SOURCE_EXTENSIONS: string[];
1134
+ declare const DEFAULT_IMAGE_EXTENSIONS: string[];
1135
+ declare const IMAGE_EXTENSIONS: string[];
1136
+ declare const DEFAULT_ASSET_EXTENSIONS: string[];
1137
+ declare const DEFAULT_ASSET_REGISTRY_PATH = "react-native/Libraries/Image/AssetRegistry.js";
1138
+ declare const DEFAULT_HMR_CLIENT_PATH = "react-native/Libraries/Utilities/HMRClient.js";
1139
+ declare const DEFAULT_REACT_NATIVE_GLOBAL_IDENTIFIERS: string[];
1140
+ declare const DEFAULT_ENV_PREFIX = "ROLLIPOP_";
1141
+ declare const DEFAULT_ENV_FILE = ".env";
1142
+ declare const DEFAULT_RUNTIME_TARGET = "hermes-v1";
1000
1143
  //#endregion
1001
1144
  //#region src/types/hmr.d.ts
1002
1145
  interface HMRContext {
@@ -1077,4 +1220,4 @@ declare namespace cli_d_exports {
1077
1220
  }
1078
1221
  declare function run(argv: string[]): void;
1079
1222
  //#endregion
1080
- export { assets_d_exports as AssetUtils, AsyncResult, BabelTransformConfig, BuildOptions, BuildType, BundleDetails, Bundler, BundlerContext, BundlerState, CodegenConfig, Config, DEFAULT_HOST, DEFAULT_PORT, DEV_SERVER_ASSET_PATH, DeepRequired, DefaultConfig, DefineConfigContext, DevEngine, DevEngineOptions, DevModeConfig, type DevRuntime, DevRuntimeInterface, DevRuntimeMessenger, DevRuntimeModule, DevServer, DevServerEvents, DynamicUserConfig, FastifyInstance, FlowConfig, FormattedError, HMRClientLogLevel, HMRClientMessage, HMRContext, HMRCustomHandler, HMRCustomMessage, HMRServerError, HMRServerMessage, HmrConfig, InteractiveCommand, InteractiveCommandContext, InteractiveModeOptions, LoadConfigOptions, LoadEnvOptions, MaybePromise, Middlewares, NullValue, OptimizationConfig, type Plugin, type PluginConfig, PluginFlattenConfig, PluginOption, Polyfill, PolyfillType, PolyfillWithCode, PolyfillWithPath, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolverConfig, RolldownConfig, SerializerConfig, ServerOptions, SwcTransformConfig, TerminalConfig, TransformRule, TransformerConfig, UserConfig, WatcherConfig, cli_d_exports as cli, createCommand, createDevServer, createReactNativeCliCommand, defineConfig, flattenPluginOption, getDefaultConfig, invokeConfigResolved, loadConfig, loadEnv, mergeConfig, index_d_exports as plugins, resetCache, resolvePluginConfig, rolldown, rolldownExperimental, runBuild, runServer, setupInteractiveMode };
1223
+ export { assets_d_exports as AssetUtils, AsyncResult, BabelTransformConfig, BuildOptions, BuildType, BundleDetails, Bundler, BundlerContext, BundlerState, CodegenConfig, Config, constants_d_exports as Constants, DEFAULT_HOST, DEFAULT_PORT, DEV_SERVER_ASSET_PATH, DeepRequired, DefaultConfig, DefineConfigContext, DevEngine, DevEngineOptions, DevModeConfig, type DevRuntime, DevRuntimeInterface, DevRuntimeMessenger, DevRuntimeModule, DevServer, DevServerEvents, DynamicUserConfig, ExperimentalConfig, FastifyInstance, FlowConfig, FormattedError, HMRClientLogLevel, HMRClientMessage, HMRContext, HMRCustomHandler, HMRCustomMessage, HMRServerError, HMRServerMessage, HmrConfig, InteractiveCommand, InteractiveCommandContext, InteractiveModeOptions, LoadConfigOptions, LoadEnvOptions, MaybePromise, Middlewares, NullValue, OptimizationConfig, PackageJson, type Plugin, type PluginConfig, PluginFlattenConfig, PluginOption, Polyfill, PolyfillType, PolyfillWithCode, PolyfillWithPath, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolverConfig, RolldownConfig, type RollipopReactNativeFlowConfig, type RollipopReactNativeWorkletsConfig, SerializerConfig, ServerOptions, SwcTransformConfig, TerminalConfig, TransformRule, TransformerConfig, UserConfig, WatcherConfig, cli_d_exports as cli, createCommand, createDevServer, createReactNativeCliCommand, defineConfig, flattenPluginOption, getDefaultConfig, invokeConfigResolved, loadConfig, loadEnv, mergeConfig, index_d_exports as plugins, resetCache, resolvePluginConfig, rolldown, rolldownExperimental, runBuild, runServer, setupInteractiveMode };