workflow: use esbuild for dev scripts

This commit is contained in:
Evan You
2022-01-14 16:21:50 +08:00
parent 77283f4c94
commit 92fcb9db05
5 changed files with 317 additions and 50 deletions

View File

@@ -62,7 +62,7 @@ window.init = () => {
if (persistedState) {
// functions are not persistable, so delete it in case we sometimes need
// to debug with custom nodeTransforms
delete persistedState.options.nodeTransforms
delete persistedState.options?.nodeTransforms
ssrMode.value = persistedState.ssr
Object.assign(compilerOptions, persistedState.options)
}
@@ -142,7 +142,7 @@ window.init = () => {
}
const editor = monaco.editor.create(document.getElementById('source')!, {
value: persistedState?.src || `<div>Hello World!</div>`,
value: persistedState?.src || `<div>Hello World</div>`,
language: 'html',
...sharedEditorOptions,
wordWrap: 'bounded'