When trying to install this package with NextJS it will complain since MonacoEditor imports monaco-editor which has global css imports that NextJS does not support out of the box.
We use @monaco-editor/react to avoid bundling monaco, since that is slow and difficult to do with NextJS.
Describe the solution you'd like
I would like to be able to provide monaco as a parameter to the MonacoBinding constructor instead of importing it. Ex: new MonacoBinding(monaco, ...).
When trying to install this package with NextJS it will complain since MonacoEditor imports
monaco-editor
which has global css imports that NextJS does not support out of the box.We use
@monaco-editor/react
to avoid bundling monaco, since that is slow and difficult to do with NextJS.Describe the solution you'd like
I would like to be able to provide
monaco
as a parameter to the MonacoBinding constructor instead of importing it. Ex:new MonacoBinding(monaco, ...)
.