
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
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 1,346 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.