{"_id":"@akryum/rollup-plugin-esbuild","_rev":"2-013677234416b781d1ae1ec8b1e11de8","name":"@akryum/rollup-plugin-esbuild","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0-semantic-release":{"name":"@akryum/rollup-plugin-esbuild","version":"0.0.0-semantic-release","main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"EGOIST"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/egoist/rollup-plugin-esbuild.git"},"scripts":{"test":"jest","example":"npm run build && rollup -c example/rollup.config.js","build":"ts-node scripts/build","prepublishOnly":"npm run build"},"publishConfig":{"access":"public"},"devDependencies":{"@types/jest":"^26.0.20","@types/mock-fs":"^4.13.0","@types/node":"14.14.21","esbuild":"^0.8.0","jest":"^26.6.3","mock-fs":"^4.13.0","prettier":"^2.2.1","rollup":"^2.36.2","rollup-plugin-dts":"^1.4.10","ts-jest":"^26.4.4","ts-node":"^9.1.1","typescript":"^3.9.7"},"dependencies":{"@rollup/pluginutils":"^4.1.0","joycon":"^2.2.5","strip-json-comments":"^3.1.1"},"peerDependencies":{"esbuild":">=0.7.0"},"engines":{"node":">=12"},"gitHead":"3bbd479c7d92188a57f6556519e623a724262cfd","description":"![npm version](https://badgen.net/npm/v/rollup-plugin-esbuild) ![npm downloads](https://badgen.net/npm/dm/rollup-plugin-esbuild)","bugs":{"url":"https://github.com/egoist/rollup-plugin-esbuild/issues"},"homepage":"https://github.com/egoist/rollup-plugin-esbuild#readme","_id":"@akryum/rollup-plugin-esbuild@0.0.0-semantic-release","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-0b4hg8VGfJciX4kvfXqcQN78aVVjdXkjxslOYrP8MkUjcK1xMHycYd0CnnIvHtOtE2W+l2xdZ0B87C9puQm5xQ==","shasum":"364b8f53c7d3b4c8f08c6cb756f63a1a267bb153","tarball":"https://registry.npmjs.org/@akryum/rollup-plugin-esbuild/-/rollup-plugin-esbuild-0.0.0-semantic-release.tgz","fileCount":5,"unpackedSize":10276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDWP2CRA9TVsSAnZWagAA0z8P/2uoMhtP55O1GIxQlPGf\nPf98W9jDPID34cALEs0ftJ4KfYRdLQywGYkvidayD6xE2hvAcJs94Acvlc8D\nKOFDLfNLG9bFAYkvJnAy4MlTXF8FCPQFlyzJfMfO3WYoJAG7VfBB7LsUrpcn\nNK/xWh2ze7hE49eFFq0Izz2BtZlbFtlfX/CGnD+kc+cdRZdVLR0oyvKJ0LO1\nCKAoR3rPiQm9/nRAlsqjn3BeufRug0SnqyOIZgcwHpWDhCCIY1zgRasMulPh\nYNt3san52G2DjA7MQTcxyKeti7EfDTPf8EYHSTlluG0zxfCq82i3aSrZ8jo+\nAp6uQoFminC2TThid/rH7YdcmSeSwtxm9vJfE4ul864WpmdFxraAhzsk+W40\nnI7rqFfet6rJnXABKuGU+XybLC2Ih3DFWD5wrZ7w9pG+lB1aSVCVtKkTxe7F\nmkE7mN+aCIwYtROCIvVi9IhwUoPmHDGbdZSOUSPkTxLASzR4Zv+Uxk7OGfPA\nKtWv2nLv/ttlq0assixbXm7u8rhgrwGBnwTnBEoPnj1oSe09uT9i017uIBbU\nSaq1O1U9IonYqaSprBOrc6veyuT89opUB1CmlG9iwynxGgHlGvWZzU1bkUz5\nC17E94qP4N4a4t4h2Dn4Tx2KXQy8SzuMekJce2xjCGQBkpuYVTANDxhDfS3V\nNT8d\r\n=bkyj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS8rcKK4BRQ8TKBAueiyduAHktCM15JJlVqo/CprEBzwIhAP5Pm7ZFA7SnKDuSSJo9sXOgFPKcr31LYh1QY50jlora"}]},"_npmUser":{"name":"akryum","email":"guillaume.b.chau@gmail.com"},"directories":{},"maintainers":[{"name":"akryum","email":"guillaume.b.chau@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-esbuild_0.0.0-semantic-release_1611490293879_0.1441335451351513"},"_hasShrinkwrap":false},"1.0.0":{"name":"@akryum/rollup-plugin-esbuild","version":"1.0.0","main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"EGOIST"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/egoist/rollup-plugin-esbuild.git"},"scripts":{"test":"jest","example":"npm run build && rollup -c example/rollup.config.js","build":"ts-node scripts/build","prepublishOnly":"npm run build"},"publishConfig":{"access":"public"},"devDependencies":{"@types/jest":"^26.0.20","@types/mock-fs":"^4.13.0","@types/node":"14.14.21","esbuild":"^0.8.0","jest":"^26.6.3","mock-fs":"^4.13.0","prettier":"^2.2.1","rollup":"^2.36.2","rollup-plugin-dts":"^1.4.10","ts-jest":"^26.4.4","ts-node":"^9.1.1","typescript":"^3.9.7"},"dependencies":{"@rollup/pluginutils":"^4.1.0","joycon":"^2.2.5","strip-json-comments":"^3.1.1"},"peerDependencies":{"esbuild":">=0.7.0"},"engines":{"node":">=12"},"gitHead":"3bbd479c7d92188a57f6556519e623a724262cfd","description":"![npm version](https://badgen.net/npm/v/rollup-plugin-esbuild) ![npm downloads](https://badgen.net/npm/dm/rollup-plugin-esbuild)","bugs":{"url":"https://github.com/egoist/rollup-plugin-esbuild/issues"},"homepage":"https://github.com/egoist/rollup-plugin-esbuild#readme","_id":"@akryum/rollup-plugin-esbuild@1.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-FPd483HkHonOStmbxK8enX8zpY+O86QQO+HwXpgR5r4yxHsaH1JNeomUux3bgofPPs9gohPohN6PjTSoPMbtEw==","shasum":"741a4f37d7c77c2f6b4e08bd1a8e4feac05493ee","tarball":"https://registry.npmjs.org/@akryum/rollup-plugin-esbuild/-/rollup-plugin-esbuild-1.0.0.tgz","fileCount":5,"unpackedSize":10259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDWQbCRA9TVsSAnZWagAAeWIP/Ruj5OT2uw/LTRmZt7+8\ngHPs3SdJRTaRYeatA4zIx7xXqzJnPvMh2YX+k1F33KQ04zN7wKiZmmHy85Q0\nFxP+HDdYy4oyw9HbmeZm9JH9a2NhJswmtH0qzgtq4Ioghe2d6AlcxQ6xmKSn\nyBC5EhNDjS1RWUD/9e+plZ2cRl4O1r8IvZSfDnCjEMgUkUL4PN5qViAfKx7+\nYDWLSnkfMLFIsZXz7Gil0lSSUcnXcMKW+cRJUFafr/8uCHuL/AK37GzyL/Ev\npVI7ULRTWuRH03yyPSI7wc3RB6lLt8DKoqe1VvPY+IkOdYz79PoG1/Fq/yBz\ntMzN4IQtbPPrzU3etPElgH8FnbaCqQIOmlgIBv2ltYuz7KAlmUGkPKdO7rNH\nvhXktf9W0EyruLnRn5ejn5EJaEweoIkN8H6esDRFZt7skne+EXxT/zBwNQ5+\n2kzlOiQPtR2AZgksJHkDdf4WnhpwhQsN8HkUoJ+QWCjHN/6zKHf1CXIzR8jr\nhngCB28ia2MN33ZSEkc8/yHTILa6nfijwhhJXDLOmR1j0TEKD8+922fxe7gE\nqAnlkoP51mD8RTH+Ip6fS050gq4up808g9s9irEPvgFBMX04ue7qcBEh8qSH\n4gPy1kcENedtpgfSKyZrYZ237GqrvbsATGCZaxx0wUwDlsuzhRcm+2SgF587\nOwtT\r\n=9jTl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHyGQKA/In/6VLJqiV680WJj7z5h1dSmz0gDj50ySNmwIgDoRFTWsUkjsbexYmePWnUenB4AfzZvs58pfatOdeefI="}]},"_npmUser":{"name":"akryum","email":"guillaume.b.chau@gmail.com"},"directories":{},"maintainers":[{"name":"akryum","email":"guillaume.b.chau@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-esbuild_1.0.0_1611490331239_0.36490703703377614"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-24T12:11:33.844Z","0.0.0-semantic-release":"2021-01-24T12:11:34.098Z","modified":"2022-04-04T12:31:19.377Z","1.0.0":"2021-01-24T12:12:11.383Z"},"maintainers":[{"name":"akryum","email":"guillaume.b.chau@gmail.com"}],"description":"![npm version](https://badgen.net/npm/v/rollup-plugin-esbuild) ![npm downloads](https://badgen.net/npm/dm/rollup-plugin-esbuild)","homepage":"https://github.com/egoist/rollup-plugin-esbuild#readme","repository":{"type":"git","url":"git+https://github.com/egoist/rollup-plugin-esbuild.git"},"author":{"name":"EGOIST"},"bugs":{"url":"https://github.com/egoist/rollup-plugin-esbuild/issues"},"license":"MIT","readme":"# rollup-plugin-esbuild\n\n![npm version](https://badgen.net/npm/v/rollup-plugin-esbuild) ![npm downloads](https://badgen.net/npm/dm/rollup-plugin-esbuild)\n\n[esbuild](https://github.com/evanw/esbuild) is by far one of the fastest TS/ESNext to ES6 compilers and minifier, this plugin replaces `rollup-plugin-typescript2`, `@rollup/plugin-typescript` and `rollup-plugin-terser` for you.\n\n## Install\n\n```bash\nyarn add esbuild rollup-plugin-esbuild --dev\n```\n\n## Usage\n\nIn `rollup.config.js`:\n\n```js\nimport esbuild from 'rollup-plugin-esbuild'\n\nexport default {\n  plugins: [\n    esbuild({\n      // All options are optional\n      include: /\\.[jt]sx?$/, // default, inferred from `loaders` option\n      exclude: /node_modules/, // default\n      sourceMap: false, // default\n      minify: process.env.NODE_ENV === 'production',\n      target: 'es2017' // default, or 'es20XX', 'esnext'\n      jsxFactory: 'React.createElement',\n      jsxFragment: 'React.Fragment'\n      // Like @rollup/plugin-replace\n      define: {\n        __VERSION__: '\"x.y.z\"'\n      },\n      tsconfig: 'tsconfig.json', // default\n      // Add extra loaders\n      loaders: {\n        // Add .json files support\n        // require @rollup/plugin-commonjs\n        '.json': 'json',\n        // Enable JSX in .js files too\n        '.js': 'jsx'\n      }\n    }),\n  ],\n}\n```\n\n- `include` and `exclude` can be `String | RegExp | Array[...String|RegExp]`, when supplied it will override default values.\n- It uses `jsxFactory`, `jsxFragmentFactory` and `target` options from your `tsconfig.json` as default values.\n\n### Declaration File\n\nThere are serveral ways to generate declaration file:\n\n- Use `tsc` with `emitDeclarationOnly`, the slowest way but you get type checking, it doesn't bundle the `.d.ts` files.\n- Use [`rollup-plugin-dts`](https://github.com/Swatinem/rollup-plugin-dts) which generates and bundle `.d.ts`, also does type checking.\n- Use [`api-extractor`](https://api-extractor.com/) by Microsoft, looks quite complex to me so I didn't try it, PR welcome to update this section.\n\n### Use with Vue JSX\n\nUse this with [rollup-plugin-vue-jsx](https://github.com/xxholly32/rollup-plugin-vue-jsx):\n\n```js\nimport vueJsx from 'rollup-plugin-vue-jsx-compat'\nimport esbuild from 'rollup-plugin-esbuild'\n\nexport default {\n  // ...\n  plugins: [\n    vueJsx(),\n    esbuild({\n      jsxFactory: \"vueJsxCompat\",\n    }),\n  ],\n}\n```\n\n## License\n\nMIT &copy; [EGOIST (Kevin Titor)](https://github.com/sponsors/egoist)\n","readmeFilename":"README.md"}