@rsbuild/core 2.2.13 → 2.2.14

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.
@@ -74,6 +74,15 @@ type LoadConfigResult<Config = unknown> = {
74
74
  dependencies: string[];
75
75
  };
76
76
 
77
+ type JitiLoader = () => Promise<{
78
+ createJiti: unknown;
79
+ }>;
80
+ /**
81
+ * Set the lazy jiti importer for this module instance before loading configs.
82
+ * Replaces the cached import without invoking the new importer.
83
+ */
84
+ declare const setJitiLoader: (loader: JitiLoader) => void;
85
+
77
86
  /**
78
87
  * Attach file metadata in place and return the original configuration object.
79
88
  * Repeated calls replace the metadata. Requires an extensible, unfrozen object.
@@ -83,5 +92,5 @@ declare function withConfigMeta<Config extends object>(config: Config, meta: Con
83
92
 
84
93
  declare function loadConfig<Config = unknown, Params extends unknown[] = []>({ cwd, path, configFileNames, loader, exportName, configParams, fresh, }?: LoadConfigOptions<Params>): Promise<LoadConfigResult<Config>>;
85
94
 
86
- export { loadConfig, withConfigMeta };
95
+ export { loadConfig, setJitiLoader, withConfigMeta };
87
96
  export type { ConfigDefinition, ConfigFileMeta, ConfigLoader, LoadConfigOptions, LoadConfigResult };
@@ -1 +1 @@
1
- {"name":"@rstackjs/load-config","version":"1.0.1","license":"MIT","types":"index.d.ts","type":"module"}
1
+ {"name":"@rstackjs/load-config","version":"1.0.2","license":"MIT","types":"index.d.ts","type":"module"}