babel / minify

:scissors: An ES6+ aware minifier based on the Babel toolchain (beta)
https://babeljs.io/repl
MIT License
4.39k stars 225 forks source link

Add strict option to babel-plugin-transform-inline-environment-variables #1051

Open pke opened 3 months ago

pke commented 3 months ago

The plugin already supports the include option, which will only transform the mentioned items. To enforce, that no one tries to use names not specified in include I suggest to use a new option strict which throws an error if a name not specified in the include option is found.