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
Specifies the type of module to be imported.
- **Type:** `'esm' | 'cjs'`
- **Default:** `'esm'`
- **Example:**
```ts
Components({
resolvers: [
VantResolver({
module: 'cjs',
}),
],
});
```
### ssr
- **Type:** `boolean`
- **Default:** `undefined`
This option is deprecated. Please use the `module` option to set the module type.