Closed ryansobol closed 7 years ago
yep
Dunno why this hasn't been mentioned yet, but it is possible. Issue can be closed IMO
add this in your brunch-config.js
:
plugins: {
babel: {
babelrc: true
}
}
EDIT: it seems the babelrc
option is true by default, so it's not even necessary to set that option
Could be closed.
babel-brunch
uses options from .babelrc
as default.
UPD: Confirmed. Related to babel/babel-brunch#52.
When we specify options only in .babelrc
, then these lines add ['es2016', 'es2016']
presets. Options passed to babel.transform()
have more priority, so settings from .babelrc
are ignored.
Should be fixed by #53.
It would be pretty sweet if the
babel-brunch
plugin could use the options defined in the.babelrc
file, if it exists. Something like this should work.I haven't thought much about the load order of using
.babelrc
options vsbrunch-config.js
options. I'll let smarter people who have stronger opinions worry about that.