@utoo/pack-shared 1.3.9-alpha.2 → 1.3.9-alpha.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.
package/cjs/config.d.ts CHANGED
@@ -203,7 +203,7 @@ export interface ConfigComplete {
203
203
  };
204
204
  styles?: {
205
205
  autoCssModules?: boolean;
206
- emotion?: boolean;
206
+ emotion?: boolean | EmotionOptions;
207
207
  postcss?: JSONValue;
208
208
  less?: {
209
209
  implementation?: string;
@@ -266,6 +266,12 @@ export interface StyledComponentsConfig {
266
266
  pure?: boolean;
267
267
  cssProp?: boolean;
268
268
  }
269
+ export interface EmotionOptions {
270
+ sourcemap?: boolean;
271
+ labelFormat?: string;
272
+ autoLabel?: "dev-only" | "always" | "never";
273
+ importMap?: Record<string, any>;
274
+ }
269
275
  export interface BundleOptions {
270
276
  /**
271
277
  * The utoo pack configs.
package/esm/config.d.ts CHANGED
@@ -203,7 +203,7 @@ export interface ConfigComplete {
203
203
  };
204
204
  styles?: {
205
205
  autoCssModules?: boolean;
206
- emotion?: boolean;
206
+ emotion?: boolean | EmotionOptions;
207
207
  postcss?: JSONValue;
208
208
  less?: {
209
209
  implementation?: string;
@@ -266,6 +266,12 @@ export interface StyledComponentsConfig {
266
266
  pure?: boolean;
267
267
  cssProp?: boolean;
268
268
  }
269
+ export interface EmotionOptions {
270
+ sourcemap?: boolean;
271
+ labelFormat?: string;
272
+ autoLabel?: "dev-only" | "always" | "never";
273
+ importMap?: Record<string, any>;
274
+ }
269
275
  export interface BundleOptions {
270
276
  /**
271
277
  * The utoo pack configs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.3.9-alpha.2",
3
+ "version": "1.3.9-alpha.4",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",