Skip to content

Commit

Permalink
fix: monaco build detection
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 10, 2021
1 parent 464d5ba commit b2834f0
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.features.monaco) {
if (options.data.features.monaco && (options.data.config.monaco === true || options.data.config.monaco === 'build')) {
// fix for monaco workers
// https://github.com/vitejs/vite/issues/1927#issuecomment-805803918
injection.build = {
Expand Down

0 comments on commit b2834f0

Please sign in to comment.