{"id":17236599,"url":"https://github.com/illright/unplugin-lezer","last_synced_at":"2025-04-14T02:24:34.271Z","repository":{"id":206245814,"uuid":"716207453","full_name":"illright/unplugin-lezer","owner":"illright","description":"Universal plugin to import Lezer grammar files","archived":false,"fork":false,"pushed_at":"2024-07-22T21:25:52.000Z","size":205,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-04T09:13:23.442Z","etag":null,"topics":["esbuild","grammar","lezer","rollup","unplugin","vite","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/unplugin-lezer","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/illright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-08T16:51:49.000Z","updated_at":"2024-08-03T22:55:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ff5c4c7-3b8f-4cd7-b6ee-9444eb5efa4f","html_url":"https://github.com/illright/unplugin-lezer","commit_stats":null,"previous_names":["illright/unplugin-lezer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illright%2Funplugin-lezer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illright%2Funplugin-lezer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illright%2Funplugin-lezer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illright%2Funplugin-lezer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/illright","download_url":"https://codeload.github.com/illright/unplugin-lezer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240142740,"owners_count":19754633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esbuild","grammar","lezer","rollup","unplugin","vite","webpack"],"created_at":"2024-10-15T05:36:32.408Z","updated_at":"2025-02-24T14:31:30.280Z","avatar_url":"https://github.com/illright.png","language":"TypeScript","readme":"# unplugin-lezer\n\n[![NPM version](https://img.shields.io/npm/v/unplugin-lezer?color=a1b858\u0026label=)](https://www.npmjs.com/package/unplugin-lezer)\n\nUniversal plugin to import [Lezer](https://lezer.codemirror.net/) grammar files.\n\n## Install\n\n```bash\nnpm i unplugin-lezer\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport lezer from 'unplugin-lezer/vite'\n\nexport default defineConfig({\n  plugins: [\n    lezer(),\n  ],\n})\n```\n\nExample: [`playground/`](./playground/)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRollup\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// rollup.config.js\nimport lezer from 'unplugin-lezer/rollup'\n\nexport default {\n  plugins: [\n    lezer(),\n  ],\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eWebpack\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// webpack.config.js\nmodule.exports = {\n  /* ... */\n  plugins: [\n    require('unplugin-lezer/webpack')()\n  ]\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eVue CLI\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vue.config.js\nmodule.exports = {\n  configureWebpack: {\n    plugins: [\n      require('unplugin-lezer/webpack')(),\n    ],\n  },\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eesbuild\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// esbuild.config.js\nimport { build } from 'esbuild'\nimport lezer from 'unplugin-lezer/esbuild'\n\nbuild({\n  plugins: [lezer()],\n})\n```\n\n\u003cbr\u003e\u003c/details\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillright%2Funplugin-lezer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fillright%2Funplugin-lezer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillright%2Funplugin-lezer/lists"}