Skip to content

Commit 8515f48

Browse files
committed
fix!: resolve include/exclude paths against passed cwd
1 parent 2a1a606 commit 8515f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface ImpoundOptions {
2121
const RELATIVE_IMPORT_RE = /^\.\.?\//
2222

2323
export const ImpoundPlugin = createUnplugin((options: ImpoundOptions) => {
24-
const filter = createFilter(options.include, options.exclude)
24+
const filter = createFilter(options.include, options.exclude, { resolve: options.cwd })
2525
const proxy = resolvePath('unenv/runtime/mock/proxy', { url: import.meta.url })
2626

2727
return {

0 commit comments

Comments
 (0)