@qwik.dev/optimizer 2.1.0-beta.8 → 2.1.0-rc.10
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.
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/types.d.ts
CHANGED
|
@@ -13,6 +13,14 @@ export interface OptimizerOptions {
|
|
|
13
13
|
inlineStylesUpToBytes?: number;
|
|
14
14
|
/** Enable sourcemaps */
|
|
15
15
|
sourcemap?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Use the TypeScript optimizer (`@qwik.dev/ts-optimizer`) instead of the Rust one. The
|
|
18
|
+
* `QWIK_OPTIMIZER` environment variable (`ts` or `rust`) overrides this, so a project can be
|
|
19
|
+
* built or tested on the other optimizer without changing its config.
|
|
20
|
+
*
|
|
21
|
+
* Default `false`
|
|
22
|
+
*/
|
|
23
|
+
tsOptimizer?: boolean;
|
|
16
24
|
_optimizer?: unknown;
|
|
17
25
|
}
|
|
18
26
|
/** @public */
|
|
@@ -45,6 +53,15 @@ export interface TransformOptions {
|
|
|
45
53
|
stripCtxName?: string[];
|
|
46
54
|
stripEventHandlers?: boolean;
|
|
47
55
|
isServer?: boolean;
|
|
56
|
+
/** Decorator lowering, mirroring tsconfig. Only the TypeScript optimizer applies it. */
|
|
57
|
+
decorator?: DecoratorOptions;
|
|
58
|
+
}
|
|
59
|
+
/** @public */
|
|
60
|
+
export interface DecoratorOptions {
|
|
61
|
+
/** Tsconfig's `experimentalDecorators` */
|
|
62
|
+
legacy?: boolean;
|
|
63
|
+
/** Tsconfig's `emitDecoratorMetadata` */
|
|
64
|
+
emitDecoratorMetadata?: boolean;
|
|
48
65
|
}
|
|
49
66
|
/** @public */
|
|
50
67
|
export interface TransformModulesOptions extends TransformOptions {
|
package/package.json
CHANGED