This is fantastic. Took me 15 minutes to add to my own starter and get it running. Running pretty smoothly on localhost. Hosting to now breaks it a little bit.
I figured it out! postcss is clearing monaco's overflow guard styling since it thinks it is unused.
// postcss.config.jsconstpurgecss=["@fullhuman/postcss-purgecss",{// https://purgecss.com/configuration.html#optionscontent:["./components/**/*.tsx","./pages/**/*.tsx"],css:[],whitelistPatternsChildren:[/monaco-editor/],// so it handles .monaco-editor .foo .bardefaultExtractor:content=>content.match(/[\w-/.:]+(?<!:)/g)||[]}];
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is fantastic. Took me 15 minutes to add to my own starter and get it running. Running pretty smoothly on localhost. Hosting to now breaks it a little bit.
github.com/jaakkolantero/monaco-st...
Big thanks!
thanks! looks like the production build is missing this file github.com/microsoft/vscode/blob/a...
I figured it out! postcss is clearing monaco's overflow guard styling since it thinks it is unused.