@utoo/pack-shared 1.2.12 → 1.2.13
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.
- package/cjs/config.d.ts +10 -0
- package/esm/config.d.ts +10 -0
- package/package.json +1 -1
package/cjs/config.d.ts
CHANGED
|
@@ -182,6 +182,7 @@ export interface ConfigComplete {
|
|
|
182
182
|
importSource?: string;
|
|
183
183
|
};
|
|
184
184
|
stats?: boolean;
|
|
185
|
+
pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
|
|
185
186
|
persistentCaching?: boolean;
|
|
186
187
|
nodePolyfill?: boolean;
|
|
187
188
|
devServer?: {
|
|
@@ -253,3 +254,12 @@ export interface BundleOptions {
|
|
|
253
254
|
*/
|
|
254
255
|
packPath?: string;
|
|
255
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* User config file shape (e.g. utoopack.config.mjs).
|
|
259
|
+
* Bundler options (entry, output, define, ...) at top level,
|
|
260
|
+
* plus optional CLI/runtime options (processEnv, watch, dev, ...).
|
|
261
|
+
*/
|
|
262
|
+
export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "defineEnv" | "watch" | "dev" | "buildId" | "packPath">> & {
|
|
263
|
+
rootPath?: string;
|
|
264
|
+
projectPath?: string;
|
|
265
|
+
};
|
package/esm/config.d.ts
CHANGED
|
@@ -182,6 +182,7 @@ export interface ConfigComplete {
|
|
|
182
182
|
importSource?: string;
|
|
183
183
|
};
|
|
184
184
|
stats?: boolean;
|
|
185
|
+
pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
|
|
185
186
|
persistentCaching?: boolean;
|
|
186
187
|
nodePolyfill?: boolean;
|
|
187
188
|
devServer?: {
|
|
@@ -253,3 +254,12 @@ export interface BundleOptions {
|
|
|
253
254
|
*/
|
|
254
255
|
packPath?: string;
|
|
255
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* User config file shape (e.g. utoopack.config.mjs).
|
|
259
|
+
* Bundler options (entry, output, define, ...) at top level,
|
|
260
|
+
* plus optional CLI/runtime options (processEnv, watch, dev, ...).
|
|
261
|
+
*/
|
|
262
|
+
export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "defineEnv" | "watch" | "dev" | "buildId" | "packPath">> & {
|
|
263
|
+
rootPath?: string;
|
|
264
|
+
projectPath?: string;
|
|
265
|
+
};
|