Open fernandoacorreia opened 10 years ago
I got this to work by:
npm install imports-loader --save
and then:
require('imports?this=>window!./app/bower_components/modernizr/modernizr.js');
For new version of imports-loader, use
require('imports-loader?this=>window!./app/bower_components/modernizr/modernizr.js');
where do I import thus loader
After running
make
and opening the page in a browser, there is this JavaScript Error:The error happens at this line in Modernizr:
The Modernizr function is called with a parameter of
this.document
that, in the bundled script, isundefined
.