New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-react-hmre

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-react-hmre - npm Package Compare versions

Comparing version 1.0.0-1 to 1.0.0-2

11

package.json
{
"name": "babel-preset-react-hmre",
"version": "1.0.0-1",
"version": "1.0.0-2",
"description": "Babel preset for React HMR and Error Catching",
"repository": {
"type": "git",
"url": "https://github.com/danmartinez101/babel-preset-react-hmre.git"
},
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"author": "Daniel Martinez",
"license": "ISC",

@@ -11,0 +12,0 @@ "peerDependencies": {

# Babel preset for React HMR and Error Catching
This preset will configure babel for https://github.com/gaearon/react-transform-hmr and friends.
This preset will configure Babel 6 for https://github.com/gaearon/react-transform-hmr and friends.
At present babel 6 (which is required for presets) isn't supported by babel-plugin-react-transform so you probably want to continue using babel 5.
You can track progress on the upgrade to babel 6 over at [babel-plugin-react-transform PR #50](https://github.com/gaearon/babel-plugin-react-transform/pull/50)
It is recommended that this preset only be configured for your development builds.
Once that upgrade is complete, this preset will be a tad bit more useful.
## Install
```
npm install babel-preset-react-hmre --save-dev
```
## Configure babel via .babelrc
```
{
"presets": ["react", "es2015"],
"env": {
"development": {
"presets": ["react-hmre"]
}
}
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc