{"_id":"@caplin/karma-esbuild","_rev":"4-a390e49eb41c32bcb37ca8becba7443c","name":"@caplin/karma-esbuild","dist-tags":{"latest":"2.3.3"},"versions":{"2.3.0":{"name":"@caplin/karma-esbuild","version":"2.3.0","keywords":["karma-plugin","karma-preprocessor","esbuild"],"author":{"name":"Marvin Hagemeister","email":"hello@marvinh.dev"},"license":"MIT","_id":"@caplin/karma-esbuild@2.3.0","maintainers":[{"name":"mlabuhn","email":"marc.labuhn@caplin.com"},{"name":"neal-at-caplin","email":"neal.dangerfield@caplin.com"},{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"}],"homepage":"https://github.com/marvinhagemeister/karma-esbuild#readme","bugs":{"url":"https://github.com/marvinhagemeister/karma-esbuild/issues"},"dist":{"shasum":"18ff5e2c6f0289a8dd0e7c5026ecc589b881954f","tarball":"https://registry.npmjs.org/@caplin/karma-esbuild/-/karma-esbuild-2.3.0.tgz","fileCount":9,"integrity":"sha512-bfydV2rqv8GdoA609z39KlmuUzAX1JRaC5+ahGb5xdxue9Occbr0JLTHewbt3pO7jZmQk9Ashg11eNN/BRVOFA==","signatures":[{"sig":"MEYCIQCwiWGBvfJy3/mJMZwe6zE01cYa7ooCEwr7ChVyJq+HPAIhAOqvTrIrbdrP9aewOrsmRSHpqKDxwTJR9tjuj5vB/i/x","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29446},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"cf1cb8f6a1ac70d6844b15ac022c12174f814aa5","scripts":{"test":"ts-node test/run.ts","build":"rimraf dist/ && tsc","run-karma":"ts-node test/run-karma.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"useTabs":true,"arrowParens":"avoid","trailingComma":"all"},"repository":{"url":"git+https://github.com/marvinhagemeister/karma-esbuild.git","type":"git"},"_npmVersion":"10.8.2","description":"ESBuild preprocessor for karma test runner","directories":{},"lint-staged":{"**/*.{js,jsx,ts,tsx,yml}":["prettier --write"]},"_nodeVersion":"20.19.3","dependencies":{"chokidar":"^3.5.1","source-map":"0.6.1"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^4.3.6","jsdom":"16.5.3","karma":"^5.2.3","mocha":"^8.4.0","pentf":"^2.5.3","rimraf":"^3.0.2","esbuild":"^0.17.2","ts-node":"^9.1.1","kolorist":"^1.4.1","prettier":"^2.3.0","puppeteer":"^9.1.1","typescript":"^4.2.4","@types/node":"^15.0.3","errorstacks":"^2.3.2","karma-mocha":"^2.0.1","lint-staged":"^11.0.0","@types/karma":"^6.3.0","@types/mocha":"^8.2.2","karma-jsdom-launcher":"9.0.0","karma-mocha-reporter":"^2.2.5"},"peerDependencies":{"esbuild":">=0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/karma-esbuild_2.3.0_1757521059921_0.5137942610142363","host":"s3://npm-registry-packages-npm-production"}},"2.3.1":{"name":"@caplin/karma-esbuild","version":"2.3.1","keywords":["karma-plugin","karma-preprocessor","esbuild"],"author":{"name":"Marvin Hagemeister","email":"hello@marvinh.dev"},"license":"MIT","_id":"@caplin/karma-esbuild@2.3.1","maintainers":[{"name":"mlabuhn","email":"marc.labuhn@caplin.com"},{"name":"neal-at-caplin","email":"neal.dangerfield@caplin.com"},{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"}],"dist":{"shasum":"e06f24bb6e805e5fa89cdb4c8dc4ed2e2a98be8f","tarball":"https://registry.npmjs.org/@caplin/karma-esbuild/-/karma-esbuild-2.3.1.tgz","fileCount":9,"integrity":"sha512-rFIt42x00KC9L8Fpd8gBYrAs3k6NlBfMq6W8eQhPFstMD7V33hSXHhAOP8trnoKAS10N607MYcsxSLL5Z/Qp/A==","signatures":[{"sig":"MEUCIQCB7TDZi5iFNJmWqIjF+la2AsWY+9ZDMWAm3GTLRuNCywIgXyNL5XNIuHKOl+sYDMtaVIGrlG8uYzgPO2lNhcd2Xfs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29331},"main":"dist/index.js","_from":"file:caplin-karma-esbuild-2.3.1.tgz","scripts":{"test":"ts-node test/run.ts","build":"rimraf dist/ && tsc","run-karma":"ts-node test/run-karma.ts"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"useTabs":true,"arrowParens":"avoid","trailingComma":"all"},"_resolved":"/tmp/3ff9a649c9e98a99842a05a16af6ee24/caplin-karma-esbuild-2.3.1.tgz","_integrity":"sha512-rFIt42x00KC9L8Fpd8gBYrAs3k6NlBfMq6W8eQhPFstMD7V33hSXHhAOP8trnoKAS10N607MYcsxSLL5Z/Qp/A==","_npmVersion":"10.8.2","description":"ESBuild preprocessor for karma test runner","directories":{},"lint-staged":{"**/*.{js,jsx,ts,tsx,yml}":["prettier --write"]},"_nodeVersion":"20.19.3","dependencies":{"chokidar":"^3.5.1","source-map":"0.6.1"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^4.3.6","jsdom":"16.5.3","karma":"^5.2.3","mocha":"^8.4.0","pentf":"^2.5.3","rimraf":"^3.0.2","esbuild":"^0.17.2","ts-node":"^9.1.1","kolorist":"^1.4.1","prettier":"^2.3.0","puppeteer":"^9.1.1","typescript":"^4.2.4","@types/node":"^15.0.3","errorstacks":"^2.3.2","karma-mocha":"^2.0.1","lint-staged":"^11.0.0","@types/karma":"^6.3.0","@types/mocha":"^8.2.2","karma-jsdom-launcher":"9.0.0","karma-mocha-reporter":"^2.2.5"},"peerDependencies":{"esbuild":">=0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/karma-esbuild_2.3.1_1757521392033_0.1858065432149134","host":"s3://npm-registry-packages-npm-production"}},"2.3.2":{"name":"@caplin/karma-esbuild","version":"2.3.2","keywords":["karma-plugin","karma-preprocessor","esbuild"],"author":{"name":"Marvin Hagemeister","email":"hello@marvinh.dev"},"license":"MIT","_id":"@caplin/karma-esbuild@2.3.2","maintainers":[{"name":"mlabuhn","email":"marc.labuhn@caplin.com"},{"name":"neal-at-caplin","email":"neal.dangerfield@caplin.com"},{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"}],"dist":{"shasum":"e92a00e87d18601e5b1931c686f12ab3b9a68a42","tarball":"https://registry.npmjs.org/@caplin/karma-esbuild/-/karma-esbuild-2.3.2.tgz","fileCount":9,"integrity":"sha512-P6O3LGREuFd1o1/W/qK83sAYo8H6ERNLsfDlomO8MjnQgLAEztSpPKnu0P4bQgg6kyKy6Ho8dypbTkqXA4GCmg==","signatures":[{"sig":"MEUCIQDfVkWh/gmWXpVrOvrKq1R9cTpfQLSbtBasqOMOEng7lgIgMy7hf0BtSMQZHnJ2JYh1W0fSaJMBnz320ESZdctNEYs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29333},"main":"dist/index.js","_from":"file:caplin-karma-esbuild-2.3.2.tgz","scripts":{"test":"ts-node test/run.ts","build":"rimraf dist/ && tsc","run-karma":"ts-node test/run-karma.ts"},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"prettier":{"useTabs":true,"arrowParens":"avoid","trailingComma":"all"},"_resolved":"/tmp/448f20a4395020ed3578318ac7dc2bcc/caplin-karma-esbuild-2.3.2.tgz","_integrity":"sha512-P6O3LGREuFd1o1/W/qK83sAYo8H6ERNLsfDlomO8MjnQgLAEztSpPKnu0P4bQgg6kyKy6Ho8dypbTkqXA4GCmg==","_npmVersion":"10.8.2","description":"ESBuild preprocessor for karma test runner","directories":{},"lint-staged":{"**/*.{js,jsx,ts,tsx,yml}":["prettier --write"]},"_nodeVersion":"20.19.3","dependencies":{"chokidar":"^3.5.1","source-map":"0.6.1"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^4.3.6","jsdom":"16.5.3","karma":"^5.2.3","mocha":"^8.4.0","pentf":"^2.5.3","rimraf":"^3.0.2","esbuild":"^0.17.2","ts-node":"^9.1.1","kolorist":"^1.4.1","prettier":"^2.3.0","puppeteer":"^9.1.1","typescript":"^4.2.4","@types/node":"^15.0.3","errorstacks":"^2.3.2","karma-mocha":"^2.0.1","lint-staged":"^11.0.0","@types/karma":"^6.3.0","@types/mocha":"^8.2.2","karma-jsdom-launcher":"9.0.0","karma-mocha-reporter":"^2.2.5"},"peerDependencies":{"esbuild":">=0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/karma-esbuild_2.3.2_1757521495857_0.18237749865622277","host":"s3://npm-registry-packages-npm-production"}},"2.3.3":{"name":"@caplin/karma-esbuild","version":"2.3.3","description":"ESBuild preprocessor for karma test runner","main":"dist/index.js","scripts":{"build":"rimraf dist/ && tsc","test":"ts-node test/run.ts","run-karma":"ts-node test/run-karma.ts","prepublishOnly":"npm run build"},"keywords":["karma-plugin","karma-preprocessor","esbuild"],"author":{"name":"Marvin Hagemeister","email":"hello@marvinh.dev"},"license":"MIT","dependencies":{"chokidar":"^3.5.1","source-map":"0.6.1"},"peerDependencies":{"esbuild":">=0.17.0"},"devDependencies":{"@types/karma":"^6.3.0","@types/mocha":"^8.2.2","@types/node":"^15.0.3","errorstacks":"^2.3.2","esbuild":"^0.17.2","husky":"^4.3.6","jsdom":"16.5.3","karma":"^5.2.3","karma-jsdom-launcher":"9.0.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","kolorist":"^1.4.1","lint-staged":"^11.0.0","mocha":"^8.4.0","pentf":"^2.5.3","prettier":"^2.3.0","puppeteer":"^9.1.1","rimraf":"^3.0.2","ts-node":"^9.1.1","typescript":"^4.2.4"},"lint-staged":{"**/*.{js,jsx,ts,tsx,yml}":["prettier --write"]},"prettier":{"useTabs":true,"arrowParens":"avoid","trailingComma":"all"},"_id":"@caplin/karma-esbuild@2.3.3","gitHead":"53d1b1ec20789ed255b69afdcc0843f4ac8c9f0c","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-2xhlAYrWLW/+mSZYMQVVyglvYuirJBQBa0u6o9lAQb5A9TJIO31kaL/N1ArEeijuqvjk9072M1xB91K46UkeUw==","shasum":"1455ccc5d58702d39b2831f06dbfb443b5783e10","tarball":"https://registry.npmjs.org/@caplin/karma-esbuild/-/karma-esbuild-2.3.3.tgz","fileCount":9,"unpackedSize":29275,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDboPbkW65fPP534iJ8ZtUxtvk/Fhzpmx7geHmDHpl26QIhALzDKMQ4UphZTj6Njj4HLQ9ADDYqtny3mRUN9OANGSrZ"}]},"_npmUser":{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},"directories":{},"maintainers":[{"name":"mlabuhn","email":"marc.labuhn@caplin.com"},{"name":"neal-at-caplin","email":"neal.dangerfield@caplin.com"},{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/karma-esbuild_2.3.3_1760349709765_0.6715988535798425"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-10T16:17:39.811Z","modified":"2025-10-13T10:01:50.227Z","2.3.0":"2025-09-10T16:17:40.090Z","2.3.1":"2025-09-10T16:23:12.216Z","2.3.2":"2025-09-10T16:24:56.026Z","2.3.3":"2025-10-13T10:01:49.957Z"},"author":{"name":"Marvin Hagemeister","email":"hello@marvinh.dev"},"license":"MIT","keywords":["karma-plugin","karma-preprocessor","esbuild"],"description":"ESBuild preprocessor for karma test runner","maintainers":[{"name":"mlabuhn","email":"marc.labuhn@caplin.com"},{"name":"neal-at-caplin","email":"neal.dangerfield@caplin.com"},{"name":"jtm-caplin","email":"jacob.middleton@caplin.com"},{"name":"brjs","email":"bladerunnerjs@caplin.com"}],"readme":"# karma-esbuild\n\nAn [esbuild](https://github.com/evanw/esbuild) preprocessor for the karma test runner. The main benefits of `esbuild` is speed and readability of the compiled output.\n\n## Installation\n\n```bash\nnpm install --save-dev karma-esbuild\n```\n\n## Usage\n\nAdd `esbuild` as your preprocessor inside your `karma.conf.js`:\n\n```js\nmodule.exports = function (config) {\n\tconfig.set({\n\t\tpreprocessors: {\n\t\t\t// Add esbuild to your preprocessors\n\t\t\t\"test/**/*.test.js\": [\"esbuild\"],\n\t\t},\n\t});\n};\n```\n\n### Advanced: Custom configuration\n\nA custom esbuild configuration can be passed via an additional property on karma's config. Check out the [documentation for esbuild](https://esbuild.github.io/api/) for available options.\n\n```js\nmodule.exports = function (config) {\n\tconfig.set({\n\t\tpreprocessors: {\n\t\t\t// Add esbuild to your preprocessors\n\t\t\t\"test/**/*.test.js\": [\"esbuild\"],\n\t\t},\n\n\t\tesbuild: {\n\t\t\t// Replace some global variables\n\t\t\tdefine: {\n\t\t\t\tCOVERAGE: coverage,\n\t\t\t\t\"process.env.NODE_ENV\": JSON.stringify(process.env.NODE_ENV || \"\"),\n\t\t\t\tENABLE_PERFORMANCE: true,\n\t\t\t},\n\t\t\tplugins: [createEsbuildPlugin()],\n\n\t\t\t// Karma-esbuild specific options\n\t\t\tsingleBundle: true, // Merge all test files into one bundle(default: true)\n\t\t},\n\t});\n};\n```\n\n## License\n\n`MIT`, see [the LICENSE](./LICENSE) file.\n","readmeFilename":"README.md"}