Skip to content

Commit

Permalink
fix: --inspect flag in CJS
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 26, 2023
1 parent 3cf5719 commit 7f01bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slidev/node/plugins/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export async function ViteSlidevPlugin(
}))
: null,
options.inspect
? import('vite-plugin-inspect').then(r => r.default({
? import('vite-plugin-inspect').then(r => (r.default || r)({
dev: true,
build: true,
}))
Expand Down

0 comments on commit 7f01bad

Please sign in to comment.