fix: enable optimizing dependencies in build mode

This commit is contained in:
三咲智子 Kevin Deng
2024-01-24 03:11:39 +08:00
parent 20ef600064
commit bb8cbe957e
2 changed files with 11 additions and 1 deletions

View File

@ -57,7 +57,9 @@ function main() {
model: monaco.editor.createModel(
decodeURIComponent(window.location.hash.slice(1)) ||
persistedState.src ||
'const App = () => <div>Hello World</div>',
`import { defineComponent } from 'vue'
const App = defineComponent((props) => <div>Hello World</div>)`,
'typescript',
monaco.Uri.parse('file:///app.tsx')
),