Closed Ethan-Arrowood closed 3 years ago
Are you using any bundler at all?
My build tool is Snowpack. Not sure if is doing any bundling for dev.
For prod they recommend bundling with webpack though
Hi, I'm using Vite and I would like to know if it's possible to make this package work without webpack. I've followed all the steps but the one with the webpack plugin excluding languages.
Unfortunately, I do not have any experience with any of those tools, so I can't really point you in a straight direction. I can advise on hacking by using resolve aliases. Find out what paths monaco tries to "require" when it attempts to bundle the languages, and then monkey patch those paths gracefully using aliases through a relevant config option provided by your bundler.
In this project readme you state it is recommended to use this webpack plugin to disable the included language things.
But what if I'm not using webpack? Is there a way to do this using the monaco api? Even if its messy/ requires some async grossness?