Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

monaco-editor-workers

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monaco-editor-workers

Monaco Editor Worker Support Package

  • 0.34.0-rc.1
  • rc
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.4K
decreased by-0.57%
Maintainers
1
Weekly downloads
 
Created
Source

Monaco Editor Worker Support Package

This package supplies all monaco-editor workers as module or classic workers (bundled with vite) and it contains a utility function that applies them to MonacoEnvironment:

Workers are now exported in the packages.json. This could be handy for re-bundling.

Additional exports:

  • ./worker/module/editor (Editor Module Worker)
  • ./worker/module/ts (TypeScript/JavaScript Module Worker)
  • ./worker/module/html (HTML Module Worker)
  • ./worker/module/css (CSS Module Worker)
  • ./worker/module/json (JSON Module Worker)
  • ./worker/classic/editor (Editor Classic/Firefox compatible Worker)
  • ./worker/classic/ts (TypeScript/JavaScript Classic/Firefox compatible Worker)
  • ./worker/classic/html (HTML Classic/Firefox compatible Worker)
  • ./worker/classic/css (CSS Classic/Firefox compatible Worker)
  • ./worker/classic/json (JSON Classic/Firefox compatible Worker)
import { buildWorkerDefinition } from "monaco-editor-workers";

// supply path to workers path, the basePath and tell if module (true) or classic (false) workers shall be used.
// Classic workers are still required by Firefox.
buildWorkerDefinition('./node_modules/monaco-editor-workers/dist/workers', import.meta.url, false);

The version of this package is aligned with the version of monaco-editor.

Getting Started

See main README.

Keywords

FAQs

Package last updated on 10 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc