@varlet/cli 3.3.8 → 3.3.10
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/lib/node/compiler/compileScript.js +2 -1
- package/package.json +13 -14
- package/preset.cjs +0 -3
|
@@ -5,6 +5,7 @@ import { getVersion, isDir, isJsx, isTsx, replaceExt } from '../shared/fsUtils.j
|
|
|
5
5
|
import { extractStyleDependencies, IMPORT_CSS_RE, IMPORT_LESS_RE, IMPORT_SCSS_RE } from './compileStyle.js';
|
|
6
6
|
import { resolve, relative, extname, dirname } from 'path';
|
|
7
7
|
import { getVarletConfig } from '../config/varlet.config.js';
|
|
8
|
+
import jsx from '@vue/babel-plugin-jsx';
|
|
8
9
|
import fse from 'fs-extra';
|
|
9
10
|
import esbuild from 'esbuild';
|
|
10
11
|
const { writeFileSync, readdirSync, readFileSync, removeSync, writeFile, pathExistsSync } = fse;
|
|
@@ -105,7 +106,7 @@ export async function compileScriptByBabel(script, file) {
|
|
|
105
106
|
presets: ['@babel/preset-typescript'],
|
|
106
107
|
plugins: [
|
|
107
108
|
[
|
|
108
|
-
|
|
109
|
+
jsx,
|
|
109
110
|
{
|
|
110
111
|
enableObjectSlots: false,
|
|
111
112
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/cli",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "cli of varlet",
|
|
6
6
|
"bin": {
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"client.d.ts",
|
|
21
21
|
"template",
|
|
22
22
|
"site",
|
|
23
|
-
"tsconfig.json"
|
|
24
|
-
"preset.cjs"
|
|
23
|
+
"tsconfig.json"
|
|
25
24
|
],
|
|
26
25
|
"engines": {
|
|
27
26
|
"node": "^14.18.0 || >=16.0.0"
|
|
@@ -34,13 +33,13 @@
|
|
|
34
33
|
"url": "https://github.com/varletjs/varlet/issues"
|
|
35
34
|
},
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"@babel/core": "^7.
|
|
38
|
-
"@babel/preset-typescript": "^7.
|
|
36
|
+
"@babel/core": "^7.24.7",
|
|
37
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
39
38
|
"@varlet/icon-builder": "0.2.14",
|
|
40
39
|
"@varlet/release": "^0.2.5",
|
|
41
40
|
"@vitejs/plugin-vue": "5.0.4",
|
|
42
41
|
"@vitejs/plugin-vue-jsx": "3.1.0",
|
|
43
|
-
"@vue/babel-plugin-jsx": "1.2.
|
|
42
|
+
"@vue/babel-plugin-jsx": "1.2.2",
|
|
44
43
|
"@vue/compiler-sfc": "3.4.21",
|
|
45
44
|
"@vue/runtime-core": "3.4.21",
|
|
46
45
|
"chokidar": "^3.5.2",
|
|
@@ -64,8 +63,8 @@
|
|
|
64
63
|
"vite": "5.0.10",
|
|
65
64
|
"vitest": "1.1.0",
|
|
66
65
|
"vue": "3.4.21",
|
|
67
|
-
"@varlet/shared": "3.3.
|
|
68
|
-
"@varlet/vite-plugins": "3.3.
|
|
66
|
+
"@varlet/shared": "3.3.10",
|
|
67
|
+
"@varlet/vite-plugins": "3.3.10"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
71
70
|
"@types/babel__core": "^7.20.1",
|
|
@@ -80,9 +79,9 @@
|
|
|
80
79
|
"@types/semver": "^7.3.9",
|
|
81
80
|
"@types/sharp": "0.31.1",
|
|
82
81
|
"rimraf": "^5.0.1",
|
|
83
|
-
"@varlet/ui": "3.3.
|
|
84
|
-
"@varlet/
|
|
85
|
-
"@varlet/
|
|
82
|
+
"@varlet/ui": "3.3.10",
|
|
83
|
+
"@varlet/touch-emulator": "3.3.10",
|
|
84
|
+
"@varlet/icons": "3.3.10"
|
|
86
85
|
},
|
|
87
86
|
"peerDependencies": {
|
|
88
87
|
"@vitest/coverage-istanbul": "1.1.0",
|
|
@@ -94,9 +93,9 @@
|
|
|
94
93
|
"lodash-es": "^4.17.21",
|
|
95
94
|
"vue": "3.4.21",
|
|
96
95
|
"vue-router": "4.2.0",
|
|
97
|
-
"@varlet/touch-emulator": "3.3.
|
|
98
|
-
"@varlet/ui": "3.3.
|
|
99
|
-
"@varlet/icons": "3.3.
|
|
96
|
+
"@varlet/touch-emulator": "3.3.10",
|
|
97
|
+
"@varlet/ui": "3.3.10",
|
|
98
|
+
"@varlet/icons": "3.3.10"
|
|
100
99
|
},
|
|
101
100
|
"scripts": {
|
|
102
101
|
"dev": "tsc --watch",
|
package/preset.cjs
DELETED