Skip to content

Commit

Permalink
chore: fix plugin-vue build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 23, 2021
1 parent f6a91f0 commit e4fbe06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-vue/src/index.ts
Expand Up @@ -46,7 +46,7 @@ export interface Options {

/**
* Transform Vue SFCs into custom elements.
* **requires Vue >= 3.2.0 & Vite >= 2.4.4**
* **requires Vue \>= 3.2.0 & Vite \>= 2.4.4**
* - `true`: all `*.vue` imports are converted into custom elements
* - `string | RegExp`: matched files are converted into custom elements
*
Expand Down Expand Up @@ -79,7 +79,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {

const customElementFilter =
typeof rawOptions.customElement === 'boolean'
? () => rawOptions.customElement
? () => rawOptions.customElement as boolean
: createFilter(rawOptions.customElement || /\.ce\.vue$/)

return {
Expand Down

0 comments on commit e4fbe06

Please sign in to comment.