Skip to content

Commit 85cd163

Browse files
committed
fix: add watch file
closes #34
1 parent 92a533a commit 85cd163

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const unplugin: UnpluginInstance<Options | undefined, false> = createUnplugin(
5050
},
5151
async handler(id) {
5252
const file = cleanUrl(id)
53+
this.addWatchFile(file)
5354
const context = this.getNativeBuildContext?.()
5455
const transform =
5556
context?.framework === 'esbuild'

0 commit comments

Comments
 (0)