{"id":15391719,"url":"https://github.com/indooorsman/esbuild-plugin-path-alias","last_synced_at":"2025-04-15T23:25:09.709Z","repository":{"id":45673191,"uuid":"394822800","full_name":"indooorsman/esbuild-plugin-path-alias","owner":"indooorsman","description":"A esbuild plugin to support path alias like `resolve.alias` in webpack config.","archived":false,"fork":false,"pushed_at":"2022-09-29T09:35:32.000Z","size":12,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T02:34:35.697Z","etag":null,"topics":["alias","esbuild","esbuild-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/indooorsman.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}},"created_at":"2021-08-11T01:14:40.000Z","updated_at":"2023-05-11T08:39:01.000Z","dependencies_parsed_at":"2022-08-24T15:42:33.105Z","dependency_job_id":null,"html_url":"https://github.com/indooorsman/esbuild-plugin-path-alias","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indooorsman%2Fesbuild-plugin-path-alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indooorsman%2Fesbuild-plugin-path-alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indooorsman%2Fesbuild-plugin-path-alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indooorsman%2Fesbuild-plugin-path-alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indooorsman","download_url":"https://codeload.github.com/indooorsman/esbuild-plugin-path-alias/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809058,"owners_count":21164896,"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":["alias","esbuild","esbuild-plugin"],"created_at":"2024-10-01T15:12:26.919Z","updated_at":"2025-04-15T23:25:09.693Z","avatar_url":"https://github.com/indooorsman.png","language":"JavaScript","readme":"# esbuild-plugin-path-alias\n\n[![npm version](https://img.shields.io/npm/v/esbuild-plugin-path-alias.svg?style=flat)](https://www.npmjs.com/package/esbuild-plugin-path-alias)\n[![test](https://github.com/indooorsman/esbuild-plugin-path-alias/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/indooorsman/esbuild-plugin-path-alias/actions/workflows/test.yml)\n\nA esbuild plugin to support path alias like `resolve.alias` in webpack config.\n\n## Usage\n\n```bash\nnpm install -D esbuild-plugin-path-alias\n```\n\n```js\nconst esbuild = require('esbuild');\nconst aliasPlugin = require('esbuild-plugin-path-alias');\nconst path = require('path');\n\nesbuild.build({\n  entryPoints: [path.resolve(__dirname, './app/app.jsx')],\n  bundle: true,\n  outdir: 'dist',\n  external: ['react'],\n  plugins: [\n    aliasPlugin({\n      // must be absolute path\n      '@': path.resolve(__dirname, './app/component')\n    })\n  ],\n  logLevel: 'debug'\n});\n```\n\nSee [test](https://github.com/indooorsman/esbuild-plugin-path-alias/tree/main/test) for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findooorsman%2Fesbuild-plugin-path-alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findooorsman%2Fesbuild-plugin-path-alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findooorsman%2Fesbuild-plugin-path-alias/lists"}