Pregunta

I'm dealing with weird situation. I'm loading lodash as a AMD module with requirejs and everything works perfect... except IE8 and below. I saw that loadsh file is actualy loaded in the IE debug tool > network... but when I console.log it out it gives me 'undefined'. I'm stuck. Also... there are no errors in the debug console.

Any thoguts, tips ?

¿Fue útil?

Solución

On the basis of this documentation, you should set enforceDefine to true in your RequireJS configuration and make sure that all shims have a proper exports value. A proper exports value is one which contains a symbol which is defined only by the module being shimmed.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top