@qwik.dev/core 2.0.0-beta.3 → 2.0.0-beta.30

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.
Files changed (138) hide show
  1. package/dist/backpatch/index.d.ts +2 -0
  2. package/dist/backpatch/index.mjs +5 -0
  3. package/dist/backpatch/package.json +8 -0
  4. package/dist/backpatch-executor.debug.js +39 -0
  5. package/dist/backpatch-executor.js +1 -0
  6. package/dist/build/package.json +1 -1
  7. package/dist/cli.mjs +12916 -0
  8. package/dist/core-internal.d.ts +1077 -707
  9. package/dist/core.min.mjs +2 -1
  10. package/dist/core.mjs +11616 -8673
  11. package/dist/core.mjs.map +1 -1
  12. package/dist/core.prod.mjs +8266 -5225
  13. package/dist/insights/index.qwik.mjs +80 -57
  14. package/dist/loader/index.mjs +2 -2
  15. package/dist/loader/package.json +1 -1
  16. package/dist/optimizer.d.ts +47 -278
  17. package/dist/optimizer.mjs +2403 -3791
  18. package/dist/preloader.mjs +5 -8
  19. package/dist/qwikloader.debug.js +156 -131
  20. package/dist/qwikloader.js +1 -1
  21. package/dist/server.d.ts +51 -203
  22. package/dist/server.mjs +1418 -1088
  23. package/dist/server.prod.mjs +3264 -0
  24. package/dist/starters/adapters/aws-lambda/adapters/aws-lambda/{vite.config.mts → vite.config.ts} +2 -2
  25. package/dist/starters/adapters/aws-lambda/package.json +3 -2
  26. package/dist/starters/adapters/aws-lambda/src/entry_aws-lambda.tsx +2 -6
  27. package/dist/starters/adapters/azure-swa/adapters/azure-swa/{vite.config.mts → vite.config.ts} +2 -2
  28. package/dist/starters/adapters/azure-swa/package.json +3 -2
  29. package/dist/starters/adapters/azure-swa/src/entry.azure-swa.tsx +2 -3
  30. package/dist/starters/adapters/bun/adapters/bun/{vite.config.mts → vite.config.ts} +3 -3
  31. package/dist/starters/adapters/bun/package.json +3 -2
  32. package/dist/starters/adapters/bun/src/entry.bun.ts +0 -2
  33. package/dist/starters/adapters/cloud-run/adapters/cloud-run/{vite.config.mts → vite.config.ts} +2 -2
  34. package/dist/starters/adapters/cloud-run/package.json +3 -2
  35. package/dist/starters/adapters/cloud-run/src/entry.cloud-run.tsx +1 -3
  36. package/dist/starters/adapters/cloudflare-pages/adapters/cloudflare-pages/{vite.config.mts → vite.config.ts} +2 -2
  37. package/dist/starters/adapters/cloudflare-pages/package.json +3 -2
  38. package/dist/starters/adapters/cloudflare-pages/src/entry.cloudflare-pages.tsx +2 -3
  39. package/dist/starters/adapters/cloudflare-workers/README.md +52 -0
  40. package/dist/starters/adapters/cloudflare-workers/adapters/cloudflare-workers/vite.config.ts +15 -0
  41. package/dist/starters/adapters/cloudflare-workers/gitignore +3 -0
  42. package/dist/starters/adapters/cloudflare-workers/package.json +31 -0
  43. package/dist/starters/adapters/cloudflare-workers/public/.assetsignore +4 -0
  44. package/dist/starters/adapters/cloudflare-workers/public/_headers +11 -0
  45. package/dist/starters/adapters/cloudflare-workers/public/_redirects +1 -0
  46. package/dist/starters/adapters/cloudflare-workers/src/entry.cloudflare-pages.tsx +23 -0
  47. package/dist/starters/adapters/cloudflare-workers/worker-configuration.d.ts +5 -0
  48. package/dist/starters/adapters/cloudflare-workers/wrangler.jsonc +41 -0
  49. package/dist/starters/adapters/deno/adapters/deno/{vite.config.mts → vite.config.ts} +2 -2
  50. package/dist/starters/adapters/deno/package.json +3 -2
  51. package/dist/starters/adapters/deno/src/entry.deno.ts +0 -2
  52. package/dist/starters/adapters/express/adapters/express/{vite.config.mts → vite.config.ts} +2 -2
  53. package/dist/starters/adapters/express/package.json +4 -3
  54. package/dist/starters/adapters/express/src/entry.express.tsx +1 -3
  55. package/dist/starters/adapters/fastify/adapters/fastify/{vite.config.mts → vite.config.ts} +2 -2
  56. package/dist/starters/adapters/fastify/package.json +4 -3
  57. package/dist/starters/adapters/fastify/src/entry.fastify.tsx +1 -1
  58. package/dist/starters/adapters/fastify/src/plugins/fastify-qwik.ts +1 -2
  59. package/dist/starters/adapters/firebase/adapters/firebase/{vite.config.mts → vite.config.ts} +2 -2
  60. package/dist/starters/adapters/firebase/package.json +3 -2
  61. package/dist/starters/adapters/firebase/src/entry-firebase.tsx +2 -3
  62. package/dist/starters/adapters/netlify-edge/adapters/netlify-edge/{vite.config.mts → vite.config.ts} +2 -2
  63. package/dist/starters/adapters/netlify-edge/package.json +5 -4
  64. package/dist/starters/adapters/netlify-edge/src/entry.netlify-edge.tsx +2 -3
  65. package/dist/starters/adapters/node-server/adapters/node-server/{vite.config.mts → vite.config.ts} +2 -2
  66. package/dist/starters/adapters/node-server/package.json +3 -2
  67. package/dist/starters/adapters/node-server/src/entry.node-server.tsx +0 -2
  68. package/dist/starters/adapters/{static/adapters/static/vite.config.mts → ssg/adapters/ssg/vite.config.ts} +3 -3
  69. package/dist/starters/adapters/ssg/package.json +20 -0
  70. package/dist/starters/adapters/vercel-edge/README.md +2 -2
  71. package/dist/starters/adapters/vercel-edge/adapters/vercel-edge/{vite.config.mts → vite.config.ts} +2 -2
  72. package/dist/starters/adapters/vercel-edge/package.json +3 -2
  73. package/dist/starters/adapters/vercel-edge/src/entry.vercel-edge.tsx +2 -3
  74. package/dist/starters/adapters/vercel-edge/vercel.json +1 -1
  75. package/dist/starters/features/auth/package.json +1 -1
  76. package/dist/starters/features/compiled-i18n/package.json +37 -0
  77. package/dist/starters/features/compiled-i18n/src/components/locale-selector/locale-selector.tsx +30 -0
  78. package/dist/starters/features/compiled-i18n/src/entry.ssr.tsx +31 -0
  79. package/dist/starters/features/compiled-i18n/src/routes/plugin@compiled-i18n.ts +28 -0
  80. package/dist/starters/features/csr/index.html +27 -0
  81. package/dist/starters/features/csr/package.json +29 -0
  82. package/dist/starters/features/csr/src/root.tsx +15 -0
  83. package/dist/starters/features/csr/vite.config.ts +13 -0
  84. package/dist/starters/features/cypress/src/actions/example.action.ts +5 -0
  85. package/dist/starters/features/cypress/src/components/example/example.cy.tsx +50 -8
  86. package/dist/starters/features/cypress/src/components/example/example.tsx +13 -3
  87. package/dist/starters/features/cypress/src/loaders/example.loader.ts +5 -0
  88. package/dist/starters/features/pandacss/package.json +1 -1
  89. package/dist/starters/features/postcss/postcss.config.js +1 -1
  90. package/dist/starters/features/storybook/.storybook/tsconfig.json +0 -1
  91. package/dist/starters/features/styled-vanilla-extract/package.json +2 -1
  92. package/dist/starters/features/tailwind/package.json +2 -2
  93. package/dist/starters/features/tailwind/prettier.config.js +10 -0
  94. package/dist/starters/features/tailwind-v3/package.json +1 -1
  95. package/dist/starters/features/tailwind-v3/prettier.config.js +10 -0
  96. package/dist/testing/index.d.ts +925 -6
  97. package/dist/testing/index.mjs +15796 -11480
  98. package/dist/testing/package.json +1 -1
  99. package/handlers.mjs +1 -1
  100. package/package.json +34 -56
  101. package/public.d.ts +5 -1
  102. package/{qwik-cli.cjs → qwik-cli.mjs} +1 -1
  103. package/server.d.ts +2 -0
  104. package/bindings/qwik.darwin-arm64.node +0 -0
  105. package/bindings/qwik.darwin-x64.node +0 -0
  106. package/bindings/qwik.linux-x64-gnu.node +0 -0
  107. package/bindings/qwik.wasm.cjs +0 -471
  108. package/bindings/qwik.wasm.mjs +0 -464
  109. package/bindings/qwik.win32-x64-msvc.node +0 -0
  110. package/bindings/qwik_wasm_bg.wasm +0 -0
  111. package/dist/build/index.cjs +0 -35
  112. package/dist/build/index.cjs.map +0 -7
  113. package/dist/build/index.dev.cjs +0 -37
  114. package/dist/build/index.dev.cjs.map +0 -7
  115. package/dist/build/index.prod.cjs +0 -37
  116. package/dist/build/index.prod.cjs.map +0 -7
  117. package/dist/cli.cjs +0 -5545
  118. package/dist/core.cjs +0 -11800
  119. package/dist/core.cjs.map +0 -1
  120. package/dist/core.prod.cjs +0 -5661
  121. package/dist/insights/index.qwik.cjs +0 -1
  122. package/dist/insights/vite/index.cjs +0 -1
  123. package/dist/loader/index.cjs +0 -4
  124. package/dist/optimizer.cjs +0 -4020
  125. package/dist/preloader.cjs +0 -269
  126. package/dist/server.cjs +0 -3037
  127. package/dist/starters/adapters/static/package.json +0 -19
  128. package/dist/starters/features/localize/package.json +0 -37
  129. package/dist/starters/features/localize/src/entry.ssr.tsx +0 -30
  130. package/dist/starters/features/localize/src/locales/message.en.json +0 -8
  131. package/dist/starters/features/localize/src/locales/message.it.json +0 -8
  132. package/dist/starters/features/localize/src/routes/[locale]/i18n-utils.ts +0 -94
  133. package/dist/starters/features/localize/src/routes/[locale]/index.tsx +0 -52
  134. package/dist/starters/features/localize/src/routes/[locale]/layout.tsx +0 -12
  135. package/dist/starters/features/playwright/playwright-report/index.html +0 -22026
  136. package/dist/starters/features/tailwind/.prettierrc.js +0 -3
  137. package/dist/testing/index.cjs +0 -33331
  138. /package/dist/starters/adapters/{static → ssg}/README.md +0 -0
@@ -1,4 +1,9 @@
1
+ import { EntryStrategy } from '@qwik.dev/optimizer';
2
+ import { Optimizer } from '@qwik.dev/optimizer';
3
+ import { OptimizerOptions } from '@qwik.dev/optimizer';
1
4
  import type { Plugin as Plugin_2 } from 'vite';
5
+ import { TransformModule } from '@qwik.dev/optimizer';
6
+ import { TransformModuleInput } from '@qwik.dev/optimizer';
2
7
 
3
8
  /**
4
9
  * A function that returns a map of bundle names to their dependencies.
@@ -10,37 +15,6 @@ export declare type BundleGraphAdder = (manifest: QwikManifest) => Record<string
10
15
  dynamicImports?: string[];
11
16
  }>;
12
17
 
13
- /** @public */
14
- export declare interface ComponentEntryStrategy {
15
- type: 'component';
16
- manual?: Record<string, string>;
17
- }
18
-
19
- /** @public */
20
- export declare const createOptimizer: (optimizerOptions?: OptimizerOptions) => Promise<Optimizer>;
21
-
22
- declare function createSymbolMapper(base: string): SymbolMapperFn;
23
-
24
- /** @public */
25
- export declare interface Diagnostic {
26
- scope: string;
27
- category: DiagnosticCategory;
28
- code: string | null;
29
- file: string;
30
- message: string;
31
- highlights: SourceLocation[] | null;
32
- suggestions: string[] | null;
33
- }
34
-
35
- /** @public */
36
- export declare type DiagnosticCategory = 'error' | 'warning' | 'sourceError';
37
-
38
- /** @public */
39
- declare type EmitMode = 'dev' | 'prod' | 'lib';
40
-
41
- /** @public */
42
- export declare type EntryStrategy = InlineEntryStrategy | HoistEntryStrategy | SingleEntryStrategy | HookEntryStrategy_2 | SegmentEntryStrategy | ComponentEntryStrategy | SmartEntryStrategy;
43
-
44
18
  /**
45
19
  * Use `__EXPERIMENTAL__.x` to check if feature `x` is enabled. It will be replaced with `true` or
46
20
  * `false` via an exact string replacement.
@@ -50,6 +24,8 @@ export declare type EntryStrategy = InlineEntryStrategy | HoistEntryStrategy | S
50
24
  * @public
51
25
  */
52
26
  export declare enum ExperimentalFeatures {
27
+ /** Enable the Each keyed-list primitive */
28
+ each = "each",
53
29
  /** Enable the usePreventNavigate hook */
54
30
  preventNavigate = "preventNavigate",
55
31
  /** Enable the Valibot form validation */
@@ -60,7 +36,7 @@ export declare enum ExperimentalFeatures {
60
36
  enableRequestRewrite = "enableRequestRewrite",
61
37
  /** Enable worker$ */
62
38
  webWorker = "webWorker",
63
- /** Enable the ability to use the Qwik Insights vite plugin and <Insights/> component */
39
+ /** Enable the ability to use the Qwik Insights vite plugin and `<Insights/>` component */
64
40
  insights = "insights"
65
41
  }
66
42
 
@@ -73,59 +49,11 @@ export declare interface GlobalInjections {
73
49
  location: 'head' | 'body';
74
50
  }
75
51
 
76
- /** @public */
77
- declare interface HoistEntryStrategy {
78
- type: 'hoist';
79
- }
80
-
81
- /** @deprecated Use SegmentStrategy instead */
82
- declare interface HookEntryStrategy_2 {
83
- type: 'hook';
84
- manual?: Record<string, string>;
85
- }
86
-
87
- /** @public */
88
- export declare interface InlineEntryStrategy {
89
- type: 'inline';
90
- }
91
-
92
- /** @public */
93
- export declare type MinifyMode = 'simplify' | 'none';
94
-
95
- declare interface NormalizedQwikPluginOptions extends Omit<Required<QwikPluginOptions>, 'vendorRoots' | 'experimental'> {
52
+ declare interface NormalizedQwikPluginOptions extends Omit<Required<QwikPluginOptions>, 'input' | 'vendorRoots' | 'srcInputs' | 'experimental'> {
96
53
  input: string[] | {
97
54
  [entry: string]: string;
98
- };
99
- experimental?: Record<keyof typeof ExperimentalFeatures, boolean>;
100
- }
101
-
102
- /** @public */
103
- export declare interface Optimizer {
104
- /** Transforms the input code string, does not access the file system. */
105
- transformModules(opts: TransformModulesOptions): Promise<TransformOutput>;
106
- /** Optimizer system use. This can be updated with a custom file system. */
107
- sys: OptimizerSystem;
108
- }
109
-
110
- /** @public */
111
- export declare interface OptimizerOptions {
112
- sys?: OptimizerSystem;
113
- binding?: any;
114
- /** Inline the global styles if they're smaller than this */
115
- inlineStylesUpToBytes?: number;
116
- /** Enable sourcemaps */
117
- sourcemap?: boolean;
118
- }
119
-
120
- /** @public */
121
- export declare interface OptimizerSystem {
122
- cwd: () => string;
123
- env: SystemEnvironment;
124
- os: string;
125
- dynamicImport: (path: string) => Promise<any>;
126
- strictDynamicImport: (path: string) => Promise<any>;
127
- getInputFiles?: (rootDir: string) => Promise<TransformModuleInput[]>;
128
- path: Path;
55
+ } | undefined;
56
+ experimental: Record<keyof typeof ExperimentalFeatures, boolean> | undefined;
129
57
  }
130
58
 
131
59
  /**
@@ -138,36 +66,6 @@ declare type P<T> = Plugin_2<T> & {
138
66
  config: Extract<Plugin_2<T>['config'], Function>;
139
67
  };
140
68
 
141
- /** @public */
142
- export declare interface Path {
143
- resolve(...paths: string[]): string;
144
- normalize(path: string): string;
145
- isAbsolute(path: string): boolean;
146
- join(...paths: string[]): string;
147
- relative(from: string, to: string): string;
148
- dirname(path: string): string;
149
- basename(path: string, ext?: string): string;
150
- extname(path: string): string;
151
- format(pathObject: {
152
- root: string;
153
- dir: string;
154
- base: string;
155
- ext: string;
156
- name: string;
157
- }): string;
158
- parse(path: string): {
159
- root: string;
160
- dir: string;
161
- base: string;
162
- ext: string;
163
- name: string;
164
- };
165
- readonly sep: string;
166
- readonly delimiter: string;
167
- readonly win32: null;
168
- readonly posix: Path;
169
- }
170
-
171
69
  /** @public */
172
70
  export declare interface QwikAsset {
173
71
  /** Name of the asset */
@@ -265,9 +163,33 @@ export declare interface QwikManifest {
265
163
  };
266
164
  }
267
165
 
166
+ /** @public */
268
167
  declare interface QwikPluginDevTools {
168
+ /**
169
+ * Validates image sizes for CLS issues during development. In case of issues, provides you with a
170
+ * correct image size resolutions. If set to `false`, image dev tool will be disabled.
171
+ *
172
+ * Default `true`
173
+ */
269
174
  imageDevTools?: boolean | true;
175
+ /**
176
+ * Press-hold the defined keys to enable qwik dev inspector. By default the behavior is activated
177
+ * by pressing the left or right `Alt` key. If set to `false`, qwik dev inspector will be
178
+ * disabled.
179
+ *
180
+ * Valid values are `KeyboardEvent.code` values. Please note that the 'Left' and 'Right' suffixes
181
+ * are ignored.
182
+ */
270
183
  clickToSource?: string[] | false;
184
+ /**
185
+ * Enable HMR for Qwik components. When enabled, editing a component file re-renders only that
186
+ * component without a full page reload, preserving client state.
187
+ *
188
+ * Set this to `false` for full page reloads on component edits.
189
+ *
190
+ * Default `true`
191
+ */
192
+ hmr?: boolean;
271
193
  }
272
194
 
273
195
  declare interface QwikPluginOptions {
@@ -281,13 +203,17 @@ declare interface QwikPluginOptions {
281
203
  vendorRoots?: string[];
282
204
  manifestOutput?: ((manifest: QwikManifest) => Promise<void> | void) | null;
283
205
  manifestInput?: QwikManifest | null;
206
+ manifestInputPath?: string | null;
284
207
  input?: string[] | string | {
285
208
  [entry: string]: string;
286
209
  };
287
210
  outDir?: string;
211
+ ssrOutDir?: string;
212
+ clientOutDir?: string;
288
213
  assetsDir?: string;
289
214
  srcDir?: string | null;
290
215
  scope?: string | null;
216
+ /** @deprecated Not used */
291
217
  srcInputs?: TransformModuleInput[] | null;
292
218
  sourcemap?: boolean;
293
219
  resolveQwikBuild?: boolean;
@@ -422,12 +348,6 @@ export declare interface QwikSymbol {
422
348
  */
423
349
  export declare function qwikVite(qwikViteOpts?: QwikVitePluginOptions): any;
424
350
 
425
- /** @public */
426
- export declare interface QwikViteDevResponse {
427
- _qwikEnvData?: Record<string, any>;
428
- _qwikRenderResolve?: () => void;
429
- }
430
-
431
351
  /**
432
352
  * This is the type of the "pre" Qwik Vite plugin. `qwikVite` actually returns a tuple of two
433
353
  * plugins, but after Vite flattens them, you can find the plugin by name.
@@ -448,6 +368,8 @@ export declare interface QwikVitePluginApi {
448
368
  getClientPublicOutDir: () => string | null;
449
369
  getAssetsDir: () => string | undefined;
450
370
  registerBundleGraphAdder: (adder: BundleGraphAdder) => void;
371
+ /** @internal */
372
+ _oldDevSsrServer: () => boolean | undefined;
451
373
  }
452
374
 
453
375
  declare interface QwikVitePluginCommonOptions {
@@ -501,29 +423,12 @@ declare interface QwikVitePluginCommonOptions {
501
423
  * before bundling.
502
424
  */
503
425
  transformedModuleOutput?: ((transformedModules: TransformModule[]) => Promise<void> | void) | null;
504
- devTools?: {
505
- /**
506
- * Validates image sizes for CLS issues during development. In case of issues, provides you with
507
- * a correct image size resolutions. If set to `false`, image dev tool will be disabled.
508
- *
509
- * Default `true`
510
- */
511
- imageDevTools?: boolean | true;
512
- /**
513
- * Press-hold the defined keys to enable qwik dev inspector. By default the behavior is
514
- * activated by pressing the left or right `Alt` key. If set to `false`, qwik dev inspector will
515
- * be disabled.
516
- *
517
- * Valid values are `KeyboardEvent.code` values. Please note that the 'Left' and 'Right'
518
- * suffixes are ignored.
519
- */
520
- clickToSource?: string[] | false;
521
- };
426
+ devTools?: QwikPluginDevTools;
522
427
  /**
523
428
  * Predicate function to filter out files from the optimizer. hook for resolveId, load, and
524
429
  * transform
525
430
  */
526
- fileFilter?: (id: string, hook: string) => boolean;
431
+ fileFilter?: (id: string, hook: keyof Plugin_2) => boolean;
527
432
  /**
528
433
  * Run eslint on the source files for the ssr build or dev server. This can slow down startup on
529
434
  * large projects. Defaults to `true`
@@ -571,13 +476,6 @@ declare interface QwikVitePluginSSROptions extends QwikVitePluginCommonOptions {
571
476
  * Default `src/components/app/app.tsx`
572
477
  */
573
478
  input?: string[] | string;
574
- /**
575
- * Entry input for client-side only development with hot-module reloading. This is for Vite
576
- * development only and does not use SSR.
577
- *
578
- * Default `src/entry.dev.tsx`
579
- */
580
- devInput?: string;
581
479
  /**
582
480
  * Output directory for the client build.
583
481
  *
@@ -592,15 +490,7 @@ declare interface QwikVitePluginSSROptions extends QwikVitePluginCommonOptions {
592
490
  */
593
491
  manifestOutput?: (manifest: QwikManifest) => Promise<void> | void;
594
492
  };
595
- /**
596
- * Qwik is SSR first framework. This means that Qwik requires either SSR or SSG. In dev mode the
597
- * dev SSR server is responsible for rendering and pausing the application on the server.
598
- *
599
- * Under normal circumstances this should be on, unless you have your own SSR server which you
600
- * would like to use instead and wish to disable this one.
601
- *
602
- * Default: true
603
- */
493
+ /** @deprecated Use the `devSsrServer` option of the qwikRouter() plugin instead. */
604
494
  devSsrServer?: boolean;
605
495
  /** Controls the SSR behavior. */
606
496
  ssr?: {
@@ -626,6 +516,8 @@ declare interface QwikVitePluginSSROptions extends QwikVitePluginCommonOptions {
626
516
  * Default `undefined`
627
517
  */
628
518
  manifestInput?: QwikManifest;
519
+ /** Same as `manifestInput` but allows passing the path to the file. */
520
+ manifestInputPath?: string;
629
521
  };
630
522
  }
631
523
 
@@ -637,36 +529,6 @@ export declare interface ResolvedManifest {
637
529
  bundleGraph?: QwikBundleGraph;
638
530
  }
639
531
 
640
- /** @public */
641
- declare interface SegmentAnalysis {
642
- origin: string;
643
- name: string;
644
- entry: string | null;
645
- displayName: string;
646
- hash: string;
647
- canonicalFilename: string;
648
- extension: string;
649
- parent: string | null;
650
- ctxKind: 'eventHandler' | 'function';
651
- ctxName: string;
652
- captures: boolean;
653
- loc: [number, number];
654
- /** The parameter names if it's a function with parameters */
655
- paramNames?: string[];
656
- /** The transformed names of scoped variables, if any */
657
- captureNames?: string[];
658
- }
659
- export { SegmentAnalysis as HookAnalysis }
660
- export { SegmentAnalysis }
661
-
662
- /** @public */
663
- declare interface SegmentEntryStrategy {
664
- type: 'segment';
665
- manual?: Record<string, string>;
666
- }
667
- export { SegmentEntryStrategy as HookEntryStrategy }
668
- export { SegmentEntryStrategy }
669
-
670
532
  /**
671
533
  * The manifest values that are needed for SSR.
672
534
  *
@@ -674,106 +536,13 @@ export { SegmentEntryStrategy }
674
536
  */
675
537
  export declare type ServerQwikManifest = Pick<QwikManifest, 'manifestHash' | 'injections' | 'bundleGraph' | 'bundleGraphAsset' | 'mapping' | 'preloader' | 'core' | 'qwikLoader'>;
676
538
 
677
- /** @public */
678
- export declare interface SingleEntryStrategy {
679
- type: 'single';
680
- manual?: Record<string, string>;
681
- }
682
-
683
- /** @public */
684
- export declare interface SmartEntryStrategy {
685
- type: 'smart';
686
- manual?: Record<string, string>;
687
- }
688
-
689
- /** @public */
690
- export declare interface SourceLocation {
691
- hi: number;
692
- lo: number;
693
- startLine: number;
694
- startCol: number;
695
- endLine: number;
696
- endCol: number;
697
- }
698
-
699
- /** @public */
700
- export declare type SourceMapsOption = 'external' | 'inline' | undefined | null;
701
-
702
539
  /** @public */
703
540
  export declare type SymbolMapper = Record<string, readonly [symbol: string, chunk: string]>;
704
541
 
705
- /**
706
- * @beta
707
- * For a given symbol (QRL such as `onKeydown$`) the server needs to know which bundle the symbol is in.
708
- *
709
- * Normally this is provided by Qwik's `q-manifest` . But `q-manifest` only exists after a full client build.
710
- *
711
- * This would be a problem in dev mode. So in dev mode the symbol is mapped to the expected URL using the symbolMapper function below. For Vite the given path is fixed for a given symbol.
712
- */
713
- export declare let symbolMapper: ReturnType<typeof createSymbolMapper>;
714
-
715
542
  /** @public */
716
543
  export declare type SymbolMapperFn = (symbolName: string, mapper: SymbolMapper | undefined, parent?: string) => readonly [symbol: string, chunk: string] | undefined;
717
544
 
718
- /** @public */
719
- export declare type SystemEnvironment = 'node' | 'deno' | 'bun' | 'webworker' | 'browsermain' | 'unknown';
720
-
721
- /** @public */
722
- export declare interface TransformModule {
723
- path: string;
724
- isEntry: boolean;
725
- code: string;
726
- map: string | null;
727
- segment: SegmentAnalysis | null;
728
- origPath: string | null;
729
- }
730
-
731
- /** @public */
732
- export declare interface TransformModuleInput {
733
- path: string;
734
- devPath?: string;
735
- code: string;
736
- }
737
545
 
738
- /** @public */
739
- export declare interface TransformModulesOptions extends TransformOptions {
740
- input: TransformModuleInput[];
741
- }
742
-
743
- /** @public */
744
- export declare interface TransformOptions {
745
- srcDir: string;
746
- rootDir?: string;
747
- entryStrategy?: EntryStrategy;
748
- minify?: MinifyMode;
749
- sourceMaps?: boolean;
750
- transpileTs?: boolean;
751
- transpileJsx?: boolean;
752
- preserveFilenames?: boolean;
753
- explicitExtensions?: boolean;
754
- mode?: EmitMode;
755
- scope?: string;
756
- stripExports?: string[];
757
- regCtxName?: string[];
758
- stripCtxName?: string[];
759
- stripEventHandlers?: boolean;
760
- isServer?: boolean;
761
- }
762
-
763
- /** @public */
764
- export declare interface TransformOutput {
765
- modules: TransformModule[];
766
- diagnostics: Diagnostic[];
767
- isTypeScript: boolean;
768
- isJsx: boolean;
769
- }
770
-
771
- /** @public */
772
- export declare type TranspileOption = boolean | undefined | null;
773
-
774
- /** @public */
775
- export declare const versions: {
776
- qwik: string;
777
- };
546
+ export * from "@qwik.dev/optimizer";
778
547
 
779
548
  export { }