Skip to content

Commit ad6ba73

Browse files
committed
docs: no auto import section
1 parent f6923a5 commit ad6ba73

File tree

1 file changed

+1
-22
lines changed
  • packages/docs/file-based-routing

1 file changed

+1
-22
lines changed

packages/docs/file-based-routing/index.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -278,27 +278,6 @@ export const createApp = ViteSSG(
278278
)
279279
```
280280

281-
### Auto Imports
282-
283-
If you are using [unplugin-auto-import](https://github.com/unplugin/unplugin-auto-import), make sure to remove the `vue-router` preset and use the one exported by `vue-router`:
284-
285-
<!-- prettier-ignore -->
286-
```ts
287-
import { defineConfig } from 'vite'
288-
import AutoImport from 'unplugin-auto-import/vite'
289-
import { VueRouterAutoImports } from 'vue-router/unplugin' // [!code ++]
290-
291-
export default defineConfig({
292-
plugins: [
293-
// other plugins
294-
AutoImport({
295-
imports: [
296-
'vue-router', // [!code --]
297-
VueRouterAutoImports, // [!code ++]
298-
],
299-
}),
300-
],
301-
})
302-
```
281+
## ESLint
303282

304283
If you use ESlint, check [the ESlint section](./eslint).

0 commit comments

Comments
 (0)