{"id":14970791,"url":"https://github.com/r17x/unplugin-rescript","last_synced_at":"2025-10-01T16:30:36.613Z","repository":{"id":245998443,"uuid":"819781991","full_name":"r17x/unplugin-rescript","owner":"r17x","description":"a plugin for integration ReScript with most Bundler (Vite, Rollup, Webpack, Esbuild, etc).","archived":true,"fork":false,"pushed_at":"2024-09-21T19:35:47.000Z","size":317,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T08:37:14.206Z","etag":null,"topics":["astro","farm","rescript","rolldown","rollup","rspack","unplugin","vite","webpack"],"latest_commit_sha":null,"homepage":"","language":"ReScript","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/r17x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["r17x"]}},"created_at":"2024-06-25T07:34:37.000Z","updated_at":"2024-09-21T19:36:02.000Z","dependencies_parsed_at":"2024-06-25T09:41:22.862Z","dependency_job_id":"49aaad7b-23de-4833-90a4-f0fa05e5ab55","html_url":"https://github.com/r17x/unplugin-rescript","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"3d85eb61e7e4e77bd66ab14fe21b94e95eadc746"},"previous_names":["r17x/unplugin-rescript"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r17x%2Funplugin-rescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r17x%2Funplugin-rescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r17x%2Funplugin-rescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r17x%2Funplugin-rescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r17x","download_url":"https://codeload.github.com/r17x/unplugin-rescript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234882550,"owners_count":18901290,"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":["astro","farm","rescript","rolldown","rollup","rspack","unplugin","vite","webpack"],"created_at":"2024-09-24T13:44:09.284Z","updated_at":"2025-10-01T16:30:31.294Z","avatar_url":"https://github.com/r17x.png","language":"ReScript","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003e\u003ca href=\"https://github.com/r17x/js/tree/main/packages/unplugin-rescript#readme\"\u003e[MOVE HERE]unplugin-rescript\u003c/a\u003e\u003c/h1\u003e\n    \u003cp\u003e\n        a plugin for integration \u003ca href=\"https://rescript-lang.org/\"\u003e\u003cb\u003eReScript\u003c/b\u003e\u003c/a\u003e with most Bundler (Vite, Rollup, Webpack, Esbuild, etc).\n    \u003c/p\u003e\n    \u003cp\u003e\n        🚧 \u003cb\u003eStatus: Work in progress (Unstable) - \u003ca href=\"./TODO.md\"\u003eTODO\u003c/a\u003e\"\u003c/b\u003e 🚧\n        \u003ca href=\"https://www.npmjs.com/package/unplugin-rescript\"\u003e\n            \u003cimg src=\"https://img.shields.io/npm/v/unplugin-rescript?color=a1b858\u0026label=\"/\u003e\n        \u003c/a\u003e\n    \u003c/p\u003e\n\u003c/div\u003e\n\n## Install\n\n```bash\nnpm i unplugin-rescript\n```\n\n```bash\nyarn add unplugin-rescript\n```\n\n```bash\npnpm add unplugin-rescript\n```\n\n```bash\nbun add unplugin-rescript\n```\n\n## Usage\n\n\u003e Example: [`playground/`](./playground/)\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport ReScript from 'unplugin-rescript/vite'\n\nexport default defineConfig({\n  plugins: [\n    ReScript(),\n  ],\n})\n```\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFarm\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// farm.config.ts\nimport ReScript from 'unplugin-rescript/farm'\n\nexport default defineconfig({\n  plugins: [\n    ReScript(),\n  ],\n})\n```\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRspack\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// rspack.config.js\nmodule.exports = {\n  /* ... */\n  plugins: [\n    require('unplugin-rescript/rspack')()\n  ]\n}\n```\n\u003cbr\u003e\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eRollup\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// rollup.config.js\nimport ReScript from 'unplugin-rescript/rollup'\n\nexport default {\n  plugins: [\n    ReScript(),\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-rescript/webpack')()\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 ReScript from 'unplugin-rescript/esbuild'\n\nbuild({\n  plugins: [ReScript()],\n})\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eAstro\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// astro.config.mjs\nimport { defineConfig } from 'astro/config'\nimport ReScript from 'unplugin-rescript/astro'\n\nbuild({\n  plugins: [ReScript()],\n})\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n## Compatibility\n\n## 🔭 Troubleshooting\n\n## ❤️  Credits\n\nInspired by\n\n* [jihchi/vite-plugin-rescript](https://github.com/jihchi/vite-plugin-rescript) - [@jihchi](https://github.com/jihchi)\n* [unplugin/unplugin-starter](https://github.com/unplugin/unplugin-starter) - [@antfu](https://github.com/antfu)\n","funding_links":["https://github.com/sponsors/r17x"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr17x%2Funplugin-rescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr17x%2Funplugin-rescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr17x%2Funplugin-rescript/lists"}