Skip to content

Make it easier to add extra babel plugins #8

@rb1193

Description

@rb1193

To add a new babel plugin to the configuration, I had to override the entire "module" key in my project's webpack.config.js, which required me to copy all the babel configuration functions from webpack.common.js into my project's config file.

Fortunately for this project I can manage without this particular Babel plugin, so I decided not to bother as it would mean not being able to benefit from future changes to the webpack config in this package.

I'm not exactly sure what the best solution is for this - the mergeWithRules() function in https://github.com/survivejs/webpack-merge might provide a way forward. Alternatively it may be better to allow projects to pass extra configuration parameters to the webpack rules configuration functions (e.g. configureBabelLoader, configureEsLint - these could be exported). That could also get pretty messy though. I don't want to get too deeply into this at the moment but if I have time I will try to revisit.

Metadata

Metadata

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions