Skip to content

Commit

Permalink
fix: vite 3.1 transform target
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 12, 2022
1 parent ef3c4c7 commit c09e0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/unplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const PLUGIN_NAME = 'unplugin:webpack'

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

0 comments on commit c09e0c1

Please sign in to comment.