Skip to content

Commit

Permalink
fix: dix demo build
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jun 5, 2023
1 parent 7b843b0 commit 0854a14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export default defineConfig({
build: {
target: 'esnext'
},
worker: {
format: 'es'
},
// This is require because vscode is a local dependency
// and vite doesn't want to optimize it and the number of modules makes chrome hang
optimizeDeps: {
Expand Down
3 changes: 3 additions & 0 deletions demo/vite.github-page.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export default defineConfig({
build: {
target: 'esnext'
},
worker: {
format: 'es'
},
base: 'https://codingame.github.io/monaco-vscode-api',
assetsInclude: ['**/*.wasm'],
resolve: {
Expand Down

0 comments on commit 0854a14

Please sign in to comment.