{"id":17908741,"url":"https://github.com/kingsora/rollup-plugin-esbuild-resolve","last_synced_at":"2025-07-31T12:07:58.741Z","repository":{"id":60809745,"uuid":"544829712","full_name":"KingSora/rollup-plugin-esbuild-resolve","owner":"KingSora","description":"A Rollup plugin which uses the resolve algorithm of esbuild.","archived":false,"fork":false,"pushed_at":"2025-03-25T23:14:49.000Z","size":213,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-11T18:56:26.401Z","etag":null,"topics":["alias","esbuild","node-resolve","paths","resolve","resolver","rollup","rollup-plugin","typescript"],"latest_commit_sha":null,"homepage":"","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/KingSora.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2022-10-03T09:54:06.000Z","updated_at":"2025-03-25T23:14:53.000Z","dependencies_parsed_at":"2024-10-28T19:18:02.937Z","dependency_job_id":"1807af68-e931-4398-8469-4b600b794642","html_url":"https://github.com/KingSora/rollup-plugin-esbuild-resolve","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"af8b790e958b5240ebf65462a31a3d3fa2fd54b4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KingSora/rollup-plugin-esbuild-resolve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KingSora%2Frollup-plugin-esbuild-resolve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KingSora%2Frollup-plugin-esbuild-resolve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KingSora%2Frollup-plugin-esbuild-resolve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KingSora%2Frollup-plugin-esbuild-resolve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KingSora","download_url":"https://codeload.github.com/KingSora/rollup-plugin-esbuild-resolve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KingSora%2Frollup-plugin-esbuild-resolve/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268036055,"owners_count":24185145,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alias","esbuild","node-resolve","paths","resolve","resolver","rollup","rollup-plugin","typescript"],"created_at":"2024-10-28T19:17:35.719Z","updated_at":"2025-07-31T12:07:58.716Z","avatar_url":"https://github.com/KingSora.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-esbuild-resolve\n\n\u003ca href=\"https://www.npmjs.com/package/rollup-plugin-esbuild-resolve\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/rollup-plugin-esbuild-resolve.svg?style=flat-square\" alt=\"Version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/rollup-plugin-esbuild-resolve\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/rollup-plugin-esbuild-resolve.svg?style=flat-square\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\nUse [rollup](https://rollupjs.org/guide/en/) with the resolution algorithm implementation of [esbuild](https://github.com/evanw/esbuild).  \nThis plugin replaces [`@rollup/plugin-node-resolve`](https://github.com/rollup/plugins/tree/master/packages/node-resolve) and all rollup plugins which implement the TypeScript `compilerOptions.paths` resolution algorithm.\n\n## Why\n\nEsbuild has its own implementation of the [node resolution algorithm](https://nodejs.org/api/modules.html#modules_all_together) and it also implements the [compilerOptions.paths resolution algorithm](https://www.typescriptlang.org/tsconfig#paths) introduced by TypeScript.\n\nThe implementation has also one speciality - its not reading just one `tsconfig.json` file, its always reading the closest one from the importer file. This enables correct resolution of many interconnected projects, each one with their own `tsconfig.json`.\n\n## Install\n\n```\nnpm i rollup-plugin-esbuild-resolve -D\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport { esbuildResolve } from 'rollup-plugin-esbuild-resolve';\n\nexport default {\n  plugins: [\n    esbuildResolve({\n      // optional:\n      esbuild: {\n        // pass custom esbuild options here\n      }\n    }),\n  ],\n}\n```\n\n\u003e __Note__: This plugin can be used together with `@rollup/plugin-node-resolve` and other resultion plugins.\n\n## Options\n\n`rollup-plugin-esbuild-resolve` has only one `optional` option:\n\n### `esbuild`\n\nHere you can pass custom [esbuilds build api options](https://esbuild.github.io/api/#build-api).\n\nYou can pass any options you like, but the options which are relevant for customizing the resolution algorithm are:\n\n- [`platform`](https://esbuild.github.io/api/#platform): Customize the default values for various resolution related options.\n- [`conditions`](https://esbuild.github.io/api/#conditions): Controls how the `exports` field in a `package.json` is interpreted.\n- [`ignoreAnnotations`](https://esbuild.github.io/api/#ignore-annotations): Controls whether hints for side effects like the `sideEffects` field in a `package.json` or the inline `/* @__PURE__ */` comment are respected.\n- [`mainFields`](https://esbuild.github.io/api/#main-fields): Controls which fields in a `package.json` are the entry point and in which order to check them.  \n- [`nodePaths`](https://esbuild.github.io/api/#node-paths): Additional directories to check for modules.  \n- [`preserveSymlinks`](https://esbuild.github.io/api/#preserve-symlinks): Controls whether symlinks should be preserved.\n- [`resolveExtensions`](https://esbuild.github.io/api/#resolve-extensions): Controls which extensions in which order should be checked for a resolved file without extension.\n- [`tsconfig`](https://esbuild.github.io/api/#tsconfig): Customize the name of the `tsconfig.json` file which should be checked.\n- [`absWorkingDir`](https://esbuild.github.io/api/#working-directory): Customize the working directory.\n\n## Corresponding `@rollup/plugin-node-resolve` options\n\n| esbuild  | node-resolve |\n| ------------- | ------------- |\n| [`conditions`](https://esbuild.github.io/api/#conditions)  | [`exportConditions`](https://github.com/rollup/plugins/tree/master/packages/node-resolve/#exportconditions)  |\n| [`mainFields`](https://esbuild.github.io/api/#main-fields) | [`mainFields`](https://github.com/rollup/plugins/tree/master/packages/node-resolve/#mainfields) |\n| [`nodePaths`](https://esbuild.github.io/api/#node-paths) | [`moduleDirectories`](https://github.com/rollup/plugins/tree/master/packages/node-resolve/#moduledirectories) / [`modulePaths`](https://github.com/rollup/plugins/tree/master/packages/node-resolve/#modulepaths) |\n| [`resolveExtensions`](https://esbuild.github.io/api/#resolve-extensions) | [`extensions`](https://github.com/rollup/plugins/tree/master/packages/node-resolve/#extensions) |\n| [`absWorkingDir`](https://esbuild.github.io/api/#working-directory) | [`rootDir`](https://github.com/rollup/plugins/tree/master/packages/node-resolve/#rootdir) |\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingsora%2Frollup-plugin-esbuild-resolve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkingsora%2Frollup-plugin-esbuild-resolve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingsora%2Frollup-plugin-esbuild-resolve/lists"}