Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all reimported #29

Closed
happylinks opened this issue Dec 13, 2015 · 2 comments
Closed

all reimported #29

happylinks opened this issue Dec 13, 2015 · 2 comments

Comments

@happylinks
Copy link

Hi,

I'm trying to integrate this in my backbone.js project. But whenever I make a change, all the files up until the "main" file are reimported. I would like to only reload the one I changed, but maybe I'm misunderstanding the hot reloader.

My log:

deleted a module  http://localhost:8080/src/modules/clubs/routes/list/views/item.js  because it has dependency on  origin
jspm-hot-reloader.js:105 deleted a module  http://localhost:8080/src/modules/clubs/routes/list/views/collection.js  because it has dependency on  http://localhost:8080/src/modules/clubs/routes/list/views/item.js
jspm-hot-reloader.js:105 deleted a module  http://localhost:8080/src/modules/clubs/routes/list/route.js  because it has dependency on  http://localhost:8080/src/modules/clubs/routes/list/views/collection.js
jspm-hot-reloader.js:105 deleted a module  http://localhost:8080/src/modules/clubs/controller.js  because it has dependency on  http://localhost:8080/src/modules/clubs/routes/list/route.js
jspm-hot-reloader.js:105 deleted a module  http://localhost:8080/src/router.js  because it has dependency on  http://localhost:8080/src/modules/clubs/controller.js
jspm-hot-reloader.js:105 deleted a module  http://localhost:8080/src/index.js  because it has dependency on  http://localhost:8080/src/router.js
jspm-hot-reloader.js:167 toReimport ["http://localhost:8080/src/index.js"]

Any help would be appreciated.

@peteruithoven
Copy link
Contributor

Also see: #22
The tricky thing is that it can't change references to the module you want to reload, so it also needs to reload modules with those references. If you know of a solution that would be great.

@happylinks
Copy link
Author

Ah I kinda get it now. I was having issues because Backbone.history was restarted, and that caused the entire frontend to stop working. After fixing that the reloading worked fine.
I finally got the reloading working and I love it :) Way better than having to wait for a 12 sec reload every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants