This folder holds an example of how you could integrate the @popsql/monaco-sql-languages module
with monaco-editor. It was bootstrapped with
Create React App.
The editor is mounted directly via monaco.editor.create rather than through a React wrapper
library. Note that monaco-editor 0.56 serves its ESM entry points through the package exports
map, so the import specifier is monaco-editor/editor/editor.api — the older
monaco-editor/esm/vs/editor/editor.api path no longer resolves.
Before using this example, you will need to build the outer project:
cd ../
yarn
yarn buildThen, you can install the necessary dependencies in this folder:
yarnTo run the example, use:
yarn startand this should open the example at http://localhost:4000.