Skip to content

Commit

Permalink
fix: plugin hmr (#141)
Browse files Browse the repository at this point in the history
Co-authored-by: zhengyutay <zy>
  • Loading branch information
ZhengYuTay authored Jan 22, 2021
1 parent 28b613c commit 793bf6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/app/components/ApplicationFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function create(context, options) {
}
if (module.hot) {
module.hot.accept(['@shuvi/app/entry','@shuvi/app/core/app', '@shuvi/app/core/routes'],async ()=>{
module.hot.accept(['@shuvi/app/entry','@shuvi/app/core/app', '@shuvi/app/core/routes', '@shuvi/app/core/plugin'],async ()=>{
let AppComponent = require('@shuvi/app/core/app').default;
let routes = require('@shuvi/app/core/routes').default;
// to solve routing problem, we need to rerender routes
Expand Down

0 comments on commit 793bf6a

Please sign in to comment.