These are chat archives for ractivejs/ractive

31st
Jan 2018
Juan C. Andreu
@andreujuanc
Jan 31 2018 11:07
Oh nice
what about the oposite?
whaats the best way to update the model without passing the keypath
Paul Maly
@PaulMaly_twitter
Jan 31 2018 12:18
what do you mean?
maybe update() and updateModel() ?
Joseph
@fskreuz
Jan 31 2018 17:50
Random question of the day: Webpack or Rollup? When, where, why (or why not) and what are you using?
(Yes, I've read the article about "rollup is for libs, webpack is for apps", "webpack and rollup are friends", and those sorts of articles...)
kouts
@kouts
Jan 31 2018 18:16
I haven't used rollup, so Webpack for me
Paul Maly
@PaulMaly_twitter
Jan 31 2018 18:51
Rollups is for libs because it’s more simple and lightweight. Webpack is for apps because it’s more powerful and big community.
Chris Reeves
@evs-chris
Jan 31 2018 19:47
I haven't gotten a chance to try the new rollup splitting and dynamic imports. If it works well, I'll probably go back to just rollup. Have you ever tried debugging around webpack loading fluff?
Paul Maly
@PaulMaly_twitter
Jan 31 2018 19:49
You mean debugging webpack bundle ?
Chris Reeves
@evs-chris
Jan 31 2018 19:50
yes, trying to locate the correct bit of code in a webpack bundle can be, shall we say, challenging
Paul Maly
@PaulMaly_twitter
Jan 31 2018 19:51
hm, source maps?
For example my file structure in browser source tag looks like this
Снимок экрана 2018-01-31 в 22.52.17.png
Chris Reeves
@evs-chris
Jan 31 2018 19:53
I find debugging with sourcemaps to be more hassle than it's worth, mostly due to breakpoints not stopping exactly where you expect and not being able to use the same names in console
Paul Maly
@PaulMaly_twitter
Jan 31 2018 19:56
I don't faced with this problems. All my files in browser Source tab unminified and exactly the same as sources.
even folder structure the same
breakpoints works well
maybe you use webpack-internal:// instead webpack://
or you have completely different config
Paul Maly
@PaulMaly_twitter
Jan 31 2018 20:01
@evs-chris question about findAllComponents(). How can I get only child components of given component to one level down?
Joseph
@fskreuz
Jan 31 2018 20:32

I find debugging with sourcemaps to be more hassle than it's worth

I occasionally find myself disabling source maps. By habit, I evaluate code in the console while pausing only to realize that code runs in the context of the actual code, rather than the mapped source.

Also ending up using debugger instead of breakpoints, due to misalignment, and Chrome dev tools not being able to pin breakpoints on lines with no mapping.
It's less to do with build tools, but bundle fluff can be annoying.
config fluff as well. :D
Chris Reeves
@evs-chris
Jan 31 2018 22:22
yep
nothing more frustrating than having the line you need to stop on not be a target for a breakpoint
@PaulMaly_twitter there's not a way to only get immediate children, but you can start.findAllComponents().filter(c => c.parent === start)
Paul Maly
@PaulMaly_twitter
Jan 31 2018 22:23
already did ))