{"_id":"@baurine/esbuild-plugin-babel","_rev":"1-f3e1515289c2351940733d693099cf09","name":"@baurine/esbuild-plugin-babel","dist-tags":{"latest":"0.3.0"},"versions":{"0.3.0":{"name":"@baurine/esbuild-plugin-babel","version":"0.3.0","description":"Babel plugin for esbuild.","repository":{"type":"git","url":"git+https://github.com/baurine/esbuild-plugin-babel.git"},"author":{"name":"Antoine Boulanger","url":"https://github.com/antoineboulanger"},"license":"ISC","exports":"./src/index.js","main":"src/index.js","scripts":{"format":"prettier --write --ignore-unknown '**/*'"},"peerDependencies":{"@babel/core":"^7.0.0"},"devDependencies":{"@babel/core":"7.13.10","prettier":"^2.2.1"},"keywords":["babel","esbuild","esbuild-plugin"],"gitHead":"2847067b60ef2ae8a2ed5fea59845eae3c03638f","bugs":{"url":"https://github.com/baurine/esbuild-plugin-babel/issues"},"homepage":"https://github.com/baurine/esbuild-plugin-babel#readme","_id":"@baurine/esbuild-plugin-babel@0.3.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-AKa/svOQUhHE7HNa8vU3qEXL+U1ln211Sl5mCBX+AQIldEEcvA80udzVENGh6VEztUtbpsXRsPdP9VI8tyX96w==","shasum":"b7409eb2a388fb03a5dacbf333154ae3604abcc7","tarball":"https://registry.npmjs.org/@baurine/esbuild-plugin-babel/-/esbuild-plugin-babel-0.3.0.tgz","fileCount":4,"unpackedSize":4259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAIWBCRA9TVsSAnZWagAAsYsP/R2hwckK4NrDG1Pn+m3E\not9Xi527rSnAmLE7aCATiEgAmPfW+/TCsY0/Ng+RETl7BTNJoygDsxTr4gSz\nqJizt4cFuxb2x6YSY3MGUBQ4lo3DrsZNJD9FNhLSw6HL47JmkbJymuM96ptl\nbIF096vgRyFkV62h+ssJLu/nA7IcAg+5Fj57jZqT7v4uHD/FbVla8bQcjfUU\njLNX/LeCp1rziJBOeOkyNfFSl6XxZIgfXo3kCDSOXk2jD2NAB/5RZLcAl6WU\neNdG4Xi9tGDUKTTbufcYezHScQEFQv1TrfRlXIc8RBzgsFWnhqpMZvWBVIhG\nb2+SDLyj1LiEs8NsJuBSbNzDLVWD+LwI3d9F56IAQxYWOszEqJTaOovkTrGd\nZzCPSfngypQxAuKxRaFd07LWgUa5XUVGXTcUpgn37S7SF0R7HIMZqMuYhP8g\nwPeHi7Tj+UR4LFEjgaF31Y1UJ+S8i/vDBboTp/Rkmi2EMT0q65jlK3Yax5ae\nVBaatmMnnL2fi6NbtebVLifGRCJ+xRtwF3+v10hsQouVpI1fvgOIdz1lflIW\n4gOoHJEn6VPUtkNaSLkCAHDw00YDGPEpcHj4FyBvxFEJ1RzDjVdKL7ZLc3nf\ntdT0HKWgQGt7xCe50kKROgL1Z9ni7eno6OaAa0+8/jFIA56Hq31otcK5f410\nFnIV\r\n=sz7i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5KLquqZQYbb49qSysZQu72M9VpNQpjjx4x0ooD2T3kAIhAJsriOZzV1k6xNB8mC8Arj10Vh+QVEkntXCXX4nhYAer"}]},"_npmUser":{"name":"baurine","email":"2008.hbl@gmail.com"},"directories":{},"maintainers":[{"name":"baurine","email":"2008.hbl@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-plugin-babel_0.3.0_1644201345192_0.5700653630499515"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-07T02:35:45.113Z","0.3.0":"2022-02-07T02:35:45.526Z","modified":"2022-04-04T17:48:22.180Z"},"maintainers":[{"name":"baurine","email":"2008.hbl@gmail.com"}],"description":"Babel plugin for esbuild.","homepage":"https://github.com/baurine/esbuild-plugin-babel#readme","keywords":["babel","esbuild","esbuild-plugin"],"repository":{"type":"git","url":"git+https://github.com/baurine/esbuild-plugin-babel.git"},"author":{"name":"Antoine Boulanger","url":"https://github.com/antoineboulanger"},"bugs":{"url":"https://github.com/baurine/esbuild-plugin-babel/issues"},"license":"ISC","readme":"<div></div>\n\n# esbuild-plugin-babel\n\n[Babel](https://github.com/babel/babel) plugin for [esbuild](https://github.com/evanw/esbuild).\n\n<br>\n\nFirst, check if [esbuild supports](https://esbuild.github.io/content-types/) the transform you need _(it's faster)_.  \nIf not, you can add the Babel plugin you need with this plugin.\n\n<br>\n\n### Install\n\n```zsh\nnpm install @baurine/esbuild-plugin-babel -D\n```\n\n<br>\n\n### Use\n\n`esbuild.config.js`\n\n```js\nconst esbuild = require('esbuild');\nconst babel = require('@baurine/esbuild-plugin-babel');\n\nesbuild\n    .build({\n        entryPoints: ['index.js'],\n        bundle: true,\n        outfile: 'main.js',\n        plugins: [babel()],\n        // target: ['es5'] // if you target es5 with babel, add this option\n    })\n    .catch(() => process.exit(1));\n```\n\n`package.json`\n\n```json\n{\n    \"type\": \"module\",\n    \"scripts\": {\n        \"start\": \"node esbuild.config.js\"\n    }\n}\n```\n\n<br>\n\n### Configure\n\n`esbuild.config.js`\n\n```js\nbabel({\n    filter: /.*/,\n    namespace: '',\n    config: {} // babel config here or in babel.config.json\n});\n```\n\n[`babel.config.json`](https://babeljs.io/docs/en/configuration)\n\n```json\n{\n    \"sourceMaps\": \"inline\",\n    \"presets\": [...],\n    \"plugins\": [...]\n}\n```\n\n<br>\n\n### Check\n\n[esbuild-serve](https://github.com/nativew/esbuild-serve) &nbsp; → &nbsp; Serve with live reload for esbuild.\n\n[esbuild-plugin-pipe](https://github.com/nativew/esbuild-plugin-pipe) &nbsp; → &nbsp; Pipe esbuild plugins output.\n\n[esbuild-plugin-svg](https://github.com/nativew/esbuild-plugin-svg) &nbsp; → &nbsp; Svg files import plugin for esbuild.\n\n[esbuild-plugin-postcss-literal](https://github.com/nativew/esbuild-plugin-postcss-literal) &nbsp; → &nbsp; PostCSS tagged template literals plugin for esbuild.\n\n<br>\n","readmeFilename":"readme.md"}