{"library":"rollup-monaco-bundler","title":"Rollup Monaco Bundler","description":"rollup-monaco-bundler is a specialized Rollup utility designed to bundle `monaco-editor` dependencies, particularly focusing on generating UMD-formatted output. Its core differentiator is the provision for dynamic runtime National Language Support (NLS) injection, enabling `monaco-editor` to load language packs at runtime rather than bundling all of them upfront. The package, currently at version 1.0.2, appears to be in maintenance mode with its last notable activity around March 2025. Unlike other Monaco-specific Rollup plugins which might focus solely on bundling, this package explicitly targets the externalization of Monaco dependencies and efficient NLS handling for optimized bundle sizes in web applications. It's best suited for projects that require `monaco-editor` in a UMD context and need fine-grained control over internationalization.","language":"javascript","status":"maintenance","last_verified":"Tue Apr 21","install":{"commands":["npm install rollup-monaco-bundler"],"cli":null},"imports":["import { RollupMonacoBundler } from 'rollup-monaco-bundler';","import { monacoNlsInject } from 'rollup-monaco-bundler';","import type { RollupOptions } from 'rollup';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { defineConfig } from 'rollup';\nimport { monacoNlsInject } from 'rollup-monaco-bundler';\nimport typescript from '@rollup/plugin-typescript';\nimport { nodeResolve } from '@rollup/plugin-node-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\n\nexport default defineConfig({\n  input: 'src/index.ts',\n  output: {\n    dir: 'dist',\n    format: 'umd',\n    name: 'MonacoEditorBundle',\n    sourcemap: true,\n  },\n  plugins: [\n    nodeResolve(),\n    commonjs(),\n    typescript(),\n    monacoNlsInject({\n      locale: process.env.MONACO_LOCALE || 'en',\n      // Other options like 'basePath', 'ignore' can be configured here.\n      // Refer to the plugin documentation for full options.\n    }),\n    // Other Rollup plugins for CSS, assets, etc. may be needed\n  ],\n  external: [\n    // List any modules that should not be bundled here, e.g., 'monaco-editor'\n    // if you intend to load it separately or from a CDN.\n  ]\n});\n","lang":"typescript","description":"Demonstrates a basic Rollup configuration using `monacoNlsInject` to bundle `monaco-editor` with dynamic NLS, outputting a UMD bundle.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}