Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 957 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 957 Bytes

@popsql/monaco-sql-languages example

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.

Getting Started

Before using this example, you will need to build the outer project:

cd ../
yarn
yarn build

Then, you can install the necessary dependencies in this folder:

yarn

Running the example

To run the example, use:

yarn start

and this should open the example at http://localhost:4000.