1.0.3 • Published 4 years ago

awesome-esbuild-loader v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

awesome-esbuild-loader

npm version

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

npm install --save-dev awesome-esbuild-loader

Usage

In webpack.config.js:

const { ESBuildPlugin } = require('awesome-esbuild-loader')

module.exports = {
  module: {
    rules: [
      {
        test: /\.[jt]sx?$/,
        loader: 'awesome-esbuild-loader',
        options: {
          // All options are optional
          target: 'es2015', // default, or 'es20XX', 'esnext'
          jsxFactory: 'React.createElement',
          jsxFragment: 'React.Fragment',
          sourceMap: false, // Enable sourcemap
        },
      },
    ],
  },
  plugins: [new ESBuildPlugin()],
}

License

MIT © mathew-kurian (Mathew Kurian)

Original

MIT © EGOIST (Kevin Titor) - https://github.com/egoist/esbuild-loader

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago