These are chat archives for canjs/canjs

9th
Aug 2018
nmingneau
@nmingneau
Aug 09 2018 08:38
Hi, the can-debug docs contradict the github v2.0.0 release notes at the moment. I'm also unable to get 'logWhatChangesMe' to respond to changes.
Kevin Phillips
@phillipskevin
Aug 09 2018 14:19
Thanks @nmingneau for pointing out he docs. I'll update them.
how are you loading canjs?
nmingneau
@nmingneau
Aug 09 2018 14:21
We import all canjs packages separately
import DefineList from 'can-define/list/list'; import DefineMap from 'can-define/map/map'; import Component from 'can-component'; import stache from 'can-stache'; import route from 'can-route';
Kevin Phillips
@phillipskevin
Aug 09 2018 14:27
ok
so are you doing
import debug from "can-debug";
const canDebug = debug();
canDebug.logWhatChangesMe(...);
Kevin Phillips
@phillipskevin
Aug 09 2018 14:40
or something like
import debug from "can-debug";
debug();
window.can.debug.logWhatChangesMe(...);
Justin Meyer
@justinbmeyer
Aug 09 2018 19:33
A chat about can-query-logic
image.png
Ivo Pinheiro
@ivospinheiro
Aug 09 2018 21:20
Hi!
I've successfully completed the upgrade of the project I'm working to use the latest can@3 packages versions
also I've upgraded the steal from 1.x to 2.x
I've noticed that the production build seems to more faster to load
But in development mode the applications seems to take much more time
Is there anything that I can do to improve the load time in development mode, and also to improve the time it takes to run the QUnit/Func tests?
Kevin Phillips
@phillipskevin
Aug 09 2018 21:26
you can use dev-bundles
Ivo Pinheiro
@ivospinheiro
Aug 09 2018 21:27
I'm trying to use it
How can I include also can-fixture, steal-qunit and funcunit in the development bundle?
Kevin Phillips
@phillipskevin
Aug 09 2018 21:29
I would think if you set the main to be your main test module, it would include those
so you might want a separate bundle for development vs testing
Ivo Pinheiro
@ivospinheiro
Aug 09 2018 21:54
is there anything that can explain why the demo pages and tests are taking more time to run using the latest can@3 version packages together with steal@2?
Kevin Phillips
@phillipskevin
Aug 09 2018 21:55
oh, you were already using can 3?
or you were on can 2?
Ivo Pinheiro
@ivospinheiro
Aug 09 2018 21:56
I'm using can@3.13.1 and previously I was using can@3.8
and I noticed that the application is now taking more time to load
I've done an intermediate upgrade to can@3.10 due to the introduction of can-reflect
And with can@3.10 the application seems to be faster than with can@3.13.1
Kevin Phillips
@phillipskevin
Aug 09 2018 22:03
yeah, I can't say for sure without seeing exactly what your app is using
we continue to extract things into separate modules over time
but I don't think there was a huge change between 3.10 and 3.13
Ivo Pinheiro
@ivospinheiro
Aug 09 2018 22:05
does the code that has been introduced to warn about deprecations introduces any overhead?
Kevin Phillips
@phillipskevin
Aug 09 2018 22:06
if you have the console open and you have lots of warnings, it could I suppose