How to integrate monaco-editor into Angular app properly?

Viewed 192

There are two common ways for monaco-editor integration:

  1. Integrate the AMD version
  2. Integrate the ESM version

Since that angular-cli uses webpack under the hood seems that i should use ESM integration, but all plugins (angular wrappers for monaco) that i found use AMD intergration. At the same time i couldn't integrate ESM bundles due the runtime errors. I'm so confused. Which one way should I use for app with angular-cli app (ng v13)? And what's the main difference between two approaches? Thank's in advance.

1 Answers
Related