Skip to content

Commit

Permalink
workflow(sfc-playground): set all scopes to production mode (vuejs#6815)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored and zhangzhonghe committed Apr 12, 2023
1 parent 34b1411 commit ff5f8c9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/sfc-playground/src/App.vue
Expand Up @@ -36,7 +36,14 @@ const store = new ReplStore({
const sfcOptions = {
script: {
inlineTemplate: !useDevMode.value,
isProd: !useDevMode.value,
reactivityTransform: true
},
style: {
isProd: !useDevMode.value
},
template: {
isProd: !useDevMode.value
}
}
Expand All @@ -51,7 +58,11 @@ watchEffect(() => {
function toggleDevMode() {
const dev = (useDevMode.value = !useDevMode.value)
sfcOptions.script.inlineTemplate = !dev
sfcOptions.script.inlineTemplate =
sfcOptions.script.isProd =
sfcOptions.template.isProd =
sfcOptions.style.isProd =
!dev
store.setFiles(store.getFiles())
}
Expand Down

0 comments on commit ff5f8c9

Please sign in to comment.