Skip to content

Commit

Permalink
replace hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
imal1 committed Sep 19, 2024
1 parent e75d0a3 commit 491aa2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/unplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ export default createUnplugin<Options | undefined>((options, meta) => {
},
},
webpack(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
frameConfig = compilation.options
compiler.hooks.watchRun.tap(PLUGIN_NAME, (watching) => {
frameConfig = watching.options
})
},
rspack(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
frameConfig = compilation.options
compiler.hooks.watchRun.tap(PLUGIN_NAME, (watching) => {
frameConfig = watching.options
})
},
}
Expand Down

0 comments on commit 491aa2c

Please sign in to comment.