esbuild-loder
v1.0.0
Published
[esbuild](https://github.com/evanw/esbuild) is by far one of the fastest TS/ESNext to ES6 compilers, so it makes sense to use it over Babel/TSC with webpack to take advantage of both worlds (Speed and the webpack ecosytem).
Downloads
1
Readme
esbuild-loader
esbuild is by far one of the fastest TS/ESNext to ES6 compilers, so it makes sense to use it over Babel/TSC with webpack to take advantage of both worlds (Speed and the webpack ecosytem).
Install
yarn add esbuild-loader --dev
Usage
In webpack.config.js
:
const { ESBuildPlugin } = require('esbuild-loader')
module.exports = {
module: {
rules: [
{
test: /\.[jt]sx?$/,
loader: 'esbuild-loader',
options: {
target: 'es2015', // default, or 'es20XX', 'esnext'
},
},
],
},
plugins: [new ESBuildPlugin()],
}
License
MIT © EGOIST (Kevin Titor)