create-lve 0.4.13 → 0.4.15

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/config.js CHANGED
@@ -50,9 +50,19 @@ const FRAMEWORK_CONFIG = {
50
50
  react: {
51
51
  deps: (isUno) => ({
52
52
  dependencies: isUno ? { '@unocss/reset': 'latest' } : {},
53
- devDependencies: isUno
54
- ? { unocss: 'latest' }
55
- : { tailwindcss: 'latest', '@tailwindcss/vite': 'latest' },
53
+ devDependencies: {
54
+ 'vite-plus': 'latest',
55
+ '@vitejs/plugin-react': 'latest',
56
+ '@rolldown/plugin-babel': 'latest',
57
+ '@babel/core': 'latest',
58
+ 'babel-plugin-react-compiler': 'latest',
59
+ '@types/babel__core': 'latest',
60
+ typescript: 'latest',
61
+
62
+ ...(isUno
63
+ ? { unocss: 'latest' }
64
+ : { tailwindcss: 'latest', '@tailwindcss/vite': 'latest' }),
65
+ },
56
66
 
57
67
  pnpm: {
58
68
  overrides: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lve",
3
- "version": "0.4.13",
3
+ "version": "0.4.15",
4
4
  "bin": {
5
5
  "create-lve": "index.js"
6
6
  },
@@ -22,7 +22,12 @@
22
22
  "noUnusedParameters": true,
23
23
  "erasableSyntaxOnly": true,
24
24
  "noFallthroughCasesInSwitch": true,
25
- "noUncheckedSideEffectImports": true
25
+ "noUncheckedSideEffectImports": true,
26
+
27
+ /* Path aliases */
28
+ "paths": {
29
+ "@/*": ["./src/*"]
30
+ }
26
31
  },
27
32
  "include": ["src"]
28
33
  }
@@ -1,6 +1,6 @@
1
- import { defineConfig, loadEnv } from 'vite-plus'
2
- import react from '@vitejs/plugin-react'
3
- import { fileURLToPath, URL } from 'node:url'
1
+ import { defineConfig, loadEnv, lazyPlugins } from 'vite-plus'
2
+ import react, { reactCompilerPreset } from '@vitejs/plugin-react'
3
+ // import { fileURLToPath, URL } from 'node:url'
4
4
 
5
5
  const mode = process.env.NODE_ENV || 'development'
6
6
  const env = loadEnv(mode, process.cwd(), '')
@@ -14,16 +14,21 @@ export default defineConfig({
14
14
  lint: { options: { typeAware: true, typeCheck: true } },
15
15
  plugins: [
16
16
  /* VITE_PLUS_PLUGINS */
17
- react({
18
- babel: {
19
- plugins: [['babel-plugin-react-compiler', { target: '19' }]],
20
- },
17
+ react(),
18
+ lazyPlugins(async () => {
19
+ const { default: babel } = await import('@rolldown/plugin-babel')
20
+ return [
21
+ babel({
22
+ presets: [reactCompilerPreset()],
23
+ }),
24
+ ]
21
25
  }),
22
26
  ],
23
27
  resolve: {
24
- alias: {
25
- '@': fileURLToPath(new URL('./src', import.meta.url)),
26
- },
28
+ // alias: {
29
+ // '@': fileURLToPath(new URL('./src', import.meta.url)),
30
+ // },
31
+ tsconfigPaths: true,
27
32
  },
28
33
  server: {
29
34
  proxy: {