These are chat archives for ractivejs/ractive

12th
Aug 2018
Cerem Cem ASLAN
@ceremcem
Aug 12 2018 00:52
sounds fragile but still usable
thanks
Chris Reeves
@evs-chris
Aug 12 2018 00:55
it's fairly robust as long as you don't do anything crazy in the decorator lifecycle... and don't have typos in the template side
I usually let the decorator manage attrs that it's interested in to reduce redundancy
Cerem Cem ASLAN
@ceremcem
Aug 12 2018 01:07
I was about to create a playground snippet about this, but I can't add extra scripts, like jQuery. how should we add 3rd party libraries?
Chris Reeves
@evs-chris
Aug 12 2018 01:54
you can import them in entry file mode, or add them to the build menu in any mode
Cerem Cem ASLAN
@ceremcem
Aug 12 2018 01:57
hmm, by simply using <script src=... /> tags...
Chris Reeves
@evs-chris
Aug 12 2018 02:02
you can import anything that's not explicitly locked into a node env in entry file mode, and a rollup plugin will take care of grabbing it from jsdelivr for you when the bundle is being assembled
it handles es and cjs (and consequently umd) modules
using a special node-free build of rollup-plugin-commonjs