{
  "version": "0.2.1",
  "license": "MIT",
  "main": "dist/index.js",
  "typings": "dist/index.d.ts",
  "keywords": [
    "rollup",
    "plugin",
    "monaco-editor"
  ],
  "files": [
    "plugin",
    "dist",
    "src"
  ],
  "engines": {
    "node": ">=10"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/chengcyber/rollup-plugin-monaco-editor"
  },
  "husky": {
    "hooks": {
      "pre-commit": "tsdx lint"
    }
  },
  "prettier": {
    "printWidth": 80,
    "semi": true,
    "useTabs": false,
    "singleQuote": true,
    "trailingComma": "es5"
  },
  "name": "rollup-plugin-monaco-editor",
  "author": "Cheng Liu<liucheng.tech@outlook.com>",
  "module": "dist/rollup-plugin-monaco-editor.esm.js",
  "size-limit": [
    {
      "path": "dist/rollup-plugin-monaco-editor.cjs.production.min.js",
      "limit": "10 KB"
    },
    {
      "path": "dist/rollup-plugin-monaco-editor.esm.js",
      "limit": "10 KB"
    }
  ],
  "peerDependencies": {
    "monaco-editor": "^0.21.2",
    "rollup": "^2.33.1"
  },
  "publishConfig": {
    "registry": "https://registry.npmjs.org"
  },
  "devDependencies": {
    "@changesets/changelog-github": "^0.4.1",
    "@changesets/cli": "^2.17.0",
    "@rollup/plugin-commonjs": "^16.0.0",
    "@rollup/plugin-node-resolve": "^10.0.0",
    "@size-limit/preset-small-lib": "^4.7.0",
    "@types/es-module-lexer": "^0.3.0",
    "@types/fs-extra": "^9.0.11",
    "@types/glob": "^7.1.4",
    "@types/lodash": "^4.14.170",
    "@types/semver": "^7.3.6",
    "execa": "^5.1.1",
    "fs-extra": "^9.1.0",
    "glob": "^7.1.7",
    "http-server": "^0.12.3",
    "husky": "^4.3.0",
    "monaco-editor": "0.31.1",
    "rimraf": "^3.0.2",
    "rollup": "^2.33.1",
    "rollup-plugin-postcss": "^3.1.8",
    "size-limit": "^4.7.0",
    "slash": "^3.0.0",
    "tempy": "^1.0.1",
    "ts-node": "^9.1.1",
    "tsdx": "^0.14.1",
    "tslib": "^2.3.0",
    "typescript": "^4.0.5"
  },
  "dependencies": {
    "es-module-lexer": "^0.3.26",
    "magic-string": "^0.25.7",
    "recast": "^0.20.4",
    "regenerator-runtime": "^0.13.9",
    "semver": "^7.3.5"
  },
  "scripts": {
    "start": "tsdx watch",
    "start:example": "http-server -c-1 example",
    "generate": "(cd build && ts-node ./generate_plugin.ts)",
    "build": "tsdx build && node ./build/fix_dist_index.js",
    "build:example": "(cd example && rimraf dist && rollup -c rollup.config.js)",
    "test": "tsdx test",
    "lint": "tsdx lint",
    "pub": "changeset publish",
    "size": "size-limit",
    "analyze": "size-limit --why"
  },
  "readme": "# rollup-plugin-monaco-editor\n\n> A rollup plugin to import monaco editor\n\n# Monaco Editor Version\n\nFor now, this plugin supports `monaco-editor@0.21.*` ~ `0.31.*`.\n\nThe following versions have been tested:\n\n- `0.21.2`\n- `0.22.3`\n- `0.24.0`\n- `0.25.0`\n- `0.26.1`\n- `0.27.0`\n- `0.29.1`\n- `0.30.1`\n- `0.31.1`\n\n# Usage\n\nThis plugin should be used with other plugins. including\n\n- `@rollup/plugin-node-resolve`\n- `rollup-plugin-postcss` (or other plugin can handle `.css` files)\n- `@rollup/plugin-commonjs`\n\n```javascript\n// rollup.config.js\nimport { nodeResolve } from '@rollup/plugin-node-resolve';\nimport postcss from 'rollup-plugin-postcss';\nimport commonjs from '@rollup/plugin-commonjs';\nimport monaco from 'rollup-plugin-monaco-editor';\n\nexport default {\n  output: {\n    format: 'es',\n    dir: 'dist',\n  },\n  // ...other config\n  plugins: [\n    // ...other plugins\n    // handle .css files\n    postcss(),\n    monaco({\n      languages: ['json'],\n    }),\n    nodeResolve(),\n    commonjs(),\n  ],\n};\n```\n\n# Plugin Options\n\nPlugin options can be passed in to `rollup-plugin-monaco-editor`. They can be used to generate a smaller editor bundle by selecting only certain languages or only certain editor features:\n\n## `languages`\n\nType: `string[]`\nDefault: All available languages depends on the version of `monaco-editor` installed.\n\nExample:\n\n```js\nmonaco({\n  languages: ['json'],\n});\nmonaco({\n  languages: ['html', 'css', 'javascript'],\n});\n```\n\n## `features`\n\nType: `string`\nDefault: All available features depends on the version of `monaco-editor` installed.\n\nExample:\n\n```js\nmonaco({\n  features: ['contextmenu'],\n});\nmonaco({\n  features: ['rename'],\n});\n```\n\n## `esm`\n\nType: `boolean`\nDefault: `true` if `rollup.outputOptions.format` is `esm` or `es`, otherwise `false`.\n\n## `pathPrefix`\n\nType: `string`\nDefault: `rollup.outputOptions.dir` with leading slash.\n\n## `sourcemap`\n\nType: `boolean`\nDefault: true\n\nYou can set `sourcemap` to `false` to disable generate sourcemap. It makes build faster.\n\n# Example\n\n> NOTE: pnpm@6 is used to manage this package\n\n```\npnpm install\npnpm build\npnpm build:example\npnpm start:example\n```\n\nvisit `http://localhost:8080` to see the simple demo.\n\n# Development\n\n```\npnpm start\n```\n\n# LICENSE\n\nMIT @[chengcyber](https://github.com/chengcyber)\n"
}