{"id":15552321,"url":"https://github.com/bahmutov/cypress-esbuild-preprocessor","last_synced_at":"2026-03-07T02:03:18.304Z","repository":{"id":37019707,"uuid":"348559969","full_name":"bahmutov/cypress-esbuild-preprocessor","owner":"bahmutov","description":"Bundle Cypress specs using esbuild","archived":false,"fork":false,"pushed_at":"2026-02-27T05:18:27.000Z","size":2127,"stargazers_count":82,"open_issues_count":11,"forks_count":14,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-27T12:08:53.394Z","etag":null,"topics":["cypress-preprocessor"],"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/bahmutov.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-17T02:48:54.000Z","updated_at":"2026-02-27T05:18:31.000Z","dependencies_parsed_at":"2023-10-31T08:27:28.636Z","dependency_job_id":"8b4824b0-0b91-4af4-9450-34bda76a5a3e","html_url":"https://github.com/bahmutov/cypress-esbuild-preprocessor","commit_stats":{"total_commits":722,"total_committers":11,"mean_commits":65.63636363636364,"dds":0.4238227146814404,"last_synced_commit":"7f420b1e6e47d57a9216002fa5dc4c249f019de4"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/bahmutov/cypress-esbuild-preprocessor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-esbuild-preprocessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-esbuild-preprocessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-esbuild-preprocessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-esbuild-preprocessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/cypress-esbuild-preprocessor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-esbuild-preprocessor/sbom","scorecard":{"id":223340,"data":{"date":"2025-08-11","repo":{"name":"github.com/bahmutov/cypress-esbuild-preprocessor","commit":"6ce229efa4f7efe08edf7b448aa2317f302a44bc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/badges.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"29 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/badges.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/bahmutov/cypress-esbuild-preprocessor/badges.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/badges.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/bahmutov/cypress-esbuild-preprocessor/badges.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/bahmutov/cypress-esbuild-preprocessor/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/bahmutov/cypress-esbuild-preprocessor/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/bahmutov/cypress-esbuild-preprocessor/ci.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T03:07:17.639Z","repository_id":37019707,"created_at":"2025-08-17T03:07:17.639Z","updated_at":"2025-08-17T03:07:17.639Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30205893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"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":["cypress-preprocessor"],"created_at":"2024-10-02T14:15:48.455Z","updated_at":"2026-03-07T02:03:18.292Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @bahmutov/cypress-esbuild-preprocessor\n\n![cypress version](https://img.shields.io/badge/cypress-15.11.0-brightgreen) ![esbuild version](https://img.shields.io/badge/esbuild-0.27.3-brightgreen) [![ci status][ci image]][ci url]\n\n\u003e Bundle Cypress specs using [esbuild](https://esbuild.github.io/)\n\n## Install\n\n```bash\nnpm i -D cypress @bahmutov/cypress-esbuild-preprocessor esbuild\n# note: this plugin assumes the esbuild is peer dependency\n```\n\n### esbuild version support\n\n| esbuild version | cypress-esbuild-preprocessor version |\n| --------------- | ------------------------------------ |\n| \u003c 0.17          | \u003c 2.2.0                              |\n| \u003e= 0.17         | 2.2.0                                |\n\n## Use\n\n### Cypress v10+\n\nIn your config file add this module as a preprocessor\n\n```js\n// cypress.config.js\nimport { defineConfig } from 'cypress'\nimport createBundler from '@bahmutov/cypress-esbuild-preprocessor'\n\nexport default defineConfig({\n  e2e: {\n    setupNodeEvents(on, config) {\n      on('file:preprocessor', createBundler())\n    },\n  },\n})\n```\n\n### Cypress before v10\n\nIn your plugin file use this module as the preprocessor\n\n```js\n// cypress/plugins/index.js\nconst createBundler = require('@bahmutov/cypress-esbuild-preprocessor')\nmodule.exports = (on, config) =\u003e {\n  on('file:preprocessor', createBundler())\n}\n```\n\n### ESBuild options\n\nIf you want to pass your own [ESBuild options](https://esbuild.github.io/api/)\n\n```js\n// cypress/plugins/index.js\nconst createBundler = require('@bahmutov/cypress-esbuild-preprocessor')\nmodule.exports = (on, config) =\u003e {\n  const bundler = createBundler({\n    // any ESBuild options here\n    // https://esbuild.github.io/api/\n  })\n  on('file:preprocessor', bundler)\n}\n```\n\n## Debugging\n\nRun with the environment variable `DEBUG=cypress-esbuild-preprocessor`\n\nBut also if something is not working, check out the alternative package: [cypress-esbuild-preprocessor](https://github.com/sod/cypress-esbuild-preprocessor#readme)\n\n## Breaking changes\n\n### v1 to v2\n\n- instead of the file preprocessor, exposes a constructor function to allow user options to ESBuild\n\n```js\n// v1\nconst bundler = require('cypress-esbuild-preprocessor')\nmodule.exports = (on, config) =\u003e {\n  on('file:preprocessor', bundler)\n}\n\n// v2\nconst createBundler = require('cypress-esbuild-preprocessor')\nmodule.exports = (on, config) =\u003e {\n  // pass ESBuild options to be applied to each spec file\n  const bundler = createBundler({\n    define: {\n      'process.env.NODE_ENV': '\"development\"',\n    },\n  })\n  on('file:preprocessor', bundler)\n}\n```\n\n[ci image]: https://github.com/bahmutov/cypress-esbuild-preprocessor/workflows/ci/badge.svg?branch=main\n[ci url]: https://github.com/bahmutov/cypress-esbuild-preprocessor/actions\n\n## Small print\n\nAuthor: Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt; \u0026copy; 2022\n\n- [@bahmutov](https://twitter.com/bahmutov)\n- [glebbahmutov.com](https://glebbahmutov.com)\n- [blog](https://glebbahmutov.com/blog)\n- [videos](https://www.youtube.com/glebbahmutov)\n- [presentations](https://slides.com/bahmutov)\n- [cypress.tips](https://cypress.tips)\n- [Cypress Tips \u0026 Tricks Newsletter](https://cypresstips.substack.com/)\n- [my Cypress courses](https://cypress.tips/courses)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/cypress-esbuild-preprocessor/issues) on Github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcypress-esbuild-preprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fcypress-esbuild-preprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcypress-esbuild-preprocessor/lists"}