Skip to content

Commit

Permalink
Revert "docs: add guide for on-demand import with Rspack (#16841)"
Browse files Browse the repository at this point in the history
This reverts commit c2843cd.
  • Loading branch information
0song committed May 31, 2024
1 parent 203f76b commit 07cdb93
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions docs/en-US/guide/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ First you need to install `unplugin-vue-components` and `unplugin-auto-import`.
npm install -D unplugin-vue-components unplugin-auto-import
```

Then add the code below into your `Vite`, `Webpack` or `Rspack` config file.
Then add the code below into your `Vite` or `Webpack` config file.

##### Vite

Expand Down Expand Up @@ -98,29 +98,6 @@ module.exports = {
}
```

##### Rspack

Example of how to register these plugins in [Rspack](https://rspack.dev/):

```js
// rspack.config.js
const AutoImport = require('unplugin-auto-import/rspack')
const Components = require('unplugin-vue-components/rspack')
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')

module.exports = {
// ...
plugins: [
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
}
```

For more bundlers ([Rollup](https://rollupjs.org/), [Vue CLI](https://cli.vuejs.org/)) and configs please reference [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components#installation) and [unplugin-auto-import](https://github.com/antfu/unplugin-auto-import#install).

#### Nuxt
Expand Down

0 comments on commit 07cdb93

Please sign in to comment.