piotrwitek / react-redux-typescript-jspm-starter

Futuristic, bundle-free, development environment for building Component-Driven SPA with React, Redux and TypeScript - powered by JSPM (SystemJS & Rollup with tree-shaking)
https://piotrwitek.github.io/react-redux-typescript-jspm-starter/
MIT License
231 stars 43 forks source link

Updating to systemjs-hot-reloader@1.1.0 #45

Open wongwill86 opened 7 years ago

wongwill86 commented 7 years ago

I had to update the package on my fork because systemjs-hot-reloader@0.6.0 reloading did not trigger parent dependency updates for plugin-text (i.e. module that imports text file does not update when text file is updated). Updating to v1.1.0 seems to fix this issue.

Here's a PR in case you were planning to update these dependencies.

Updating to systemjs-hot-reloader@ 1.1.0 requires updating jspm/systemjs.

New breaking changes in SystemJS@ 0.20.x due to NodeJS ES Module directions http://guybedford.com/systemjs-alignment.

Also, side note, Jest doesn't seem to support JSPM/Systemjs correctly : http://stackoverflow.com/questions/32945193/jest-testing-with-es6-jspm-systemjs-reactjs

piotrwitek commented 7 years ago

Hello, Thanks for PR, there is existing issue for this: #39 I will try to test it if working.

~What I don't like with this PR is the change of React import. The syntax you are introducing is not compliant with the standard ES Modules. It is because from consumer perspective I want to import React as namespace, and the correct syntax to import namespace is import * as React.~

piotrwitek commented 7 years ago

there is a bigger issue going on regarding commonjs modules: https://github.com/systemjs/systemjs/issues/1587

piotrwitek commented 7 years ago

@wongwill86 thanks for contribution As already stated here: #39, I gonna wait with 0.20 upgrade until this issue is resolved: https://github.com/systemjs/systemjs/issues/1587

For me it seems 0.20 update introduce too much issues for existing users of boilerplate that it is not worth currently.

Thanks for help

wongwill86 commented 7 years ago

no problem i hope it helps. That makes sense. thanks for reviewing!