{"id":19970211,"url":"https://github.com/webdeveric/esbuild-plugin-define","last_synced_at":"2025-09-19T18:30:58.366Z","repository":{"id":63592606,"uuid":"568524677","full_name":"webdeveric/esbuild-plugin-define","owner":"webdeveric","description":"esbuild plugin to define global identifiers","archived":false,"fork":false,"pushed_at":"2025-07-05T18:47:35.000Z","size":791,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-23T05:58:27.848Z","etag":null,"topics":["esbuild-plugin","plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/esbuild-plugin-define","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/webdeveric.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["webdeveric"],"tidelift":"npm/esbuild-plugin-define"}},"created_at":"2022-11-20T19:49:53.000Z","updated_at":"2025-07-05T18:47:37.000Z","dependencies_parsed_at":"2024-05-13T01:44:48.809Z","dependency_job_id":"c3999718-e198-4c59-8752-27fea8d16f97","html_url":"https://github.com/webdeveric/esbuild-plugin-define","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":0.02941176470588236,"last_synced_commit":"dd423f88a3b848e7c1646d9e89b23218b3010224"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/webdeveric/esbuild-plugin-define","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-define","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-define/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-define/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-define/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/esbuild-plugin-define/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-define/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275982687,"owners_count":25564149,"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-09-19T02:00:09.700Z","response_time":108,"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":["esbuild-plugin","plugin"],"created_at":"2024-11-13T02:53:31.905Z","updated_at":"2025-09-19T18:30:58.067Z","avatar_url":"https://github.com/webdeveric.png","language":"TypeScript","funding_links":["https://github.com/sponsors/webdeveric","https://tidelift.com/funding/github/npm/esbuild-plugin-define"],"categories":[],"sub_categories":[],"readme":"# `esbuild-plugin-define`\n\n[![Build Status](https://github.com/webdeveric/esbuild-plugin-define/workflows/Node.js%20CI/badge.svg)](https://github.com/webdeveric/esbuild-plugin-define/actions)\n\n## Install\n\n```sh\nnpm install esbuild-plugin-define -D\n```\n\n## Usage\n\nAdd the plugin to your esbuild `plugins`.\n\nExample `esbuild.config.cjs` file:\n\n```js\nconst { definePlugin } = require('esbuild-plugin-define');\n\nmodule.exports = () =\u003e {\n  const config = {\n    bundle: true,\n    sourcemap: true,\n    platform: 'node',\n    target: 'es2022',\n    format: 'esm',\n    outputFileExtension: '.mjs',\n    define: {},\n    concurrency: 4,\n    watch: {\n      pattern: ['./src/**'],\n      ignore: ['dist', 'node_modules'],\n    },\n    plugins: [\n      definePlugin({\n        process: {\n          env: {\n            BUILD_TIMESTAMP: new Date().toISOString(),\n          },\n        },\n      }),\n    ],\n  };\n\n  return config;\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fesbuild-plugin-define","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fesbuild-plugin-define","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fesbuild-plugin-define/lists"}