esbuild is a JavaScript bundler written in Go that supports blazing-fast ESNext & TypeScript transpilation and JS modification. 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)! If you have a tsconfig.json file, esbuild-loader will automatically detect it. esbuild only supports a subset of tsconfig options (see TransformOptions interface) and does not do type-checks. It's recommended to use a type-aware IDE or tsc --noEmit for type-checking instead. It is also recommended to enable isolatedModules and esModuleInterop options in your tsconfig by the esbuild docs. You can replace JS minifiers like Terser or UglifyJs. Checkout the benchmarks to see how much faster esbuild is. The target option tells esbuild that it can use newer JS syntax to perform better minification.

Features

  • Javascript & JSX transpilation
  • Use the minify plugin in-place of the loader to transpile the JS
  • There are two ways to minify CSS, depending on your setup
  • If your CSS is extracted and emitted as a CSS file, you can replace CSS minification plugins
  • If your CSS is not emitted as a CSS file, but rather loaded via JS using something like style-loader, you can use the loader for minification
  • esbuild-loader comes with a version of esbuild it has been tested to work with

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow esbuild-loader

esbuild-loader Web Site

nel_h2
Build Securely on AWS with Proven Frameworks Icon
Build Securely on AWS with Proven Frameworks

Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Download Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of esbuild-loader!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Software Development Software, TypeScript Build Tools

Registered

2022-04-06