versacompiler 2.3.1 → 2.3.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.
- package/dist/compiler/vuejs.js +5 -3
- package/package.json +24 -24
package/dist/compiler/vuejs.js
CHANGED
|
@@ -47,8 +47,10 @@ class VueHMRInjectionCache {
|
|
|
47
47
|
// Generar nueva inyección HMR
|
|
48
48
|
const vueImportPattern = /import\s*\{[^}]*\bref\b[^}]*\}\s*from\s*['"]vue['"]/;
|
|
49
49
|
const hasRefImport = vueImportPattern.test(originalData);
|
|
50
|
+
// ✨ FIX: Construir el import dinámicamente para evitar que el compilador lo transforme
|
|
51
|
+
const vueRefImport = ['import', '{ ref }', 'from', '"vue"'].join(' ') + ';';
|
|
50
52
|
const varContent = `
|
|
51
|
-
${hasRefImport ? '' :
|
|
53
|
+
${hasRefImport ? '' : vueRefImport}
|
|
52
54
|
const versaComponentKey = ref(0);
|
|
53
55
|
`;
|
|
54
56
|
let injectedData;
|
|
@@ -248,8 +250,8 @@ export const preCompileVue = async (data, source, isProd = false) => {
|
|
|
248
250
|
prefixIdentifiers: true,
|
|
249
251
|
hoistStatic: isProd,
|
|
250
252
|
cacheHandlers: isProd,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
+
runtimeGlobalName: 'Vue',
|
|
254
|
+
runtimeModuleName: 'vue',
|
|
253
255
|
whitespace: 'condense',
|
|
254
256
|
ssr: false,
|
|
255
257
|
comments: !isProd, // ✨ Eliminar comentarios HTML del template
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "versacompiler",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Una herramienta para compilar y minificar archivos .vue, .js y .ts para proyectos de Vue 3 con soporte para TypeScript.",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/kriollo/versaCompiler#readme",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@vue/compiler-dom": "^3.5.
|
|
52
|
-
"@vue/reactivity": "^3.5.
|
|
53
|
-
"@vue/runtime-core": "^3.5.
|
|
54
|
-
"@vue/runtime-dom": "^3.5.
|
|
51
|
+
"@vue/compiler-dom": "^3.5.26",
|
|
52
|
+
"@vue/reactivity": "^3.5.26",
|
|
53
|
+
"@vue/runtime-core": "^3.5.26",
|
|
54
|
+
"@vue/runtime-dom": "^3.5.26",
|
|
55
55
|
"browser-sync": "^3.0.4",
|
|
56
56
|
"chalk": "5.6.2",
|
|
57
57
|
"chokidar": "^5.0.0",
|
|
58
|
-
"enhanced-resolve": "^5.18.
|
|
59
|
-
"execa": "^9.6.
|
|
58
|
+
"enhanced-resolve": "^5.18.4",
|
|
59
|
+
"execa": "^9.6.1",
|
|
60
60
|
"find-root": "^1.1.0",
|
|
61
|
-
"fs-extra": "^11.3.
|
|
61
|
+
"fs-extra": "^11.3.3",
|
|
62
62
|
"get-port": "^7.1.0",
|
|
63
63
|
"minify-html-literals": "^1.3.5",
|
|
64
64
|
"minimatch": "^10.1.1",
|
|
@@ -66,43 +66,43 @@
|
|
|
66
66
|
"oxc-parser": "^0.108.0",
|
|
67
67
|
"oxc-transform": "^0.108.0",
|
|
68
68
|
"resolve": "^1.22.11",
|
|
69
|
-
"tsx": "^4.
|
|
69
|
+
"tsx": "^4.21.0",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
71
|
"vue": "3.5.26",
|
|
72
72
|
"yargs": "^18.0.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@eslint/eslintrc": "^3.3.
|
|
76
|
-
"@tailwindcss/cli": "^4.1.
|
|
75
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
76
|
+
"@tailwindcss/cli": "^4.1.18",
|
|
77
77
|
"@types/browser-sync": "^2.29.1",
|
|
78
78
|
"@types/find-root": "^1.1.4",
|
|
79
79
|
"@types/fs-extra": "^11.0.4",
|
|
80
80
|
"@types/jest": "^30.0.0",
|
|
81
81
|
"@types/mocha": "^10.0.10",
|
|
82
|
-
"@types/node": "^25.0.
|
|
82
|
+
"@types/node": "^25.0.9",
|
|
83
83
|
"@types/resolve": "^1.20.6",
|
|
84
84
|
"@types/yargs": "^17.0.35",
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
86
|
-
"@typescript-eslint/parser": "^8.
|
|
87
|
-
"@vitest/coverage-v8": "^4.0.
|
|
88
|
-
"@vitest/ui": "^4.0.
|
|
85
|
+
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
86
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
87
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
88
|
+
"@vitest/ui": "^4.0.17",
|
|
89
89
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
90
90
|
"@vue/test-utils": "^2.4.6",
|
|
91
91
|
"code-tag": "^1.2.0",
|
|
92
|
-
"eslint": "^9.39.
|
|
92
|
+
"eslint": "^9.39.2",
|
|
93
93
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
94
94
|
"eslint-plugin-import": "^2.32.0",
|
|
95
|
-
"eslint-plugin-oxlint": "^1.
|
|
95
|
+
"eslint-plugin-oxlint": "^1.39.0",
|
|
96
96
|
"eslint-plugin-promise": "^7.2.1",
|
|
97
97
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
98
|
-
"eslint-plugin-vue": "^10.
|
|
99
|
-
"oxlint": "^1.
|
|
98
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
99
|
+
"oxlint": "^1.39.0",
|
|
100
100
|
"pinia": "^3.0.4",
|
|
101
101
|
"prettier": "3.8.0",
|
|
102
|
-
"rimraf": "^6.1.
|
|
103
|
-
"sweetalert2": "^11.26.
|
|
104
|
-
"tailwindcss": "^4.1.
|
|
105
|
-
"vitest": "^4.0.
|
|
102
|
+
"rimraf": "^6.1.2",
|
|
103
|
+
"sweetalert2": "^11.26.17",
|
|
104
|
+
"tailwindcss": "^4.1.18",
|
|
105
|
+
"vitest": "^4.0.17",
|
|
106
106
|
"vue-eslint-parser": "^10.2.0",
|
|
107
107
|
"vue-router": "^4.6.4"
|
|
108
108
|
},
|