create-lve 0.4.10 → 0.4.12
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/index.js
CHANGED
|
@@ -23,8 +23,8 @@ async function main() {
|
|
|
23
23
|
path: () =>
|
|
24
24
|
p.text({
|
|
25
25
|
message: '项目名称',
|
|
26
|
-
placeholder: '
|
|
27
|
-
defaultValue: '
|
|
26
|
+
placeholder: 'react-app',
|
|
27
|
+
defaultValue: 'react-app',
|
|
28
28
|
validate: (value) => {
|
|
29
29
|
if (!value || value.length === 0) return
|
|
30
30
|
if (value.match(/[<>:"|?*]/)) return '路径包含非法字符'
|
|
@@ -42,8 +42,8 @@ async function main() {
|
|
|
42
42
|
p.select({
|
|
43
43
|
message: '选择框架',
|
|
44
44
|
options: [
|
|
45
|
-
{ value: 'vue', label: 'Vue 3', hint: '' },
|
|
46
45
|
{ value: 'react', label: 'React 19', hint: '' },
|
|
46
|
+
{ value: 'vue', label: 'Vue 3', hint: '' },
|
|
47
47
|
{ value: 'next', label: 'Next.js 16', hint: '' },
|
|
48
48
|
],
|
|
49
49
|
}),
|
package/package.json
CHANGED
|
@@ -13,12 +13,12 @@ export default defineConfig({
|
|
|
13
13
|
},
|
|
14
14
|
lint: { options: { typeAware: true, typeCheck: true } },
|
|
15
15
|
plugins: [
|
|
16
|
+
/* VITE_PLUS_PLUGINS */
|
|
16
17
|
react({
|
|
17
18
|
babel: {
|
|
18
19
|
plugins: [['babel-plugin-react-compiler', { target: '19' }]],
|
|
19
20
|
},
|
|
20
21
|
}),
|
|
21
|
-
/* VITE_PLUS_PLUGINS */
|
|
22
22
|
],
|
|
23
23
|
resolve: {
|
|
24
24
|
alias: {
|