esbuild-plugin-babel
esbuild-plugin-babel copied to clipboard
Babel plugin for esbuild.
Not sure if this is going to be supported, but I'm trying to be able to run the Angular compiler linker for Babel from ESBuild. My esbuild config (`esbuild.config.mjs` file):...
adding caching to the output babel contents
If I try to require this package, I get `Must use import to load ES Module`. Could you make it support `require`? Thanks 😄
having issue using this plugin in my esbuild.config.json. I just copy pasted your example, throws error immediately. ```js > node_modules/statuses/index.js:13:20: error: [plugin: babel] /[appdir]/node_modules/statuses/codes.json: Missing semicolon. (2:7) 1 | {...
Changes: * The return TypeScript type for `setup()` is `(void | Promise)` (https://github.com/evanw/esbuild/blob/223150f924d746226eedd703d7419dfa636c642f/lib/shared/types.ts#L189). When there are no babel options to parse, it now returns _nothing_. -------------------------- Changes: * Use `require()`...
Have you managed to use this plugin with TypeScript? I'm hoping to use Babel only for my production build, and just work with ES6 via ESBuild during development. I'm using...
This plugin can potentially be much faster. We can enable incremental builds by [caching](https://esbuild.github.io/plugins/#caching-your-plugin) the Babel transform, so it only runs for changed files.
Ignores readFile error if a file is excluded by e.g. the `browser` field in package.json