feat(auto-import-resolver): add module option (#12383)

This commit is contained in:
neverland
2023-10-22 21:45:24 +08:00
committed by GitHub
parent cc9aced041
commit 295865a829
4 changed files with 81 additions and 13 deletions
@@ -147,3 +147,28 @@ Components({
],
});
```
### module
设置引用的模块类型。
- **Type** `'esm' | 'cjs'`
- **Default** `'esm'`
- **Example**
```ts
Components({
resolvers: [
VantResolver({
module: 'cjs',
}),
],
});
```
### ssr
- **Type** `boolean`
- **Default** `undefined`
此选项已废弃,请使用 `module` 选项来设置模块类型。