Skip to content

Commit

Permalink
fix: phantom dep problem of nprogress (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript authored May 15, 2023
1 parent 8873af2 commit 582a724
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ import { useOutlet, history } from 'dumi';
${
enableNProgress
? `
import nprogress from 'nprogress';
import nprogress from '${winPath(
path.dirname(require.resolve('nprogress/package')),
)}';
import './nprogress.css';
`
: ''
Expand Down

0 comments on commit 582a724

Please sign in to comment.