Rich Harris

Results 5 comments of Rich Harris

I'm also experiencing this. Did anyone manage to get it working?

I am struggling with the same problem though still not managed to get it working. @mikeyalder-bw, please can you confirm how you are loading modernizr in your scripts? Is it...

Thanks. That helped me realise my mistake. My file structure is slightly different and I needed to set my alias as follows: ``` alias: { modernizr$: path.resolve(__dirname, "../.modernizrrc") } ```

Incidentally. Both of these seem to work for me: ``` import Modernizr from 'modernizr' ``` and ``` require('modernizr') ``` All is now working as it should.

You have a different modernizrrc test to me. You could try changing: ``` test: /\.modernizrrc(\.json)?$/, ``` to… ``` test: /\.modernizrrc$/, ``` Also try removing resolveLoader and add your alias to...