Skip to content

Commit

Permalink
fix(docs): fix the wrong filename (#2510)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjunjian authored Nov 12, 2024
1 parent a3e30c3 commit a2308ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/webdoc/import-components-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ Vite
import autoImportPlugin from '@opentiny/unplugin-tiny-vue'

export default {
plugins: [autoImportPlugin()]
plugins: [autoImportPlugin('vite')]
}
```

Webpack

```js
// webpack.config.js
// vue.config.js

const autoImportPlugin = require('@opentiny/unplugin-tiny-vue')

module.exports = {
plugins: [autoImportPlugin()]
plugins: [autoImportPlugin('webpack')]
}
```

Expand Down
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/webdoc/import-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
Webpack

```js
// webpack.config.js
// vue.config.js

const autoImportPlugin = require('@opentiny/unplugin-tiny-vue')

Expand Down Expand Up @@ -64,7 +64,7 @@ export default {
Webpack

```js
// webpack.config.js
// vue.config.js

const Components = require('unplugin-vue-components/webpack').default
const TinyVueResolver = require('@opentiny/unplugin-tiny-vue').TinyVueResolver
Expand Down Expand Up @@ -158,7 +158,7 @@ export default {
}
```

#### 温馨提示
#### 温馨提示

因为 `pnpm` 工程的特点之一是:项目中显示引入的依赖需要提前在 `package.json` 中声明(防止幽灵依赖),所以在 `pnpm` 工程使用该插件时需要在 `package.json` 中声明项目用到的每一个 `TinyVue` 组件依赖(`TinyVue` 每个组件都是一个 `npm` 包)。依赖声明可以参考以下配置:

Expand Down

0 comments on commit a2308ce

Please sign in to comment.