Babel is a popular JavaScript transpiler that includes a huge ecosystem of plugins.

You probably don't need Babel! Snowpack has built-in support for JSX and TypeScript transpilation. Only use Babel if you need to customize how your JavaScript/TypeScript files are built using custom Babel plugins/presets.

To use Babel with Snowpack: add the @snowpack/plugin-babel plugin to your project.

  // snowpack.config.mjs
  export default {
    "plugins": [
+     ['@snowpack/plugin-babel'],