Closed colinl closed 7 years ago
It's ok, I have found it (in uibuilderfe.js). Don't know why me search last time failed. Also don't know why it works ok when webpack not being used.
Aargh, just noticed you have changed all that code anyway. Will close this and start again. Sorry for the noise.
Sorry :-) yes, I've reorganised as you've seen. The new function is a lot cleaner.
In the process of using uibuilder with webpack I have come across a few minor issues. I will detail these once I have sorted them all. I have a strange one though that I don't understand. In uibuilder.js there are many lines like
debug && console.log(...)
Strictly I think this should readself.debug && console.log(...)
When not using webpack it works fine without the self. When using webpack to bundle everything up it does not work without the self. I always like to understand what is going on and (with webpack) if I doconsole.log(debug)
I seedebug function debug(type,msg) { if ( !uibuilder.get('debug') ) return let myLog = {} switch ( type ) { case 'error': myLog = console.error break case 'info': myLog = console.info break case 'dir': myLog = console.dir break default: myLog = console.log } myLog(msg) }
Now I can't find that code anywhere. Does it make sense to you?