These are chat archives for stealjs/steal

28th
Mar 2017
Chris Smith
@CaffeinatedDev_twitter
Mar 28 2017 15:20
Hi - Is it possible to split the steal config up to allow it be called per module? Currently my stealconfig.js is 1511 lines long which is about 30% of my app...
Gira Minus
@gKreator
Mar 28 2017 15:21
Why is it so long?
Chris Smith
@CaffeinatedDev_twitter
Mar 28 2017 15:21
it's a big app
Gira Minus
@gKreator
Mar 28 2017 15:22
Ok... well ur steal config is probably a huge js array of objects?
That gets executed by nodejs?
Chris Smith
@CaffeinatedDev_twitter
Mar 28 2017 15:23
Executed in browser (nodejs for building)
Gira Minus
@gKreator
Mar 28 2017 15:23
Couldn't you write some js to create the config ?
Chris Smith
@CaffeinatedDev_twitter
Mar 28 2017 15:23
'about': { deps: ['lib', 'public/js/libs/jquery-i18n/jquery.i18n.js'] },
thats a good example of the sort of stuff we have, over and over and over
Gira Minus
@gKreator
Mar 28 2017 15:24
You can make a config build script
Chris Smith
@CaffeinatedDev_twitter
Mar 28 2017 15:25
yeah, that was my original thought, we were just wondering if there was a better way...
Kevin Phillips
@phillipskevin
Mar 28 2017 15:26
if it is mostly configuring deps, couldn’t you just import those files in the modules where you need them?
Chris Smith
@CaffeinatedDev_twitter
Mar 28 2017 15:30
@phillipskevin Some are required as part of our inheritance hierarchy... It is possible that we could call them (just in time) however that would involve wrapping alot of files
Marc Godard
@MarcGodard
Mar 28 2017 22:47
Starting getting this error Potentially unhandled rejection [2] TypeError: fn.apply is not a function
Any ideas?
Gira Minus
@gKreator
Mar 28 2017 22:53
Is this on ssr?
Marc Godard
@MarcGodard
Mar 28 2017 22:53
It is on both... I just reversed my changes and will work through it.
Just never seen it before.