{"repo":"privatenumber/esbuild-loader","free":true,"listed":false,"github":"https://github.com/privatenumber/esbuild-loader","clone":"git clone https://github.com/privatenumber/esbuild-loader.git","description":"💠 Speed up your Webpack with esbuild ⚡️","language":"TypeScript","stars":3606,"topics":["esbuild","webpack","typescript","esnext","optimization","speedup","esbuild-loader","minification","babel","terser"],"license":"MIT","category":"dev-tools","readme_excerpt":"esbuild-loader Speed up your Webpack build with esbuild! 🔥 esbuild is a JavaScript bundler written in Go that supports blazing fast ESNext & TypeScript transpilation and JS minification. esbuild-loader lets you harness the speed of esbuild in your Webpack build by offering faster alternatives for transpilation (eg. babel-loader / ts-loader ) and minification (eg. Terser)! [!TIP] Are you using TypeScript with Node.js? Supercharge your Node.js with TypeScript support using tsx ! tsx is a simple, lightweight, and blazing fast alternative to ts-node. → Learn more about tsx Already a sponsor? Join the discussion in the Development repo ! 🚀 Install 🚦 Quick Setup To leverage esbuild-loader in your Webpack configuration, add a new rule for esbuild-loader matching the files you want to transform, such as .js , .jsx , .ts , or .tsx . Make sure to remove any other loaders you were using before (e.g. babel-loader / ts-loader ). Here's an example of how to set it up in your webpack.config.js : In this setup, esbuild will automatically determine how to handle each file based on its extension: - .js files will be treated as JS (no JSX allowed) - .jsx as JSX - .ts as TS (no TSX allowed) - .tsx as TSX If you want to force a specific loader on different file extensions (e.g. to allow JSX in .js files), you can use the loader option: Loader JavaScript esbuild-loader can be used in-place of babel-loader to transpile new JavaScript syntax into code compatible with older JavaScript engines. Whi","default_branch":null,"files":null,"tree":[],"storefront":"/r/privatenumber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/privatenumber/esbuild-loader/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}