@utoo/pack-shared 1.4.17-alpha.0 → 1.4.17-alpha.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.
package/cjs/config.d.ts CHANGED
@@ -30,6 +30,11 @@ export interface MdxTransformOptions {
30
30
  mdxType?: "commonmark" | "gfm";
31
31
  }
32
32
  export type MdxOptions = boolean | MdxTransformOptions;
33
+ export interface ReactCompilerOptions {
34
+ compilationMode?: "infer" | "annotation" | "all";
35
+ target?: "18" | "19";
36
+ }
37
+ export type ReactCompilerConfig = boolean | ReactCompilerOptions;
33
38
  export type TurbopackLoaderOptions = Record<string, JSONValue>;
34
39
  export type TurbopackLoaderItem = string | {
35
40
  loader: string;
@@ -250,6 +255,11 @@ export interface ConfigComplete {
250
255
  absoluteSourceFilename?: boolean;
251
256
  };
252
257
  stats?: boolean;
258
+ reactCompiler?: ReactCompilerConfig;
259
+ experimental?: {
260
+ reactCompiler?: ReactCompilerConfig;
261
+ swcPlugins?: [string, any][];
262
+ };
253
263
  swcPlugins?: [string, any][];
254
264
  pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
255
265
  persistentCaching?: boolean;
package/esm/config.d.ts CHANGED
@@ -30,6 +30,11 @@ export interface MdxTransformOptions {
30
30
  mdxType?: "commonmark" | "gfm";
31
31
  }
32
32
  export type MdxOptions = boolean | MdxTransformOptions;
33
+ export interface ReactCompilerOptions {
34
+ compilationMode?: "infer" | "annotation" | "all";
35
+ target?: "18" | "19";
36
+ }
37
+ export type ReactCompilerConfig = boolean | ReactCompilerOptions;
33
38
  export type TurbopackLoaderOptions = Record<string, JSONValue>;
34
39
  export type TurbopackLoaderItem = string | {
35
40
  loader: string;
@@ -250,6 +255,11 @@ export interface ConfigComplete {
250
255
  absoluteSourceFilename?: boolean;
251
256
  };
252
257
  stats?: boolean;
258
+ reactCompiler?: ReactCompilerConfig;
259
+ experimental?: {
260
+ reactCompiler?: ReactCompilerConfig;
261
+ swcPlugins?: [string, any][];
262
+ };
253
263
  swcPlugins?: [string, any][];
254
264
  pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
255
265
  persistentCaching?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.4.17-alpha.0",
3
+ "version": "1.4.17-alpha.2",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",