developit / developit/optimize-plugin

Babel configs are ignored

Ouverte
#27 8 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
651
Forks
13
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

In the ReadMe, there's the following line:

> In order to migrate to optimize-plugin, you'll need to move your babel configuration into a `.babelrc` or `babel.config.js` file ...optimize-plugin only uses your babel configuration when generating _modern_ bundles.

However, both `configFile` and `babelrc` are set to `false`:

https://github.com/developit/optimize-plugin/blob/aefb895750e217be250230f9c0cb78afc00aa4fe/src/worker.js#L59-L61

This should stop any config files from being loaded, AFAIK. Am I misunderstanding something, or are the docs outdated perhaps?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.