Skip to content
PluginStats

vite-plugin-monaco-editor-esm weekly downloads statistics

By tanghaojie · npm · Vite plugins

A newer vite plugin for the Monaco Editor, support esm.

View on npm Fresh · Dec 6, 2026

vite-plugin-monaco-editor-esm has 76,774 recorded weekly downloads on npm, a decrease of 8.3% over the past 30 days, ranking #684 of 3,247 tracked listings.

Weekly downloads
76,774
Official API · Dec 5, 2026
7-day growth
+27.6%
+16.6K weekly downloads
30-day growth
-8.3%
-6.9K weekly downloads
90-day growth
+112%
+40.5K weekly downloads
Rank
#684
▲ 37 in 7 days

About vite-plugin-monaco-editor-esm

New Vite Plugin Monaco Editor Support ESM

A plugin to simplify loading the Monaco Editor with vite.

  • It uses Vite specific plugin hooks: configResolved, configureServer, transformIndexHtml.
  • It uses esbuild to bundle worker in the node_modules/.monaco directory, via the server.middlewares proxy http server for the bundle worker.

Installing

// make sure you have it installed monaco-editor.
pnpm install -D vite-plugin-monaco-editor-esm

// or
yarn add vite-plugin-monaco-editor-esm -D

// or
npm install --save-dev vite-plugin-monaco-editor-esm

Using

  • vite.config.ts:
import { defineConfig } from 'vite'
import monacoEditorEsmPlugin from 'vite-plugin-monaco-editor-esm'

export default defineConfig({
  plugins: [monacoEditorEsmPlugin()],
})
Import all monaco functions
  • index.ts:
import * as monaco from 'monaco-editor'

monaco.editor.create(document.getElementById('container'), {
  value: 'console.log("Hello, world")',
  language: 'javascript',
})
Import part of monaco functions

The import * as monaco from 'monaco-editor' is import all features and languages of the Monaco Editor. Assume you only need part of the features and languages:

  • customMonaco.ts
import 'monaco-editor/esm/vs/editor/editor.all.js'
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'

export { monaco }

The Complete list of imports: customMonaco.ts

  • index.ts
import { monaco } from './customMonaco.ts'
monaco.editor.create(document.getElementById('container'), {
  value: 'console.log("Hello, world")',
  language: 'javascript',
})

Options

  • languageWorkers (string[]) - include only a subset of the languageWorkers supported.

    • default value: ['editorWorkerService', 'css', 'html', 'json', 'typescript'].
    • Assuming only use css worker(editorWorkerService is must include base worker), you can set ['editorWorkerService', 'css']
  • customWorkers (IWorkerDefinition[]) - include your custom worker.

    • default value: []
    • example value: [{label: "graphql", entry: "monaco-graphql/esm/graphql.worker"}], The entry is relative path in the node_modules Or you can set absolute path.
  • publicPath (string) - custom public path for worker scripts, overrides the public path from which files generated by this plugin will be served. Or you can set CDN e.g https://unpkg.com/vite-plugin-monaco-editor@1.0.5/cdn

    • default value: monacoeditorwork
  • globalAPI (boolean) - specifies whether the editor API should be exposed through a global monaco object or not. This option is applicable to 0.22.0 and newer version of monaco-editor. Since 0.22.0, the ESM version of the monaco editor does no longer define a global monaco object unless global.MonacoEnvironment = { globalAPI: true } is set (change log).

    • default value: false.
  • customDistPath ((root: string, buildOutDir: string, base: string) => string) - Custom callback returns the worker path

  • forceBuildCDN (boolean) - If you use CDN, the build is skipped by default. Set to true if you want to generate woker

    • default value: false

Some languages share the same web worker. If one of the following languages is included, you must also include the language responsible for instantiating their shared worker:

LanguageInstantiator
javascripttypescript
handlebarshtml
scss, lesscss

Description from the npm listing.

  • vite-plugin
  • monaco
  • editor
  • monaco editor

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-monaco-editor-esm weekly downloads on npm, last 90 days: 76,774 weekly downloads as of Dec 5, 2026, +112% over 90 days.vite-plugin-monaco-editor-esmWeekly downloads on npm · Last 90 days76,774downloads / week+112% over 90 days020K40K60K80K100KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-monaco-editor-esm weekly downloads on npm, last 90 days: 76,774 weekly downloads as of Dec 5, 2026, +112% over 90 days.

7/30/90-day growth

vite-plugin-monaco-editor-esm weekly downloads growth on npm: +27.6% over 7 days, -8.3% over 30 days, +112% over 90 days.vite-plugin-monaco-editor-esmWeekly downloads growth on npm76,774downloads / week now7-day growth+16,619 weekly downloads+27.6%30-day growth-6,935 weekly downloads-8.3%90-day growth+40,481 weekly downloads+112%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-monaco-editor-esm weekly downloads growth on npm: +27.6% over 7 days, -8.3% over 30 days, +112% over 90 days.

Ranking history

vite-plugin-monaco-editor-esm npm ranking history: currently #684 (by weekly downloads).vite-plugin-monaco-editor-esmnpm ranking · by weekly downloads · Last 90 days#684current rank#600#620#640#660#680#700#720#740Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-monaco-editor-esm npm ranking history: currently #684 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 35, #4 (overall #684)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 6, #16 (overall #116)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for vite-plugin-monaco-editor-esm
Date (UTC)Weekly downloadsChange vs. previous
76,774+1.1K
75,702+6.3K
69,375+6.9K
62,516+2.9K
59,592+1.8K
57,813-1.4K
59,222-933
60,155-1.5K
61,610-5.6K
67,176-5.3K
72,431-1.3K
73,714-958
74,672-3K
77,647—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-monaco-editor-esm. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.