Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
vite: fix compatibility in js #97
Browse files Browse the repository at this point in the history
  • Loading branch information
Lxxyx committed Jun 2, 2021
1 parent 652a05c commit e3ac456
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vite-plugin-hooks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export class VitePlugin implements Plugin {
}
}

export default (): Plugin => {
function createPlugin() {
return new VitePlugin()
}

export default createPlugin

module.exports = createPlugin

0 comments on commit e3ac456

Please sign in to comment.