You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 14, 2026. It is now read-only.
Wondering whether it'd be possible to add live-reloading to this plugin. I've managed to get this working, but it's very restrictive, and needs some review & consideration before it'd be ready for a PR.
Here's what I've done so far:
jspm-server — a fork of live-server that injects a SystemJS-aware snippet that looks for events from the file system and sees if the plugin that loaded that file exports a hotReload function
jsx.js — a copy of this project which then appends a snippet to each JSX source file in development, based off an example in the react-hot-loader readme. It works, too!
The restrictions are pretty huge though:
It has to be using ES6 syntax
The name of the component must be PascalCase version of the filename (e.g. drop-down.js becomes class DropDown)
It must be using a default export for the component
I want to work with @guybedford to make jspm-server a real part of jspm, and I think React hot loading would be a great thing to start with. I also want to chat with @gaearon about making better use of the hot-loader to remove some of these limitations of my version, but what do you think?
Wondering whether it'd be possible to add live-reloading to this plugin. I've managed to get this working, but it's very restrictive, and needs some review & consideration before it'd be ready for a PR.
Here's what I've done so far:
hotReloadfunctionThe restrictions are pretty huge though:
class DropDown)I want to work with @guybedford to make jspm-server a real part of jspm, and I think React hot loading would be a great thing to start with. I also want to chat with @gaearon about making better use of the hot-loader to remove some of these limitations of my version, but what do you think?