Skip to content

Commit

Permalink
refactor(plugin-vue): respect customElment: false
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 23, 2021
1 parent 8b232a7 commit f6a91f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
)

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

return {
Expand Down

0 comments on commit f6a91f0

Please sign in to comment.