versacompiler 2.4.1 → 2.6.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 (52) hide show
  1. package/README.md +722 -722
  2. package/dist/compiler/compile-worker-pool.js +108 -0
  3. package/dist/compiler/compile-worker-thread.cjs +72 -0
  4. package/dist/compiler/compile.js +177 -18
  5. package/dist/compiler/error-reporter.js +12 -0
  6. package/dist/compiler/integrity-validator.js +13 -1
  7. package/dist/compiler/linter.js +12 -0
  8. package/dist/compiler/minify.js +12 -0
  9. package/dist/compiler/minifyTemplate.js +12 -0
  10. package/dist/compiler/module-resolution-optimizer.js +35 -20
  11. package/dist/compiler/parser.js +12 -0
  12. package/dist/compiler/performance-monitor.js +73 -61
  13. package/dist/compiler/pipeline/build-pipeline.js +139 -0
  14. package/dist/compiler/pipeline/core-plugins.js +230 -0
  15. package/dist/compiler/pipeline/module-graph.js +75 -0
  16. package/dist/compiler/pipeline/plugin-driver.js +99 -0
  17. package/dist/compiler/pipeline/types.js +14 -0
  18. package/dist/compiler/tailwindcss.js +12 -0
  19. package/dist/compiler/transform-optimizer.js +12 -0
  20. package/dist/compiler/transformTStoJS.js +38 -5
  21. package/dist/compiler/transforms.js +234 -16
  22. package/dist/compiler/typescript-compiler.js +12 -0
  23. package/dist/compiler/typescript-error-parser.js +12 -0
  24. package/dist/compiler/typescript-manager.js +15 -1
  25. package/dist/compiler/typescript-sync-validator.js +45 -31
  26. package/dist/compiler/typescript-worker-pool.js +12 -0
  27. package/dist/compiler/typescript-worker-thread.cjs +482 -475
  28. package/dist/compiler/typescript-worker.js +12 -0
  29. package/dist/compiler/vuejs.js +73 -47
  30. package/dist/config.js +14 -0
  31. package/dist/hrm/VueHRM.js +484 -359
  32. package/dist/hrm/errorScreen.js +95 -83
  33. package/dist/hrm/getInstanciaVue.js +325 -313
  34. package/dist/hrm/initHRM.js +736 -586
  35. package/dist/hrm/versaHMR.js +317 -0
  36. package/dist/main.js +23 -3
  37. package/dist/servicios/browserSync.js +127 -6
  38. package/dist/servicios/file-watcher.js +139 -8
  39. package/dist/servicios/logger.js +12 -0
  40. package/dist/servicios/readConfig.js +141 -54
  41. package/dist/servicios/versacompile.config.types.js +14 -0
  42. package/dist/utils/excluded-modules.js +12 -0
  43. package/dist/utils/module-resolver.js +86 -40
  44. package/dist/utils/promptUser.js +12 -0
  45. package/dist/utils/proxyValidator.js +12 -0
  46. package/dist/utils/resolve-bin.js +12 -0
  47. package/dist/utils/utils.js +12 -0
  48. package/dist/utils/vue-types-setup.js +260 -248
  49. package/dist/wrappers/eslint-node.js +15 -1
  50. package/dist/wrappers/oxlint-node.js +15 -1
  51. package/dist/wrappers/tailwind-node.js +12 -0
  52. package/package.json +74 -54
@@ -1,313 +1,325 @@
1
- /**
2
- * Script para obtener la instancia de Vue usando solo JavaScript
3
- * Compatible con Vue 2 y Vue 3
4
- */
5
-
6
- /**
7
- * @typedef {Object} VueInstance
8
- * @property {string} [version] - Versión de Vue
9
- * @property {Object} [config] - Configuración de Vue
10
- * @property {Object} [proxy] - Proxy del componente
11
- * @property {Object} [$options] - Opciones del componente (Vue 2)
12
- * @property {Object} [$router] - Router de Vue
13
- * @property {Object} [$store] - Store de Vuex/Pinia
14
- * @property {Array} [$children] - Componentes hijos (Vue 2)
15
- * @property {Object} [$data] - Datos del componente (Vue 2)
16
- */
17
-
18
- /**
19
- * @typedef {Object} VueInstanceInfo
20
- * @property {string|null} version - Versión de Vue detectada
21
- * @property {string|null} type - Tipo de instancia de Vue
22
- * @property {boolean} hasRouter - Indica si tiene Vue Router
23
- * @property {boolean} hasStore - Indica si tiene Vuex/Pinia
24
- * @property {Object|number} components - Información de componentes
25
- * @property {string[]|null} data - Claves de datos del componente
26
- */
27
-
28
- /**
29
- * Obtiene la instancia de Vue desde un elemento específico del DOM
30
- * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
31
- * @returns {VueInstance|null} Instancia de Vue o null si no se encuentra
32
- */
33
- function getVueInstanceFromElement(selector = '#app') {
34
- const element = document.querySelector(selector);
35
- if (!element) {
36
- return null;
37
- }
38
-
39
- // Para Vue 3
40
- if (element.__vue_app__) {
41
- return element.__vue_app__;
42
- }
43
-
44
- // Para Vue 2
45
- if (element.__vue__) {
46
- return element.__vue__;
47
- }
48
-
49
- return null;
50
- }
51
-
52
- /**
53
- * Busca instancias de Vue en todos los elementos del DOM
54
- * @returns {VueInstance|null} Primera instancia de Vue encontrada o null si no se encuentra ninguna
55
- */
56
- function findVueInstanceInDOM() {
57
- const allElements = document.querySelectorAll('*');
58
-
59
- for (const element of allElements) {
60
- // Vue 3
61
- if (element.__vue_app__) {
62
- return element.__vue_app__;
63
- }
64
-
65
- // Vue 2
66
- if (element.__vue__) {
67
- return element.__vue__;
68
- }
69
- }
70
-
71
- return null;
72
- }
73
-
74
- /**
75
- * Obtiene la instancia de Vue desde variables globales o herramientas de desarrollo
76
- * @returns {VueInstance|null} Instancia de Vue desde el contexto global o null si no se encuentra
77
- */
78
- function getVueFromGlobal() {
79
- // Verificar si Vue está en el objeto global
80
- if (typeof window !== 'undefined') {
81
- // Vue como variable global
82
- if (window.Vue) {
83
- return window.Vue;
84
- }
85
-
86
- // Instancia específica guardada globalmente
87
- if (window.__VUE_APP_INSTANCE__) {
88
- return window.__VUE_APP_INSTANCE__;
89
- }
90
-
91
- // Vue DevTools
92
- if (window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
93
- const apps = window.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps;
94
- if (apps && apps.length > 0) {
95
- return apps[0];
96
- }
97
- }
98
- }
99
-
100
- return null;
101
- }
102
-
103
- /**
104
- * Obtiene el componente raíz específico de Vue 3
105
- * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
106
- * @returns {VueInstance|null} Componente raíz de Vue 3 o null si no se encuentra
107
- */
108
- function getVue3RootComponent(selector = '#app') {
109
- const element = document.querySelector(selector);
110
- if (!element) return null;
111
-
112
- // Vue 3 específico
113
- if (element._vnode && element._vnode.component) {
114
- return element._vnode.component;
115
- }
116
-
117
- if (element.__vueParentComponent) {
118
- return element.__vueParentComponent;
119
- }
120
-
121
- return null;
122
- }
123
-
124
- /**
125
- * Método principal que intenta obtener la instancia de Vue usando múltiples estrategias
126
- * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
127
- * @returns {VueInstance|null} Instancia de Vue encontrada o null si no se encuentra
128
- */
129
- function getVueInstance(selector = '#app') {
130
- let instance = null;
131
-
132
- // Intentar método 1: Desde elemento específico
133
- instance = getVueInstanceFromElement(selector);
134
- if (instance) {
135
- return instance;
136
- }
137
-
138
- // Intentar método 2: Buscar en DOM
139
- instance = findVueInstanceInDOM();
140
- if (instance) {
141
- return instance;
142
- }
143
-
144
- // Intentar método 3: Desde global
145
- instance = getVueFromGlobal();
146
- if (instance) {
147
- return instance;
148
- } // Intentar método 4: Componente raíz Vue 3
149
- instance = getVue3RootComponent(selector);
150
- if (instance) {
151
- return instance;
152
- }
153
-
154
- return null;
155
- }
156
-
157
- /**
158
- * Espera a que una instancia de Vue esté disponible en el DOM
159
- * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
160
- * @param {number} [timeout=5000] - Tiempo máximo de espera en milisegundos
161
- * @returns {Promise<VueInstance>} Promise que resuelve con la instancia de Vue o rechaza si hay timeout
162
- */
163
- function waitForVue(selector = '#app', timeout = 5000) {
164
- return new Promise((resolve, reject) => {
165
- const startTime = Date.now();
166
-
167
- function check() {
168
- const instance = getVueInstance(selector);
169
-
170
- if (instance) {
171
- resolve(instance);
172
- return;
173
- }
174
-
175
- if (Date.now() - startTime > timeout) {
176
- reject(
177
- new Error(
178
- 'Timeout: No se pudo encontrar la instancia de Vue',
179
- ),
180
- );
181
- return;
182
- }
183
-
184
- setTimeout(check, 100);
185
- }
186
-
187
- check();
188
- });
189
- }
190
-
191
- /**
192
- * Obtiene información detallada sobre una instancia de Vue
193
- * @param {VueInstance} instance - Instancia de Vue a analizar
194
- * @returns {VueInstanceInfo|null} Objeto con información detallada de la instancia o null si no es válida
195
- */
196
- function getVueInstanceInfo(instance) {
197
- if (!instance) return null;
198
-
199
- const info = {
200
- version: null,
201
- type: null,
202
- hasRouter: false,
203
- hasStore: false,
204
- components: {},
205
- data: null,
206
- };
207
-
208
- // Detectar versión y tipo
209
- if (instance.version) {
210
- info.version = instance.version;
211
- info.type = 'Vue Constructor';
212
- } else if (instance.config && instance.config.globalProperties) {
213
- info.type = 'Vue 3 App Instance';
214
- info.version = '3.x';
215
- } else if (instance.$options) {
216
- info.type = 'Vue 2 Component Instance';
217
- info.version = '2.x';
218
- }
219
-
220
- // Verificar router
221
- if (
222
- instance.$router ||
223
- (instance.config && instance.config.globalProperties.$router)
224
- ) {
225
- info.hasRouter = true;
226
- }
227
-
228
- // Verificar store (Vuex/Pinia)
229
- if (
230
- instance.$store ||
231
- (instance.config && instance.config.globalProperties.$store)
232
- ) {
233
- info.hasStore = true;
234
- }
235
-
236
- // Obtener componentes (Vue 2)
237
- if (instance.$children) {
238
- info.components = instance.$children.length;
239
- }
240
-
241
- // Obtener data (Vue 2)
242
- if (instance.$data) {
243
- info.data = Object.keys(instance.$data);
244
- }
245
- return info;
246
- }
247
-
248
- /**
249
- * Función principal que obtiene la instancia de Vue con toda la lógica integrada
250
- * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
251
- * @param {number} [timeout=3000] - Tiempo máximo de espera en milisegundos
252
- * @returns {Promise<VueInstance|null>} Promise que resuelve con la instancia de Vue o null si no se encuentra
253
- */
254
- async function obtenerInstanciaVue(selector = '#app', timeout = 3000) {
255
- try {
256
- // Intentar obtener la instancia inmediatamente
257
- let instance = getVueInstance(selector);
258
-
259
- if (instance) {
260
- // Obtener información detallada
261
- const info = getVueInstanceInfo(instance);
262
- console.log('✔️ Instancia Vue encontrada:', {
263
- instance,
264
- info,
265
- version: info?.version || 'Desconocida',
266
- type: info?.type || 'Desconocido',
267
- });
268
- return instance;
269
- }
270
-
271
- // Si no se encuentra inmediatamente, esperar
272
- console.log('⏳ Esperando instancia Vue...');
273
- instance = await waitForVue(selector, timeout);
274
-
275
- if (instance) {
276
- const info = getVueInstanceInfo(instance);
277
- console.log('✔️ Instancia Vue encontrada después de esperar:', {
278
- instance,
279
- info,
280
- version: info?.version || 'Desconocida',
281
- type: info?.type || 'Desconocido',
282
- });
283
- return instance;
284
- }
285
-
286
- console.warn('⚠️ No se pudo encontrar la instancia de Vue');
287
- return null;
288
- } catch (error) {
289
- console.error(' Error obteniendo instancia Vue:', error);
290
- return null;
291
- }
292
- }
293
-
294
- /**
295
- * Exporta la función principal para obtener instancias de Vue
296
- * @default obtenerInstanciaVue
297
- */
298
- export default obtenerInstanciaVue;
299
-
300
- /**
301
- * Exporta funciones adicionales para uso individual
302
- * @namespace VueInstanceHelpers
303
- */
304
- export {
305
- findVueInstanceInDOM,
306
- getVue3RootComponent,
307
- getVueFromGlobal,
308
- getVueInstance,
309
- getVueInstanceFromElement,
310
- getVueInstanceInfo,
311
- obtenerInstanciaVue,
312
- waitForVue,
313
- };
1
+ /* VersaCompiler HMR shim [dev] */
2
+ if (typeof window !== 'undefined' && window.__versaHMR) {
3
+ (() => {
4
+ const _id = new URL(import.meta.url).pathname;
5
+ import.meta.hot = {
6
+ accept(cb) { window.__versaHMR.accept(_id, typeof cb === 'function' ? cb : () => {}); },
7
+ invalidate() { window.__versaHMR._invalidate?.(_id); },
8
+ dispose(cb) { window.__versaHMR._onDispose?.(_id, cb); },
9
+ get data() { return window.__versaHMR._getHotData?.(_id) ?? {}; },
10
+ };
11
+ })();
12
+ }
13
+ /**
14
+ * Script para obtener la instancia de Vue usando solo JavaScript
15
+ * Compatible con Vue 2 y Vue 3
16
+ */
17
+
18
+ /**
19
+ * @typedef {Object} VueInstance
20
+ * @property {string} [version] - Versión de Vue
21
+ * @property {Object} [config] - Configuración de Vue
22
+ * @property {Object} [proxy] - Proxy del componente
23
+ * @property {Object} [$options] - Opciones del componente (Vue 2)
24
+ * @property {Object} [$router] - Router de Vue
25
+ * @property {Object} [$store] - Store de Vuex/Pinia
26
+ * @property {Array} [$children] - Componentes hijos (Vue 2)
27
+ * @property {Object} [$data] - Datos del componente (Vue 2)
28
+ */
29
+
30
+ /**
31
+ * @typedef {Object} VueInstanceInfo
32
+ * @property {string|null} version - Versión de Vue detectada
33
+ * @property {string|null} type - Tipo de instancia de Vue
34
+ * @property {boolean} hasRouter - Indica si tiene Vue Router
35
+ * @property {boolean} hasStore - Indica si tiene Vuex/Pinia
36
+ * @property {Object|number} components - Información de componentes
37
+ * @property {string[]|null} data - Claves de datos del componente
38
+ */
39
+
40
+ /**
41
+ * Obtiene la instancia de Vue desde un elemento específico del DOM
42
+ * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
43
+ * @returns {VueInstance|null} Instancia de Vue o null si no se encuentra
44
+ */
45
+ function getVueInstanceFromElement(selector = '#app') {
46
+ const element = document.querySelector(selector);
47
+ if (!element) {
48
+ return null;
49
+ }
50
+
51
+ // Para Vue 3
52
+ if (element.__vue_app__) {
53
+ return element.__vue_app__;
54
+ }
55
+
56
+ // Para Vue 2
57
+ if (element.__vue__) {
58
+ return element.__vue__;
59
+ }
60
+
61
+ return null;
62
+ }
63
+
64
+ /**
65
+ * Busca instancias de Vue en todos los elementos del DOM
66
+ * @returns {VueInstance|null} Primera instancia de Vue encontrada o null si no se encuentra ninguna
67
+ */
68
+ function findVueInstanceInDOM() {
69
+ const allElements = document.querySelectorAll('*');
70
+
71
+ for (const element of allElements) {
72
+ // Vue 3
73
+ if (element.__vue_app__) {
74
+ return element.__vue_app__;
75
+ }
76
+
77
+ // Vue 2
78
+ if (element.__vue__) {
79
+ return element.__vue__;
80
+ }
81
+ }
82
+
83
+ return null;
84
+ }
85
+
86
+ /**
87
+ * Obtiene la instancia de Vue desde variables globales o herramientas de desarrollo
88
+ * @returns {VueInstance|null} Instancia de Vue desde el contexto global o null si no se encuentra
89
+ */
90
+ function getVueFromGlobal() {
91
+ // Verificar si Vue está en el objeto global
92
+ if (typeof window !== 'undefined') {
93
+ // Vue como variable global
94
+ if (window.Vue) {
95
+ return window.Vue;
96
+ }
97
+
98
+ // Instancia específica guardada globalmente
99
+ if (window.__VUE_APP_INSTANCE__) {
100
+ return window.__VUE_APP_INSTANCE__;
101
+ }
102
+
103
+ // Vue DevTools
104
+ if (window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
105
+ const apps = window.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps;
106
+ if (apps && apps.length > 0) {
107
+ return apps[0];
108
+ }
109
+ }
110
+ }
111
+
112
+ return null;
113
+ }
114
+
115
+ /**
116
+ * Obtiene el componente raíz específico de Vue 3
117
+ * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
118
+ * @returns {VueInstance|null} Componente raíz de Vue 3 o null si no se encuentra
119
+ */
120
+ function getVue3RootComponent(selector = '#app') {
121
+ const element = document.querySelector(selector);
122
+ if (!element) return null;
123
+
124
+ // Vue 3 específico
125
+ if (element._vnode && element._vnode.component) {
126
+ return element._vnode.component;
127
+ }
128
+
129
+ if (element.__vueParentComponent) {
130
+ return element.__vueParentComponent;
131
+ }
132
+
133
+ return null;
134
+ }
135
+
136
+ /**
137
+ * Método principal que intenta obtener la instancia de Vue usando múltiples estrategias
138
+ * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
139
+ * @returns {VueInstance|null} Instancia de Vue encontrada o null si no se encuentra
140
+ */
141
+ function getVueInstance(selector = '#app') {
142
+ let instance = null;
143
+
144
+ // Intentar método 1: Desde elemento específico
145
+ instance = getVueInstanceFromElement(selector);
146
+ if (instance) {
147
+ return instance;
148
+ }
149
+
150
+ // Intentar método 2: Buscar en DOM
151
+ instance = findVueInstanceInDOM();
152
+ if (instance) {
153
+ return instance;
154
+ }
155
+
156
+ // Intentar método 3: Desde global
157
+ instance = getVueFromGlobal();
158
+ if (instance) {
159
+ return instance;
160
+ } // Intentar método 4: Componente raíz Vue 3
161
+ instance = getVue3RootComponent(selector);
162
+ if (instance) {
163
+ return instance;
164
+ }
165
+
166
+ return null;
167
+ }
168
+
169
+ /**
170
+ * Espera a que una instancia de Vue esté disponible en el DOM
171
+ * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
172
+ * @param {number} [timeout=5000] - Tiempo máximo de espera en milisegundos
173
+ * @returns {Promise<VueInstance>} Promise que resuelve con la instancia de Vue o rechaza si hay timeout
174
+ */
175
+ function waitForVue(selector = '#app', timeout = 5000) {
176
+ return new Promise((resolve, reject) => {
177
+ const startTime = Date.now();
178
+
179
+ function check() {
180
+ const instance = getVueInstance(selector);
181
+
182
+ if (instance) {
183
+ resolve(instance);
184
+ return;
185
+ }
186
+
187
+ if (Date.now() - startTime > timeout) {
188
+ reject(
189
+ new Error(
190
+ 'Timeout: No se pudo encontrar la instancia de Vue',
191
+ ),
192
+ );
193
+ return;
194
+ }
195
+
196
+ setTimeout(check, 100);
197
+ }
198
+
199
+ check();
200
+ });
201
+ }
202
+
203
+ /**
204
+ * Obtiene información detallada sobre una instancia de Vue
205
+ * @param {VueInstance} instance - Instancia de Vue a analizar
206
+ * @returns {VueInstanceInfo|null} Objeto con información detallada de la instancia o null si no es válida
207
+ */
208
+ function getVueInstanceInfo(instance) {
209
+ if (!instance) return null;
210
+
211
+ const info = {
212
+ version: null,
213
+ type: null,
214
+ hasRouter: false,
215
+ hasStore: false,
216
+ components: {},
217
+ data: null,
218
+ };
219
+
220
+ // Detectar versión y tipo
221
+ if (instance.version) {
222
+ info.version = instance.version;
223
+ info.type = 'Vue Constructor';
224
+ } else if (instance.config && instance.config.globalProperties) {
225
+ info.type = 'Vue 3 App Instance';
226
+ info.version = '3.x';
227
+ } else if (instance.$options) {
228
+ info.type = 'Vue 2 Component Instance';
229
+ info.version = '2.x';
230
+ }
231
+
232
+ // Verificar router
233
+ if (
234
+ instance.$router ||
235
+ (instance.config && instance.config.globalProperties.$router)
236
+ ) {
237
+ info.hasRouter = true;
238
+ }
239
+
240
+ // Verificar store (Vuex/Pinia)
241
+ if (
242
+ instance.$store ||
243
+ (instance.config && instance.config.globalProperties.$store)
244
+ ) {
245
+ info.hasStore = true;
246
+ }
247
+
248
+ // Obtener componentes (Vue 2)
249
+ if (instance.$children) {
250
+ info.components = instance.$children.length;
251
+ }
252
+
253
+ // Obtener data (Vue 2)
254
+ if (instance.$data) {
255
+ info.data = Object.keys(instance.$data);
256
+ }
257
+ return info;
258
+ }
259
+
260
+ /**
261
+ * Función principal que obtiene la instancia de Vue con toda la lógica integrada
262
+ * @param {string} [selector='#app'] - Selector CSS del elemento que contiene la aplicación Vue
263
+ * @param {number} [timeout=3000] - Tiempo máximo de espera en milisegundos
264
+ * @returns {Promise<VueInstance|null>} Promise que resuelve con la instancia de Vue o null si no se encuentra
265
+ */
266
+ async function obtenerInstanciaVue(selector = '#app', timeout = 3000) {
267
+ try {
268
+ // Intentar obtener la instancia inmediatamente
269
+ let instance = getVueInstance(selector);
270
+
271
+ if (instance) {
272
+ // Obtener información detallada
273
+ const info = getVueInstanceInfo(instance);
274
+ console.log('✔️ Instancia Vue encontrada:', {
275
+ instance,
276
+ info,
277
+ version: info?.version || 'Desconocida',
278
+ type: info?.type || 'Desconocido',
279
+ });
280
+ return instance;
281
+ }
282
+
283
+ // Si no se encuentra inmediatamente, esperar
284
+ console.log('⏳ Esperando instancia Vue...');
285
+ instance = await waitForVue(selector, timeout);
286
+
287
+ if (instance) {
288
+ const info = getVueInstanceInfo(instance);
289
+ console.log('✔️ Instancia Vue encontrada después de esperar:', {
290
+ instance,
291
+ info,
292
+ version: info?.version || 'Desconocida',
293
+ type: info?.type || 'Desconocido',
294
+ });
295
+ return instance;
296
+ }
297
+
298
+ console.warn('⚠️ No se pudo encontrar la instancia de Vue');
299
+ return null;
300
+ } catch (error) {
301
+ console.error('❌ Error obteniendo instancia Vue:', error);
302
+ return null;
303
+ }
304
+ }
305
+
306
+ /**
307
+ * Exporta la función principal para obtener instancias de Vue
308
+ * @default obtenerInstanciaVue
309
+ */
310
+ export default obtenerInstanciaVue;
311
+
312
+ /**
313
+ * Exporta funciones adicionales para uso individual
314
+ * @namespace VueInstanceHelpers
315
+ */
316
+ export {
317
+ findVueInstanceInDOM,
318
+ getVue3RootComponent,
319
+ getVueFromGlobal,
320
+ getVueInstance,
321
+ getVueInstanceFromElement,
322
+ getVueInstanceInfo,
323
+ obtenerInstanciaVue,
324
+ waitForVue,
325
+ };