Detectizr
Detectizr copied to clipboard
Using with webpack (modernizr-loader)
I am trying to import Detectizr right after Modernizr
import Modernizr from 'modernizr';
import Detectizr from 'detectizr';
console.log('> >', Modernizr, Detectizr);
it makes an error:
Uncaught TypeError: Cannot read property 'documentElement' of undefined
If I remove Detectizr, everything is ok, Modernizr works well.
Any special advice with working with modernizr-loader or webpack?
This is still an issue. I think it's before webpack compiles alphabetically so Detectizr is coming before Modernizr.
Any updates? Or can you suggest some other library which works with webpack?