alexisvincent / systemjs-hot-reloader

reloads your modules as needed so that you can have satisfyingly fast feedback loop when developing your app
MIT License
228 stars 36 forks source link

HTML / SCSS files not hot reloading, not showing under moduleRecords #112

Closed tamzinselvi closed 8 years ago

tamzinselvi commented 8 years ago

Hi all,

Using plugin-text & plugin-sass to load my html / scss files. Everything works great up until I try to get HMR to kick in - one key note is I've noticed these files aren't loading under moduleRecords, but they are loading under modules. Here's some relevant snippets:

config.json

...
  packages: {
    'src': {
      meta: {
        "*.html": {
          loader: "text"
        },
        "*.scss": {
          loader: "sass"
        }
      }
    }
  },
...

Inspecting System._loader.moduleRecords:

...
http://localhost:3000/src/app.component.js
http://localhost:3000/src/app.js

Inspecting System._loader.modules:

...
http://localhost:3000/src/app.component.js
http://localhost:3000/src/app.html
http://localhost:3000/src/app.js
http://localhost:3000/src/app.scss

Any ideas? I've tried every hack in every discussion around getting HMR working with text/css with no luck. Would love to help in any way. Thanks in advanced.

tamzinselvi commented 8 years ago

NVM, I'm an idiot. trace wasn't being set before original System import, so yeah... anyone else having these types of issues plz be advised that is KEY