@hanzogui/types 8.1.0 → 8.2.0
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/package.json +1 -1
- package/types.ts +16 -0
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -41,6 +41,22 @@ export interface GuiBuildOptions {
|
|
|
41
41
|
*/
|
|
42
42
|
importsWhitelist?: string[]
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Installed packages whose styles the compiler extracts statically. A file
|
|
46
|
+
* under `node_modules` is only read if its package is named here — matching
|
|
47
|
+
* a whole scope with `@scope/*`, or one package exactly. The compiler cannot
|
|
48
|
+
* afford to parse every installed JS file, so nothing is read by default.
|
|
49
|
+
*
|
|
50
|
+
* `DEFAULT_EXTRACT_PACKAGES` from `@hanzogui/static-worker` is the
|
|
51
|
+
* design-system list (`@hanzo/ui`, `@hanzo/gui`, `@hanzogui/*`). Read its
|
|
52
|
+
* doc comment before turning it on: today it grows the cached sheet without
|
|
53
|
+
* shrinking what the runtime injects, because a published package ships no
|
|
54
|
+
* JSX to flatten.
|
|
55
|
+
*
|
|
56
|
+
* @default []
|
|
57
|
+
*/
|
|
58
|
+
extractPackages?: string[]
|
|
59
|
+
|
|
44
60
|
/**
|
|
45
61
|
* Whitelist file extensions to evaluate
|
|
46
62
|
*
|