versacompiler 2.4.1 → 2.5.0

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 (32) hide show
  1. package/README.md +722 -722
  2. package/dist/compiler/compile-worker-pool.js +96 -0
  3. package/dist/compiler/compile-worker-thread.cjs +72 -0
  4. package/dist/compiler/compile.js +81 -2
  5. package/dist/compiler/integrity-validator.js +1 -1
  6. package/dist/compiler/module-resolution-optimizer.js +23 -20
  7. package/dist/compiler/performance-monitor.js +61 -61
  8. package/dist/compiler/pipeline/build-pipeline.js +127 -0
  9. package/dist/compiler/pipeline/core-plugins.js +218 -0
  10. package/dist/compiler/pipeline/module-graph.js +63 -0
  11. package/dist/compiler/pipeline/plugin-driver.js +87 -0
  12. package/dist/compiler/pipeline/types.js +2 -0
  13. package/dist/compiler/transforms.js +222 -16
  14. package/dist/compiler/typescript-manager.js +3 -1
  15. package/dist/compiler/typescript-sync-validator.js +33 -31
  16. package/dist/compiler/typescript-worker-thread.cjs +482 -475
  17. package/dist/compiler/vuejs.js +32 -32
  18. package/dist/config.js +2 -0
  19. package/dist/hrm/VueHRM.js +359 -359
  20. package/dist/hrm/errorScreen.js +83 -83
  21. package/dist/hrm/getInstanciaVue.js +313 -313
  22. package/dist/hrm/initHRM.js +628 -586
  23. package/dist/main.js +2 -1
  24. package/dist/servicios/browserSync.js +8 -2
  25. package/dist/servicios/file-watcher.js +48 -6
  26. package/dist/servicios/readConfig.js +129 -54
  27. package/dist/servicios/versacompile.config.types.js +2 -0
  28. package/dist/utils/module-resolver.js +74 -40
  29. package/dist/utils/vue-types-setup.js +248 -248
  30. package/dist/wrappers/eslint-node.js +3 -1
  31. package/dist/wrappers/oxlint-node.js +3 -1
  32. package/package.json +72 -53
@@ -10,36 +10,36 @@ import * as typescript from 'typescript';
10
10
  * Genera declaraciones básicas de tipos para Vue como fallback
11
11
  */
12
12
  const generateBasicVueTypes = () => {
13
- return `// Declaraciones básicas de tipos Vue para validación
14
- declare global {
15
- function ref<T>(value: T): { value: T };
16
- function reactive<T extends object>(target: T): T;
17
- function computed<T>(getter: () => T): { value: T };
18
- function defineComponent<T>(options: T): T;
19
- function defineProps<T = {}>(): T;
20
- function defineEmits<T = {}>(): T;
21
- function defineExpose<T = {}>(exposed: T): void;
22
- function onMounted(fn: () => void): void;
23
- function onUnmounted(fn: () => void): void;
24
- function onBeforeMount(fn: () => void): void;
25
- function onBeforeUnmount(fn: () => void): void;
26
- function onUpdated(fn: () => void): void;
27
- function onBeforeUpdate(fn: () => void): void;
28
- function provide<T>(key: string | symbol, value: T): void;
29
- function inject<T>(key: string | symbol, defaultValue?: T): T | undefined;
30
- function useSlots(): { [key: string]: (...args: any[]) => any };
31
- function useAttrs(): { [key: string]: any };
32
- function useModel<T>(modelName?: string): { value: T };
33
- function watch<T>(source: () => T, callback: (newValue: T, oldValue: T) => void): void;
34
- function watchEffect(effect: () => void): void;
35
- function nextTick(callback?: () => void): Promise<void>;
36
- function getCurrentInstance(): any;
37
- function mergeModels<T>(models: T): T;
38
- }
39
- declare module '*.vue' {
40
- const component: any;
41
- export default component;
42
- }
13
+ return `// Declaraciones básicas de tipos Vue para validación
14
+ declare global {
15
+ function ref<T>(value: T): { value: T };
16
+ function reactive<T extends object>(target: T): T;
17
+ function computed<T>(getter: () => T): { value: T };
18
+ function defineComponent<T>(options: T): T;
19
+ function defineProps<T = {}>(): T;
20
+ function defineEmits<T = {}>(): T;
21
+ function defineExpose<T = {}>(exposed: T): void;
22
+ function onMounted(fn: () => void): void;
23
+ function onUnmounted(fn: () => void): void;
24
+ function onBeforeMount(fn: () => void): void;
25
+ function onBeforeUnmount(fn: () => void): void;
26
+ function onUpdated(fn: () => void): void;
27
+ function onBeforeUpdate(fn: () => void): void;
28
+ function provide<T>(key: string | symbol, value: T): void;
29
+ function inject<T>(key: string | symbol, defaultValue?: T): T | undefined;
30
+ function useSlots(): { [key: string]: (...args: any[]) => any };
31
+ function useAttrs(): { [key: string]: any };
32
+ function useModel<T>(modelName?: string): { value: T };
33
+ function watch<T>(source: () => T, callback: (newValue: T, oldValue: T) => void): void;
34
+ function watchEffect(effect: () => void): void;
35
+ function nextTick(callback?: () => void): Promise<void>;
36
+ function getCurrentInstance(): any;
37
+ function mergeModels<T>(models: T): T;
38
+ }
39
+ declare module '*.vue' {
40
+ const component: any;
41
+ export default component;
42
+ }
43
43
  export {};`;
44
44
  };
45
45
  /**
@@ -269,7 +269,9 @@ export const validateTypesWithLanguageService = (fileName, content, compilerOpti
269
269
  try {
270
270
  languageService.dispose();
271
271
  }
272
- catch { /* ignore dispose errors */ }
272
+ catch {
273
+ /* ignore dispose errors */
274
+ }
273
275
  }
274
276
  }
275
277
  catch (error) {