These are chat archives for ractivejs/ractive

15th
Aug 2017
Joseph
@fskreuz
Aug 15 2017 17:38
Thoughts? ractivejs/ractive#3057
Chris Reeves
@evs-chris
Aug 15 2017 18:35
are the node working groups done waffling on mjs yet?
I used that specifically because they said it was final that node es module support would be via mjs extension however many months ago
Joseph
@fskreuz
Aug 15 2017 18:36
I'm not updated on that part :grin: hence the issue. Just putting it out there for discussion.
Chris Reeves
@evs-chris
Aug 15 2017 18:37
fair enough :smile:
I personally don't care for the mjs extension, but they seemed pretty set on it last I looked through the gh issue on node es modules
there's no reason we couldn't throw a ractive.es.js or es/ractive.js in the build as well
I think the reasoning for mjs was that pkg:module doesn't cover imports other than the root e.g. import foo from 'foo/inner/foo.js'
Joseph
@fskreuz
Aug 15 2017 18:40
Let's ask @Rich-Harris what's the situation on .mjs :D
Chris Reeves
@evs-chris
Aug 15 2017 18:41
though, if you're already at import, why would you not assume es?
Rich Harris
@Rich-Harris
Aug 15 2017 18:41
in summary,
screaming.gif
Chris Reeves
@evs-chris
Aug 15 2017 18:42
also, there should be top-level await before imports
Rich Harris
@Rich-Harris
Aug 15 2017 18:43
don't get me started on TLA
Chris Reeves
@evs-chris
Aug 15 2017 18:43
:grinning:
Joseph
@fskreuz
Aug 15 2017 18:43
:smile:
Chris Reeves
@evs-chris
Aug 15 2017 18:43
it's cute for repls
Rich Harris
@Rich-Harris
Aug 15 2017 18:43
semirelated: Canary devtools supports top-level await
definitely approve of that
Chris Reeves
@evs-chris
Aug 15 2017 18:44
yep, just saw it
how do you feel about import()?
Rich Harris
@Rich-Harris
Aug 15 2017 18:46
love it
Chris Reeves
@evs-chris
Aug 15 2017 18:46
sweet
Rich Harris
@Rich-Harris
Aug 15 2017 18:47
i mean, it's completely essential to have some mechanism of dynamic imports
Chris Reeves
@evs-chris
Aug 15 2017 18:47
indeed
I'm not wild about the ceremonial fluff in webpack, but it does seem to make lazy-loaded modules relatively painless
if the eventual native mechanism stays as painless, we should be good
if only IE would finish dying in a fire and take old safari and android browsers with it
Joseph
@fskreuz
Aug 15 2017 18:49
lol