Registry / web-framework / esbuild-monaco-editor-plugin

esbuild-monaco-editor-plugin

JSON →
library0.1.1jsnpmunverified

esbuild plugin for integrating Monaco Editor (v0.1.1). It configures esbuild to handle Monaco's web workers and language assets. The plugin is incomplete; imports from 'editor.api.js' require manual language imports, while 'editor.main.js' loads all languages. Alternative to webpack-based Monaco plugins. Low release cadence.

web-framework
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Package is CommonJS-only; ESM import may fail.

const monacoEditorPlugin = require('esbuild-monaco-editor-plugin');

It's a default export, not named.

import monacoEditorPlugin from 'esbuild-monaco-editor-plugin'; // If using bundler with CJS interop

Shows how to use the plugin in an esbuild build script.

const esbuild = require('esbuild'); const monacoEditorPlugin = require('esbuild-monaco-editor-plugin'); esbuild.build({ entryPoints: ['src/app.js'], bundle: true, outdir: 'dist', plugins: [monacoEditorPlugin], }).catch(() => process.exit(1));
Debug
Known footguns
gotchaPlugin does not handle language workers automatically when importing from 'editor.api.js'
deprecatedMisspelled '--wtach' in example code
gotchaPlugin may not work with newer esbuild versions due to internal changes.
gotchaTypo in example: 'ebuild.build' instead of 'esbuild.build'.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
13 hits · last 30 days
claudebot
4
gptbot
3
ahrefsbot
3
bingbot
2
Resources