babel-plugin-inline-env
v1.0.0
Published
Babel's inlineEnvironmentVariables transformer as Babel plugin to force it to run before deadCodeElimination
Downloads
6
Readme
For a little while now Babel (which is great) has had an issue where inlineEnvironmentVariables is being run after deadCodeElimination.
Now that Babel supports plugins, which by default run before all of Babel's internal transformers, we can steal the inlineEnvironmentVariables transformer, recreate it as a plugin, and boom, all fixed.