Using babel enviroment variables
See original GitHub issueI am looking to implement babel-plugin-react-remove-properties but the CRACO config file only seems to mention added babel plugins directly into the babel plugin array. Doesnt seem to add plugins depending on the environment.
The plugin installation shows applying only to production as so:
{
"env": {
"production": {
"plugins": [
"react-remove-properties"
]
}
}
}
Is this possible with CRACO?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
Environment variables and Babel | harrytheo.com
Configure env variables with Babel# · Install the plugin with npm install babel-plugin-inline-dotenv · Include the plugin and the path to the .env ......
Read more >Environment variables and Babel | by Harry Theo | Geek Culture
In this short guide we will look at a simple way of configuring our environment variables and load them for use inside of...
Read more >babel-plugin-transform-inline-environment-variables
With a configuration file (Recommended) · Via CLI · Via Node API.
Read more >environment variables in babel.config.js - Stack Overflow
To access your env variables within the babel.config.js file, use the dotenv package like this: require('dotenv').config ...
Read more >babel-plugin-transform-inline-environment-variables - npm
Start using babel-plugin-transform-inline-environment-variables in your project ... There are 197 other projects in the npm registry using ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Anyone able to point me in the right direction? Or where to go to find this out?