Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A tiny monaco-editor only support JavaScript and TypeScript with code highlight and code completions.

Notifications You must be signed in to change notification settings

KamiC6238/tiny-monaco

Repository files navigation

tiny-monaco

A tiny monaco-editor only support JavaScript and TypeScript with code highlight and code completions.

Install

npm install tiny-monaco

pnpm install tiny-monaco

yarn install tiny-monaco

Usage

import { createEditor } from 'tiny-monaco';

const editor = createEditor(
    document.querySelector('#app'),
    {/** options */}
)

Troubleshooting

If you're using vite to build your project, make sure to add the following code to your vite.config.js file.

import { defineConfig } from 'vite'

export default defineConfig({
    optimizeDeps: {
        exclude: ['tiny-monaco']
    }
})

About

A tiny monaco-editor only support JavaScript and TypeScript with code highlight and code completions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published