versacompiler 2.3.0 → 2.3.1

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.
@@ -207,6 +207,7 @@ export const minifyJS = async (data, filename, isProd = true) => {
207
207
  const options = {
208
208
  compress: {
209
209
  target: 'es2020',
210
+ unused: true,
210
211
  },
211
212
  mangle: {
212
213
  toplevel: true,
@@ -248,8 +248,8 @@ export const preCompileVue = async (data, source, isProd = false) => {
248
248
  prefixIdentifiers: true,
249
249
  hoistStatic: isProd,
250
250
  cacheHandlers: isProd,
251
- runtimeGlobalName: 'Vue',
252
- runtimeModuleName: '/node_modules/vue/dist/vue.esm-browser.js',
251
+ // runtimeGlobalName: '/node_modules/vue/dist/vue.esm-browser.js',
252
+ // runtimeModuleName: '/node_modules/vue/dist/vue.esm-browser.js',
253
253
  whitespace: 'condense',
254
254
  ssr: false,
255
255
  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.0",
3
+ "version": "2.3.1",
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": {
@@ -18,7 +18,8 @@
18
18
  "scripts": {
19
19
  "dev": "tsx --watch src/main.ts --watch --verbose --tailwind",
20
20
  "file": "tsx src/main.ts ",
21
- "compile": "tsx src/main.ts --all --cc --co -y --verbose --prod",
21
+ "compile": "tsx src/main.ts --all --cc -y --verbose --prod",
22
+ "compileDev": "tsx src/main.ts --all --cc -y --verbose",
22
23
  "test": "vitest run",
23
24
  "test:watch": "vitest",
24
25
  "test:ui": "vitest --ui",