@qwik.dev/core 2.0.0-beta.27 → 2.0.0-beta.28

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/loader",
3
- "version": "2.0.0-beta.27-dev+7fc6984",
3
+ "version": "2.0.0-beta.28-dev+fac55b7",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
@@ -34,7 +34,7 @@ export declare interface Diagnostic {
34
34
  export declare type DiagnosticCategory = 'error' | 'warning' | 'sourceError';
35
35
 
36
36
  /** @public */
37
- declare type EmitMode = 'dev' | 'prod' | 'lib';
37
+ declare type EmitMode = 'dev' | 'prod' | 'lib' | 'hmr';
38
38
 
39
39
  /** @public */
40
40
  export declare type EntryStrategy = InlineEntryStrategy | HoistEntryStrategy | SingleEntryStrategy | HookEntryStrategy_2 | SegmentEntryStrategy | ComponentEntryStrategy | SmartEntryStrategy;
@@ -263,9 +263,33 @@ export declare interface QwikManifest {
263
263
  };
264
264
  }
265
265
 
266
+ /** @public */
266
267
  declare interface QwikPluginDevTools {
268
+ /**
269
+ * Validates image sizes for CLS issues during development. In case of issues, provides you with a
270
+ * correct image size resolutions. If set to `false`, image dev tool will be disabled.
271
+ *
272
+ * Default `true`
273
+ */
267
274
  imageDevTools?: boolean | true;
275
+ /**
276
+ * Press-hold the defined keys to enable qwik dev inspector. By default the behavior is activated
277
+ * by pressing the left or right `Alt` key. If set to `false`, qwik dev inspector will be
278
+ * disabled.
279
+ *
280
+ * Valid values are `KeyboardEvent.code` values. Please note that the 'Left' and 'Right' suffixes
281
+ * are ignored.
282
+ */
268
283
  clickToSource?: string[] | false;
284
+ /**
285
+ * Enable HMR for Qwik components. When enabled, editing a component file re-renders only that
286
+ * component without a full page reload, preserving client state.
287
+ *
288
+ * Set this to `false` for full page reloads on component edits.
289
+ *
290
+ * Default `true`
291
+ */
292
+ hmr?: boolean;
269
293
  }
270
294
 
271
295
  declare interface QwikPluginOptions {
@@ -499,24 +523,7 @@ declare interface QwikVitePluginCommonOptions {
499
523
  * before bundling.
500
524
  */
501
525
  transformedModuleOutput?: ((transformedModules: TransformModule[]) => Promise<void> | void) | null;
502
- devTools?: {
503
- /**
504
- * Validates image sizes for CLS issues during development. In case of issues, provides you with
505
- * a correct image size resolutions. If set to `false`, image dev tool will be disabled.
506
- *
507
- * Default `true`
508
- */
509
- imageDevTools?: boolean | true;
510
- /**
511
- * Press-hold the defined keys to enable qwik dev inspector. By default the behavior is
512
- * activated by pressing the left or right `Alt` key. If set to `false`, qwik dev inspector will
513
- * be disabled.
514
- *
515
- * Valid values are `KeyboardEvent.code` values. Please note that the 'Left' and 'Right'
516
- * suffixes are ignored.
517
- */
518
- clickToSource?: string[] | false;
519
- };
526
+ devTools?: QwikPluginDevTools;
520
527
  /**
521
528
  * Predicate function to filter out files from the optimizer. hook for resolveId, load, and
522
529
  * transform