Im using @monaco-editor/react editor module in reactjs , I know how to get a value(code) from editor but here I am using SCSS language so is there a way to get compiled css version
const editorRef = useRef(null);
<Editor
height={height}
path={file.name}
defaultLanguage={file.language}
defaultValue={file.value}
//defaultLanguage="html"
//defaultValue={String(component)}
theme="vs-dark"
onMount={handleEditorDidMount}
onChange={handleEditorChange}
/>
function handleEditorDidMount(editor, monaco) {
editorRef.current = editor;
}
function handleEditorChange() {
let val = editorRef.current.getValue()
}
My language is SCSS so I am looking for compiled CSS as response of getValue