File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ function main() {
57
57
model : monaco . editor . createModel (
58
58
decodeURIComponent ( window . location . hash . slice ( 1 ) ) ||
59
59
persistedState . src ||
60
- 'const App = () => <div>Hello World</div>' ,
60
+ `import { defineComponent } from 'vue'
61
+
62
+ const App = defineComponent((props) => <div>Hello World</div>)` ,
61
63
'typescript' ,
62
64
monaco . Uri . parse ( 'file:///app.tsx' )
63
65
) ,
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import VueJSX from '@vitejs/plugin-vue-jsx';
4
4
import MonacoEditorPlugin from 'vite-plugin-monaco-editor' ;
5
5
6
6
export default defineConfig ( {
7
+ build : {
8
+ commonjsOptions : {
9
+ include : [ ] ,
10
+ } ,
11
+ } ,
7
12
resolve : {
8
13
alias : {
9
14
'@vue/babel-plugin-jsx' : '@vue/babel-plugin-jsx/src/index.ts' ,
@@ -21,4 +26,7 @@ export default defineConfig({
21
26
} ,
22
27
} ) ,
23
28
] ,
29
+ optimizeDeps : {
30
+ disabled : false ,
31
+ } ,
24
32
} ) ;
You can’t perform that action at this time.
0 commit comments