ericclemmons / polydev

Faster, route-centric development for Node.js apps with built-in Hot Module Replacement.
282 stars 6 forks source link

Support esm #6

Open ericclemmons opened 5 years ago

ericclemmons commented 5 years ago

https://github.com/standard-things/esm can be supported via polydev -r esm (as if we were running Node), or perhaps via NODE_OPTIONS.

ericclemmons commented 5 years ago

This can work just as it does in #7 .

ericclemmons commented 5 years ago

Noticed that https://github.com/sidorares/hot-module-replacement doesn't work with:

NODE_OPTIONS="--require esm" polydev
ericclemmons commented 5 years ago

Hate to be pedantic or naive here but... what if people just used TypeScript (#7)? 🤔

ericclemmons commented 5 years ago

Support has been added:

https://twitter.com/jdalton/status/1090687528112287745

👏