diff --git a/README.md b/README.md index e90b4fb8..16b89051 100644 --- a/README.md +++ b/README.md @@ -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$/], }), ], } diff --git a/src/core/unplugin.ts b/src/core/unplugin.ts index 5b8bd9cc..fcc9ca58 100644 --- a/src/core/unplugin.ts +++ b/src/core/unplugin.ts @@ -5,7 +5,7 @@ import { Context } from './context' export default createUnplugin((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)