geelen / jspm-server

A live-reloading development server for JSPM
144 stars 12 forks source link

Relative jsx reference are not hot-reloaded ? #13

Closed johnraz closed 9 years ago

johnraz commented 9 years ago

Hi again !

This is how I load my main module:

<script type="text/javascript">
    System.import('js/main');
</script>

Then If I load the app.jsx file that lives right next to the main.js file like this:

import App from 'app.jsx!';

Hot reloading fails and I get a full browser refresh instead.

However if I do this:

import App from 'js/app.jsx!';

All is fine.

Maybe this is a silly question but I'm trying to wrap my head around this. Thanks already ;-)

geelen commented 9 years ago

Hmm, what happens if you try:

import App from './app.jsx!`;

I assumed you needed the ./ for a relative reference, but maybe you don't...

johnraz commented 9 years ago

owkay I was being stupid, it does indeed work as expected with the dot notation. sorry 'bout this one.