Skip to content

Commit

Permalink
fix(sfc-playground): remove comment nodes in the production env
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue committed Nov 13, 2023
1 parent 73fd810 commit 2cbed21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/sfc-playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ const sfcOptions: SFCOptions = {
isProd: !useDevMode.value
},
template: {
isProd: !useDevMode.value
isProd: !useDevMode.value,
compilerOptions: {
comments: useDevMode.value
}
}
}
Expand All @@ -65,6 +68,8 @@ function toggleDevMode() {
sfcOptions.template!.isProd =
sfcOptions.style!.isProd =
!dev
sfcOptions.template.compilerOptions.comments = dev
store.setFiles(store.getFiles())
}
Expand Down

0 comments on commit 2cbed21

Please sign in to comment.