Skip to content

Commit

Permalink
fix: only generate workers when monaco is actually used
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 7, 2021
1 parent 3e1379d commit e47441a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slidev/node/plugins/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function createConfigPlugin(options: ResolvedSlidevOptions): Plugin {
},

}
if (options.data.config.monaco) {
if (options.data.features.monaco) {
// fix for monaco workers
// https://github.com/vitejs/vite/issues/1927#issuecomment-805803918
injection.build = {
Expand Down

0 comments on commit e47441a

Please sign in to comment.