Skip to content

Commit 3deed0f

Browse files
committed
wip
1 parent fb0237a commit 3deed0f

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

UPGRADE.md

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,46 +29,31 @@ Create a `vite.config.js` file in the root of your project:
2929
```js
3030
import { defineConfig } from 'vite'
3131
import laravel from 'laravel-vite-plugin'
32+
// import react from '@vitejs/plugin-react'
3233
// import vue from '@vitejs/plugin-vue'
3334

3435
export default defineConfig({
3536
plugins: [
36-
// Single entry point
37-
laravel('resources/js/app.js'),
38-
39-
// Multiple entry points
40-
// laravel([
41-
// 'resources/js/app.js',
42-
// 'resources/js/other.js',
43-
// ]),
44-
45-
// With SSR
46-
// laravel({
47-
// input: 'resources/js/app.js',
48-
// ssr: 'resources/js/ssr.js',
49-
// }),
50-
51-
// If you are using the Vue plugin, you will need the following options:
37+
laravel(),
38+
// react(),
5239
// vue({
5340
// template: {
5441
// transformAssetUrls: {
55-
// base: '',
42+
// base: null,
5643
// includeAbsolute: false,
5744
// },
5845
// },
5946
// }),
6047
],
61-
resolve: {
62-
alias: {
63-
'@': '/resources/js',
64-
65-
// If you are using Ziggy (such as with Inertia) and SSR you will need this alias:
66-
// ziggy: 'vendor/tightenco/ziggy/dist/index.es.js',
67-
},
68-
},
6948
})
7049
```
7150

51+
If your entry point is not `resources/js/app.js`, you should read the [entry point docs](https://github.com/laravel/vite-plugin/blob/docs/docs/vite.md#entry-points) to learn how to configure the Laravel plugin for your project.
52+
53+
### Working with JSX
54+
55+
Any files containing JSX are required to have the `.jsx` or `.tsx` extension.
56+
7257
### Update NPM Scripts
7358

7459
Update your NPM scripts in `package.json`:

0 commit comments

Comments
 (0)