0.0.5 ā€¢ Published 2 years ago

gatsby-plugin-esbuild v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Gatsby Plugin for using ES-Build

This Gatsby Plugin replaces the Webpack babel-loader with esbuild-loader.

And there are almost too many thread offs:

  • Babel is not supported anymore
  • It can make the build process faster, but it may not
  • Ideally ā€“ Babel and Webpack would rather use some low lever languages to make their AST parser faster. But that will not happen

šŸ’„ So, do not use it in production. šŸ’„

It is experimental and not really mean to be used in production.

Know issues:

  • Emotion does not work properly.
  • React v17+ jsx transform (Gatsby config: jsxRuntime: 'automatic') does not work properly.

How it works

It simply uses esbuild-loader and removes all GraphQL Queries.

How to install and use

yarn add -D gatsby-plugin-esbuild
// gatsby-config
module.exports = {
  plugins: ['gatsby-plugin-esbuild'],
}