vite-plugin-monaco-editor-esm weekly downloads statistics
By tanghaojie · npm · Vite plugins
A newer vite plugin for the Monaco Editor, support esm.
vite-plugin-monaco-editor-esm has 32,543 recorded weekly downloads on npm, a decrease of 12.4% over the past 30 days.
It ranks #649 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -58.1%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
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
Using
• vite.config.ts:
Import all monaco functions
• index.ts:
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
The Complete list of imports: customMonaco.ts
• index.ts
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:
| Language | Instantiator |
| javascript | typescript | | handlebars | html | | scss, less | css |
Description from the npm listing.
- vite-plugin
- monaco
- editor
- monaco editor
Where vite-plugin-monaco-editor-esm sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm Vite plugins plugins
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 Oct 18, 2026. See the methodology.