@nativescript/vite 0.0.1-alpha.0 → 0.0.1-alpha.2

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 (55) hide show
  1. package/dist/configuration/base.js +178 -71
  2. package/dist/helpers/external-configs.js +1 -1
  3. package/dist/helpers/global-defines.d.ts +1 -0
  4. package/dist/helpers/global-defines.js +2 -0
  5. package/dist/helpers/main-entry-hmr-includes.d.ts +1 -0
  6. package/dist/helpers/main-entry-hmr-includes.js +18 -0
  7. package/dist/helpers/main-entry.d.ts +3 -3
  8. package/dist/helpers/main-entry.js +61 -54
  9. package/dist/helpers/module-runner-patch.d.ts +3 -0
  10. package/dist/helpers/module-runner-patch.js +65 -0
  11. package/dist/helpers/ns-cli-plugins.d.ts +4 -14
  12. package/dist/helpers/ns-cli-plugins.js +124 -101
  13. package/dist/helpers/package-platform-aliases.d.ts +1 -1
  14. package/dist/helpers/package-platform-aliases.js +4 -4
  15. package/dist/helpers/preserve-imports.d.ts +2 -0
  16. package/dist/helpers/preserve-imports.js +19 -0
  17. package/dist/helpers/ts-config-paths.d.ts +1 -1
  18. package/dist/helpers/ts-config-paths.js +6 -4
  19. package/dist/hmr/client-vue.d.ts +6 -0
  20. package/dist/hmr/client-vue.js +563 -0
  21. package/dist/hmr/component-tracker.d.ts +23 -0
  22. package/dist/hmr/component-tracker.js +193 -0
  23. package/dist/hmr/css-handler.d.ts +4 -0
  24. package/dist/hmr/css-handler.js +77 -0
  25. package/dist/hmr/message-handler.d.ts +1 -0
  26. package/dist/hmr/message-handler.js +590 -0
  27. package/dist/hmr/nsv-hooks.d.ts +2 -0
  28. package/dist/hmr/nsv-hooks.js +481 -0
  29. package/dist/hmr/plugin-vue.d.ts +2 -0
  30. package/dist/hmr/plugin-vue.js +38 -0
  31. package/dist/hmr/plugins/index.d.ts +1 -0
  32. package/dist/hmr/plugins/index.js +16 -0
  33. package/dist/hmr/plugins/plugin-vue.d.ts +2 -0
  34. package/dist/hmr/plugins/plugin-vue.js +41 -0
  35. package/dist/hmr/plugins/websocket-vue.d.ts +2 -0
  36. package/dist/hmr/plugins/websocket-vue.js +882 -0
  37. package/dist/hmr/runtime-vue.d.ts +13 -0
  38. package/dist/hmr/runtime-vue.js +2306 -0
  39. package/dist/hmr/types.d.ts +24 -0
  40. package/dist/hmr/types.js +2 -0
  41. package/dist/hmr/websocket-vue.d.ts +2 -0
  42. package/dist/hmr/websocket-vue.js +875 -0
  43. package/dist/shims/node-module.d.ts +5 -0
  44. package/dist/shims/node-module.js +12 -0
  45. package/package.json +2 -1
  46. package/dist/configuration/old-without-merge-base.d.ts +0 -13
  47. package/dist/configuration/old-without-merge-base.js +0 -249
  48. package/dist/hmr/hmr-angular.d.ts +0 -1
  49. package/dist/hmr/hmr-angular.js +0 -34
  50. package/dist/hmr/hmr-bridge.d.ts +0 -18
  51. package/dist/hmr/hmr-bridge.js +0 -154
  52. package/dist/hmr/hmr-client.d.ts +0 -5
  53. package/dist/hmr/hmr-client.js +0 -93
  54. package/dist/hmr/hmr-server.d.ts +0 -20
  55. package/dist/hmr/hmr-server.js +0 -179
@@ -0,0 +1,24 @@
1
+ export interface StartOptions {
2
+ wsUrl: string;
3
+ entry: string;
4
+ forceImportUpdates?: boolean;
5
+ autoImportEntry?: boolean;
6
+ }
7
+ export interface HMRMessage {
8
+ type: string;
9
+ event?: string;
10
+ data?: any;
11
+ updates?: HMRUpdate[];
12
+ }
13
+ export interface HMRUpdate {
14
+ type: string;
15
+ path?: string;
16
+ acceptedPath?: string;
17
+ timestamp?: number;
18
+ }
19
+ export interface CSSUpdate extends HMRUpdate {
20
+ type: 'css-update';
21
+ }
22
+ export interface VueUpdate extends HMRUpdate {
23
+ path: string;
24
+ }
@@ -0,0 +1,2 @@
1
+ // HMR type definitions
2
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { Plugin } from "vite";
2
+ export declare function hmrWebSocketVue(): Plugin;