bazingaedward / monaco-editor-vue3

Monaco Editor for Vue3
MIT License
89 stars 17 forks source link

How to configure it with Vite #6

Closed SagarVishal closed 2 years ago

SagarVishal commented 2 years ago

I was able to integrate and bring the UI part but wasn't able to understand the webpack or the rollup part. Can anyone help, how do I use this with vite. Steps would be nice please or a demo would be great.

bazingaedward commented 2 years ago

@SagarVishal hi, here are some advices:

  1. Vite is based on rollup, so the rollup part in readme will also be useful for vite
  2. In this project source code, we also show the code with Vite already (local env: yarn dev), so you can check the vite.config.ts

And we know a live demo will be helpful, so will attach some demo( Stackblitz ) in recent days, if we finished, i will append to this issue

bazingaedward commented 2 years ago

Take a look with Vite demo