imguolao / monaco-vue

Use monaco-editor loaded from CDN in Vue 2&3, no need to bundling.
https://imguolao.github.io/monaco-vue/
MIT License
211 stars 21 forks source link

Update monaco-editor #49

Closed GoldraK closed 7 months ago

GoldraK commented 7 months ago

The monaco-editor dependency is in version 0.45.0 and the package in 0.43.0.

Thanks.

imguolao commented 7 months ago

Can be configured to use version 0.45, versions in dependencies can be ignored:

app.use(VueMonacoEditorPlugin, {
  paths: {
    // 0.45
    vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs'
  },
})
GoldraK commented 7 months ago

Yes I tried this and work, but i refer to the npm peerDependencies