These are chat archives for canjs/canjs

3rd
Sep 2018
Viktor Busko
@Lighttree
Sep 03 2018 08:52
Hi, maybe someone know, how safe to use CanJS@3 and CanJS@5 on the same page, but in different bundles ?
We have some kind of small apps that rendered on the same page, and I wan't to start migration from 3 to 5 for one of them (at some stage). Is this good idea at all, maybe they mutate something globally and conflict possible ? I hope that the fact that they don't share dependencies (this is separate bundles) will allow us do this, but not sure.
We have some issues with CanJS@2 and 3 on the same page, but we found some workarounds for this case.
Frank Lemanschik
@frank-dspeed
Sep 03 2018 08:54
@Lighttree unstable not safe
you should migrate all to 5
but partial incrementel
so you don't migrate 1 component to 5
you migrate 1 module (npm) to 5
and then this module in every component
i would suggest to simply read the migration guides for 4 and 5
and then choose a module to start with
not a COMPONENT
Viktor Busko
@Lighttree
Sep 03 2018 09:01
Well that clear, but we have complex UI component (which is NPM module) that I don't wan't to touch since this is supported by other team, and this is extra effort for migration. So I was hoping to migrate only what I want to migrate first without touching different responsibility areas.
But I got your message
Frank Lemanschik
@frank-dspeed
Sep 03 2018 09:01
thats not bundle able then
but you can for example safe use the following method
Viktor Busko
@Lighttree
Sep 03 2018 09:01
We have separate bundles
Frank Lemanschik
@frank-dspeed
Sep 03 2018 09:01
use the canjs 5 module flavor
and then partial upgrade your components
to use and import that