
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
babel-plugin-ignite-ignore-reactotron
Advanced tools
Strip `Reactotron` from production builds for Ignite-based apps (using `ignite-ir-boilerplate`).
Strip Reactotron
from production builds for Ignite-based apps (using ignite-ir-boilerplate
).
This is beta software.
Please give it a try and lemme know if it doesn't work for you. It should work on any ignite-ir-boilerplate
-based Ignite app. If you have any problems, let me know. I'd love to create a generic babel plugin for any Reactotron
-based app, not just Ignite.
I recommend you don't ship with Reactotron
since it's a debugging tool. The problem is, you've already installed it as a dev dependency and peppered a bunch of console.tron statements everywhere.
So rather than go any deeper with if statements, this babel plugin will transform your code to ditch Reactotron
in production.
# via npm
npm i --save-dev babel-plugin-ignite-ignore-reactotron
# via yarn
yard add -D babel-plugin-ignite-ignore-reactotron
Modify your .babelrc
in your home directory to add this plugin.
{
"presets": ["react-native"],
"env": {
"production": {
"plugins": ["ignite-ignore-reactotron"]
}
}
}
console.tron.log()
or .display
or .error
(etc) will be deleted.console.tron
by itself, it will become false
.import './App/Config/ReactotronConfig'
will be removed from index.ios.js
and index.android.js
.import
or require
with the word reactotron
will be removed.console.tron.overlay(App)
will become App
in App/Containers/App.js
console.tron.createSagaMonitor()
will become null
in App/Redux/CreateStore.js
console.tron.createStore
will become createStore
in App/Redux/CreateStore.js
To give this a trial-run in production mode:
react-native run-ios --configuration Release
console.tron.log()
calls with a noop to play nice inside catch blocks. (@skellock)FAQs
Strip `Reactotron` from production builds for Ignite-based apps (using `ignite-ir-boilerplate`).
The npm package babel-plugin-ignite-ignore-reactotron receives a total of 2,571 weekly downloads. As such, babel-plugin-ignite-ignore-reactotron popularity was classified as popular.
We found that babel-plugin-ignite-ignore-reactotron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.