I was able to use the ESM version with Angular 15 following these steps:
Note: I use nx, but it should work with other executers like Angular builder
- install monaco-editor-webpack-plugin
- change the build target to use an executer that supports modifying the webpack config. in case of nx 16, use "@nx/angular:webpack-browser"
- add webpack.config.js
angular.json/project.json