Skip to content

Commit da4d677

Browse files
committed
fix: vue transforming targets
1 parent 53a5272 commit da4d677

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export default {
251251

252252
// `customLoaderMatcher` is depreacted, use `include` instead
253253
- customLoaderMatcher: id => id.endsWith('.md'),
254-
+ include: [/\.vue$/, /\.vue\?vue&type=template/, /\.md$/],
254+
+ include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
255255
}),
256256
],
257257
}

src/core/unplugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Context } from './context'
55

66
export default createUnplugin<Options>((options = {}) => {
77
const filter = createFilter(
8-
options.include || [/\.vue$/, /\.vue\?vue&type=template/],
8+
options.include || [/\.vue$/, /\.vue\?vue/],
99
options.exclude || [/node_modules/, /\.git/, /\.nuxt/],
1010
)
1111
const ctx: Context = new Context(options)

0 commit comments

Comments
 (0)