These are chat archives for canjs/canjs

14th
Oct 2016
Justin Meyer
@justinbmeyer
Oct 14 2016 02:22
@rohan7799_twitter if you're looking for how to deal w/ sessions, checkout the bitballs example
Thomas Sieverding
@Bajix
Oct 14 2016 02:23
@justinbmeyer is there an alternative to can/dom/vdom/vdom? I’m having troubles getting jquerypp/dom/selection/ to load in SSR
Justin Meyer
@justinbmeyer
Oct 14 2016 02:25
It's probable you might be able to setup JSDOM
it's not something I've done
@matthewp would know more but is out this week
Thomas Sieverding
@Bajix
Oct 14 2016 02:25
I want to use it in a cordova build, so it just needs to be included and not break during build
Justin Meyer
@justinbmeyer
Oct 14 2016 02:25
what's breaking?
I could make a release that protects against the lack of a full DOM
Thomas Sieverding
@Bajix
Oct 14 2016 02:26
well I was running into an issue w/ nlp_compromise because of it’s UMD definition
I fixed that using browserify w/ the deumdify plugin
Justin Meyer
@justinbmeyer
Oct 14 2016 02:26
I have to run ... create an issue or forum post and I'll try to help
Thomas Sieverding
@Bajix
Oct 14 2016 02:27
//export to window or webworker
if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' || typeof DedicatedWorkerGlobalScope === 'function') {
  self.nlp_compromise = nlp;
}
//export to commonjs
if (typeof module !== 'undefined' && module.exports) {
  module.exports = nlp;
}
//export to amd
if (typeof define === 'function' && define.amd) {
  define(nlp);
}
That UMD definition pattern breaks in Steal
kk
Laters mate
Justin Meyer
@justinbmeyer
Oct 14 2016 02:27
gnight