{"_id":"@cldcvr/cypress-esbuild-preprocessor","name":"@cldcvr/cypress-esbuild-preprocessor","dist-tags":{"latest":"0.0.0-development"},"versions":{"0.0.0-development":{"name":"@cldcvr/cypress-esbuild-preprocessor","version":"0.0.0-development","description":"Bundle Cypress specs using esbuild","main":"src","typings":"src/index.d.ts","scripts":{"test":"cypress run","watch":"cypress open","semantic-release":"semantic-release","lint":"tsc --noEmit"},"keywords":["cypress-preprocessor"],"author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"license":"MIT","devDependencies":{"cypress":"9.7.0","esbuild":"0.17.5","prettier":"2.8.1","semantic-release":"19.0.5","typescript":"4.9.4"},"dependencies":{"debug":"4.3.4"},"peerDependencies":{"esbuild":">=0.17.0"},"repository":{"type":"git","url":"git+https://github.com/bahmutov/cypress-esbuild-preprocessor.git"},"publishConfig":{"access":"public"},"gitHead":"5a2f8b47e50a73ec1d9ac8c4ed536b614d82f13c","bugs":{"url":"https://github.com/bahmutov/cypress-esbuild-preprocessor/issues"},"homepage":"https://github.com/bahmutov/cypress-esbuild-preprocessor#readme","_id":"@cldcvr/cypress-esbuild-preprocessor@0.0.0-development","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-InWgegiDQ7faCjcizt1KomfM9L1Q6Vh9mXsmnE2OvZswTvICVSJDiuvjk2RImRWhopHBgyTb11fWme6xyi/9/A==","shasum":"8cfec7bb59d1da45c8e258f6ec0e2be8819cb30e","tarball":"https://registry.npmjs.org/@cldcvr/cypress-esbuild-preprocessor/-/cypress-esbuild-preprocessor-0.0.0-development.tgz","fileCount":5,"unpackedSize":8801,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCN1JCpcKjYWHes32NWer7c3XY9CZffP2RCuE53MxmSrAIge7bo0Dk1gfmJuIrm5/WrMUNynoWTNsqHtA5pwoC9Jlw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7hWZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTEg//cdLPXco0uxUR2RalCGGcePdjSQXznzjZay0gc679DNPiyHIy\r\nAvnf1FzyAeBV0AMXxvGiFtDcbsyDiypyyOkuqYgaotRiJBs6YkGnMGsng1eg\r\nppTKwgy1GTY2W/m/7xLEmn9eqX6c4s7/j1T+GLiBT1mwHg425BK+kkl75vFt\r\nY2EtfTW9PLfR2lL4hl3MX6kM8dJhPH68k45huHi8T2jffImVTDOnfvUDV+5Q\r\neLlu6lEE+Hv8FLMUKHyrB3clPd23foAe+g9ZC0PzwtosnvnRMh/rZxSWJC/O\r\njY8s0Pzm79vHvRKRh23rIKuWxt+e/g+Pavrnl0Mkrj4NtUYrWNil33n42j4b\r\np8ghNBwiz2QfJXjZ7zQctQEnsr4Mkb/XSDH4WDIMe3ays+czlY/ZpyCV4HmG\r\nMYQE/I29mN+tLaIQpFPKUwUEnZDBwBI+355Wiiu/cpPBk3EBYFz8JVRXNMgF\r\n6gnnDa+olP2sIxm3jWLAOi8X0AiS7O/J4cj3iDnYJW+FDB5E9JCP526Rbpg7\r\n6l4vDfpO5dJ7xaOwhrbB0caog/iLChqT2nqvQhXOdZNGVuHZ/Y7iNupnOjtt\r\npHCsxNm8uAI2dIGQJHqvD4eyilQMZSRmGcGaljpDg3MbzZV0mWFE8siDJxsS\r\nv0gz9MR/s4CfblwXCk9+32Pe029F27Ug0OY=\r\n=dYVU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"shubhamseervi","email":"shubhamseervi@gmail.com"},"directories":{},"maintainers":[{"name":"shubhamseervi","email":"shubhamseervi@gmail.com"},{"name":"vikas-cldcvr","email":"vikas@cldcvr.com"},{"name":"nikhilverma","email":"nikhilgotmail@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-esbuild-preprocessor_0.0.0-development_1676547481517_0.4989707265960506"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-16T11:38:01.455Z","0.0.0-development":"2023-02-16T11:38:01.704Z","modified":"2023-02-16T11:38:01.970Z"},"maintainers":[{"name":"shubhamseervi","email":"shubhamseervi@gmail.com"},{"name":"vikas-cldcvr","email":"vikas@cldcvr.com"},{"name":"nikhilverma","email":"nikhilgotmail@gmail.com"}],"description":"Bundle Cypress specs using esbuild","homepage":"https://github.com/bahmutov/cypress-esbuild-preprocessor#readme","keywords":["cypress-preprocessor"],"repository":{"type":"git","url":"git+https://github.com/bahmutov/cypress-esbuild-preprocessor.git"},"author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/cypress-esbuild-preprocessor/issues"},"license":"MIT","readme":"# @bahmutov/cypress-esbuild-preprocessor\n\n![cypress version](https://img.shields.io/badge/cypress-9.7.0-brightgreen) ![esbuild version](https://img.shields.io/badge/esbuild-0.16.14-brightgreen) [![ci status][ci image]][ci url]\n\n> 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## Use\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) => {\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) => {\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) => {\n  on('file:preprocessor', bundler)\n}\n\n// v2\nconst createBundler = require('cypress-esbuild-preprocessor')\nmodule.exports = (on, config) => {\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 &lt;gleb.bahmutov@gmail.com&gt; &copy; 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 & 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","readmeFilename":"README.md"}