File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ function main() {
5757 model : monaco . editor . createModel (
5858 decodeURIComponent ( window . location . hash . slice ( 1 ) ) ||
5959 persistedState . src ||
60- 'const App = () => <div>Hello World</div>' ,
60+ `import { defineComponent } from 'vue'
61+
62+ const App = defineComponent((props) => <div>Hello World</div>)` ,
6163 'typescript' ,
6264 monaco . Uri . parse ( 'file:///app.tsx' )
6365 ) ,
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import VueJSX from '@vitejs/plugin-vue-jsx';
44import MonacoEditorPlugin from 'vite-plugin-monaco-editor' ;
55
66export default defineConfig ( {
7+ build : {
8+ commonjsOptions : {
9+ include : [ ] ,
10+ } ,
11+ } ,
712 resolve : {
813 alias : {
914 '@vue/babel-plugin-jsx' : '@vue/babel-plugin-jsx/src/index.ts' ,
@@ -21,4 +26,7 @@ export default defineConfig({
2126 } ,
2227 } ) ,
2328 ] ,
29+ optimizeDeps : {
30+ disabled : false ,
31+ } ,
2432} ) ;
You can’t perform that action at this time.
0 commit comments