@qwik.dev/optimizer 2.1.0-beta.9 → 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
@@ -14,7 +14,9 @@ export interface OptimizerOptions {
14
14
  /** Enable sourcemaps */
15
15
  sourcemap?: boolean;
16
16
  /**
17
- * Use the TypeScript optimizer (`@qwik.dev/ts-optimizer`) instead of the Rust one.
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.
18
20
  *
19
21
  * Default `false`
20
22
  */
@@ -51,6 +53,15 @@ export interface TransformOptions {
51
53
  stripCtxName?: string[];
52
54
  stripEventHandlers?: boolean;
53
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;
54
65
  }
55
66
  /** @public */
56
67
  export interface TransformModulesOptions extends TransformOptions {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwik.dev/optimizer",
3
3
  "description": "Qwik optimizer runtime and native bindings.",
4
- "version": "2.1.0-beta.9",
4
+ "version": "2.1.0-rc.10",
5
5
  "bugs": "https://github.com/QwikDev/qwik/issues",
6
6
  "engines": {
7
7
  "node": "^20.3.0 || >=21.0.0"