christianalfoni / baobab-hot-loader

Using Webpack hot replacement update your application state without reload
MIT License
13 stars 1 forks source link

config #1

Open frontengineer opened 9 years ago

frontengineer commented 9 years ago

Hi, I appreciate your articles and work and hope to use this approach. I was trying to use this with babel-react. However, I cannot quite get this to work. I get the error "Be sure to load react-hot-loader before baobab-hot-loader." Below is the loaders section of my webpack, but I have also tried the '!' seperated config as you display in your config...neither works. I also ran into the a deep diff error.

I realize this has not been "released" yet, but I am wondering...is ready to play with? I saw your PR to babel-react...and just wonder what the status of things is. Thank you!

` loaders : [ { test: /.js?$/, loaders: ['react-hot','baobab-hot', 'jsx-loader?harmony', 'babel-loader'], exclude: /node_modules/ }, { test: /.jsx?$/, loaders: ['react-hot','baobab-hot', 'jsx-loader?harmony', 'babel-loader'], exclude: /node_modules/ } ]

`

christianalfoni commented 9 years ago

Hi there!

I think there is a lot of focus going into Baobab 2.0 release. The author of Baobab wants to make support for this, so it is currently pending.

I have not tried this with latest version of react-hot-loader, so there might be a conflict there?

Or it might be the jsx loader doing something. Btw, babel has jsx included now so you do not need the jsx-loader anymore.

Maybe try that?

frontengineer commented 9 years ago

Thanks for the update. I will give that a try...and stay tuned for the rest.

On Tue, Jul 7, 2015 at 4:48 AM, Christian Alfoni notifications@github.com wrote:

Hi there!

I think there is a lot of focus going into Baobab 2.0 release. The author of Baobab wants to make support for this, so it is currently pending.

I have not tried this with latest version of react-hot-loader, so there might be a conflict there?

Or it might be the jsx loader doing something. Btw, babel has jsx included now so you do not need the jsx-loader anymore.

Maybe try that?

— Reply to this email directly or view it on GitHub https://github.com/christianalfoni/baobab-hot-loader/issues/1#issuecomment-119179661 .