{"id":15388072,"url":"https://github.com/calebdwilliams/esbuild-plugin-import-assertions","last_synced_at":"2025-10-09T13:37:34.528Z","repository":{"id":87705476,"uuid":"518858505","full_name":"calebdwilliams/esbuild-plugin-import-assertions","owner":"calebdwilliams","description":"A plugin for esbuild to enable import assertions","archived":false,"fork":false,"pushed_at":"2022-09-02T09:47:55.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T13:37:32.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calebdwilliams.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-07-28T13:30:49.000Z","updated_at":"2022-07-28T13:31:14.000Z","dependencies_parsed_at":"2023-09-26T09:07:38.013Z","dependency_job_id":null,"html_url":"https://github.com/calebdwilliams/esbuild-plugin-import-assertions","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"a08427a14c305ffa29bc922a25d59f8b9fafea8f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/calebdwilliams/esbuild-plugin-import-assertions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdwilliams%2Fesbuild-plugin-import-assertions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdwilliams%2Fesbuild-plugin-import-assertions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdwilliams%2Fesbuild-plugin-import-assertions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdwilliams%2Fesbuild-plugin-import-assertions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calebdwilliams","download_url":"https://codeload.github.com/calebdwilliams/esbuild-plugin-import-assertions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebdwilliams%2Fesbuild-plugin-import-assertions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001489,"owners_count":26083102,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2024-10-01T14:55:24.538Z","updated_at":"2025-10-09T13:37:34.512Z","avatar_url":"https://github.com/calebdwilliams.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esbuild-plugin-import-assertions\n\nThe `esbuild-plugin-import-assertions` plugin [import assertion behavior](https://github.com/tc39/proposal-import-assertions) for esbuild.\n\n## Installation \n\nThis package is available on npm under the name esbuild-plugin-import-assertions and can be installed with npm, yarn or however else you consume dependencies.\n\n### Example commands:\n\n#### npm:\n```zsh\nnpm i esbuild-plugin-import-assertions\n```\n\n#### yarn:\n```zsh\nyarn add esbuild-plugin-import-assertions\n```\n\n## Usage\n\nTo use the plugin you [must use the JavaScript API for running esbuild](https://github.com/evanw/esbuild/issues/884#issuecomment-786163584). An example configuration is below\n\n```javascript\nimport { importAssertPlugin } from 'esbuild-plugin-import-assertions';\nimport { build } from 'esbuild';\n\nbuild({\n  entryPoints: ['./app.ts'],\n  bundle: true,\n  outfile: './lib/out.js',\n  plugins: [importAssertPlugin],\n  target: ['chrome100']\n}).catch(() =\u003e process.exit(1))\n```\n\nA current limitation of the plugin is that you must set esbuild's `bundle` option to `true`. Likewise, asynchronous imports are not currently supported.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalebdwilliams%2Fesbuild-plugin-import-assertions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalebdwilliams%2Fesbuild-plugin-import-assertions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalebdwilliams%2Fesbuild-plugin-import-assertions/lists"}