You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"presets": ["es2015", "stage-0", "react"],
"env": {
// only enable it when process.env.NODE_ENV is 'development' or undefined
"development": {
"plugins": ["transform-runtime", ["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
// if you use React Native, pass "react-native" instead:
"imports": ["react"],
// this is important for Webpack HMR:
"locals": ["module"]
}]
// note: you can put more transforms into array
// this is just one of them!
}]]
}
}
}
loader
{test: /\.jsx$/, loader: 'babel'}
The text was updated successfully, but these errors were encountered:
hot module replacement 热替换(react版本)
[webpack-dev-server]、[react-hot-loader]
注意
如果在docker下执行需要添加 --port 0.0.0.0
如果不想在每个jsx源文件下加module.hot.accept()可以使用react-transform-hmr
The text was updated successfully, but these errors were encountered: