microbundle icon indicating copy to clipboard operation
microbundle copied to clipboard

Document possible Babel customizations

Open leodr opened this issue 4 years ago • 1 comments

I'm building a package with @emotion/react and need to include their babel-plugin.

I've read on some issues here that Babel customization is possible with a .babelrc file, but it is not documented anywhere. And is the Babel configuration getting merged in or replaces the default one?

I'd also write the docs for that if someone can point me in the right direction :)

leodr avatar Mar 30 '21 08:03 leodr

So I had the same issue on that part for example to enable automatic jsx runtime, microbundle is building the babel configuration based on what arguments you passed (cf. https://github.com/developit/microbundle#all-cli-options-) I had to pass --jsxImportSource to enable it

ymeskini avatar Sep 13 '21 09:09 ymeskini