Microbundle: Doesn't seem to be paying attention to babelrc?

Created on 15 Dec 2017  ·  2Comments  ·  Source: developit/microbundle

Fooling around: https://github.com/probablyup/markdown-to-jsx/tree/microbundle

Doesn't seem to be honoring my babelrc and it's blowing up on some ES6+ syntax:

yarn run v1.3.2
$ microbundle build
SyntaxError: Unexpected token (553:12) /Users/bear/code/markdown/index.js (nodent)
            ...overrideProps,
------------^
✨  Done in 0.75s.

Most helpful comment

Indeed - we are actually shipping Bublé right now, not Babel. This is done to produce the smallest possible bundle output, but I think we're going to need to consider either adding a Babel option/plugin (maybe if we detect a babelrc?), or switching to Babel and applying post-transform optimizations to get the size back down to Bublé levels.

All 2 comments

Indeed - we are actually shipping Bublé right now, not Babel. This is done to produce the smallest possible bundle output, but I think we're going to need to consider either adding a Babel option/plugin (maybe if we detect a babelrc?), or switching to Babel and applying post-transform optimizations to get the size back down to Bublé levels.

This is resolved with 0.12.0. We switched from bublé to babel.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phryneas picture phryneas  ·  12Comments

scttcper picture scttcper  ·  11Comments

JoviDeCroock picture JoviDeCroock  ·  17Comments

Conaclos picture Conaclos  ·  11Comments

FezVrasta picture FezVrasta  ·  11Comments