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

How to do custom loader? #143

Closed
wegorich opened this issue Jul 6, 2017 · 5 comments
Closed

How to do custom loader? #143

wegorich opened this issue Jul 6, 2017 · 5 comments

Comments

@wegorich
Copy link
Contributor

wegorich commented Jul 6, 2017

I'm trying to do Aurelia.js HMR here Aurelia HMR. But can't find the way to setup communication between System HMR and Aurelia loader.

Would be nice to find example for change subscription. Or how to do custom loader.

@wegorich
Copy link
Contributor Author

wegorich commented Jul 6, 2017

Looking to the webpack implementation, they have:

  • module.hot
  • module.hot.accept
  • module.hot.decline
  • module.hot.dispose

Do we have any similar methods or alternatives to manage the HMR module behavior?

Going to avoid such code in each modules:

import {module} from '@hot'
__unload()...

, and make general loader, manage that's stuffs in one place. In custom loader.

Does it even possible?

@wegorich
Copy link
Contributor Author

wegorich commented Jul 6, 2017

I create a sample to show what am I doing aurelia-systemjs-loader.

In general I need some how trigger class methods here loader for example, after systemjs-hot-loader loads module after changes.

I'm stuck would be glad for any help

@alexisvincent
Copy link
Owner

Lets jump on an instant messenger. One moment.

@alexisvincent
Copy link
Owner

you should have received an invite to the gitter room alexisvincent/systemjs-hmr

@wegorich
Copy link
Contributor Author

wegorich commented Jul 7, 2017

So custom loader for systemjs doing via plugins: documentation how to, example for vue

it solves my issues with systemjs

@wegorich wegorich closed this as completed Jul 7, 2017
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