gatsby-plugin-esbuild

0.0.5 • Public • Published

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'],
}

Package Sidebar

Install

npm i gatsby-plugin-esbuild

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

7.32 kB

Total Files

4

Last publish

Collaborators

  • tujoworker