Skip to content

Commit

Permalink
fix: vue transforming targets
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 30, 2021
1 parent 53a5272 commit da4d677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default {

// `customLoaderMatcher` is depreacted, use `include` instead
- customLoaderMatcher: id => id.endsWith('.md'),
+ include: [/\.vue$/, /\.vue\?vue&type=template/, /\.md$/],
+ include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
}),
],
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/unplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Context } from './context'

export default createUnplugin<Options>((options = {}) => {
const filter = createFilter(
options.include || [/\.vue$/, /\.vue\?vue&type=template/],
options.include || [/\.vue$/, /\.vue\?vue/],
options.exclude || [/node_modules/, /\.git/, /\.nuxt/],
)
const ctx: Context = new Context(options)
Expand Down

0 comments on commit da4d677

Please sign in to comment.