File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 3030 "dependencies" : {
3131 "@hookform/resolvers" : " ^5.0.1" ,
3232 "@monaco-editor/react" : " ^4.7.0" ,
33+ "monaco-editor" : " ^0.47.0" ,
3334 "@radix-ui/react-accordion" : " ^1.2.11" ,
3435 "@radix-ui/react-alert-dialog" : " ^1.1.14" ,
3536 "@radix-ui/react-aspect-ratio" : " ^1.1.7" ,
106107 "postcss" : " ^8.5.4" ,
107108 "tailwindcss" : " ^4.1.8" ,
108109 "typescript" : " ~5.8.3" ,
109- "vite" : " ^6.3.5"
110+ "vite" : " ^6.3.5" ,
111+ "vite-plugin-static-copy" : " ^1.0.1"
110112 },
111113 "trustedDependencies" : [
112114 " @sentry/cli" ,
Original file line number Diff line number Diff line change 11import * as Sentry from "@sentry/react" ;
2+ import { loader } from '@monaco-editor/react' ;
23import React from "react" ;
34import ReactDOM from "react-dom/client" ;
45import "./i18n" ;
@@ -7,6 +8,13 @@ import "./index.css";
78
89import App from "./App" ;
910
11+ // Configure the loader to use local assets from the 'public/vs' directory
12+ loader . config ( {
13+ paths : {
14+ vs : '/vs'
15+ }
16+ } ) ;
17+
1018try {
1119 Sentry . init ( {
1220 dsn : "https://cffe540e38313f6e71bcca722906b654@o4508483919609856.ingest.us.sentry.io/4508854105210880" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { sentryVitePlugin } from "@sentry/vite-plugin";
22import react from "@vitejs/plugin-react" ;
33import path from "path" ;
44import { defineConfig } from "vite" ;
5+ import { viteStaticCopy } from 'vite-plugin-static-copy' ;
56
67const host = process . env . TAURI_DEV_HOST ;
78
@@ -17,6 +18,14 @@ export default defineConfig(async () => ({
1718 org : "bestcodes-official" ,
1819 project : "codequill-react" ,
1920 } ) ,
21+ viteStaticCopy ( {
22+ targets : [
23+ {
24+ src : path . resolve ( __dirname , 'node_modules/monaco-editor/min/vs' ) ,
25+ dest : '.' , // Copies 'vs' folder to the root of the 'public' directory
26+ } ,
27+ ] ,
28+ } ) ,
2029 ] ,
2130
2231 resolve : {
You can’t perform that action at this time.
0 commit comments