webpack-contrib/css-loader

ReferenceError: window is not defined

Closed this issue · 3 comments

    isOldIE = memoize(function() {
            return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase());
        }),

Where is that coming from? I don't see that in css-loader.

looks like it comes from style-loader https://github.com/webpack/style-loader/blob/master/addStyles.js#L13

Dupe of this I suspect webpack-contrib/style-loader#109

@willin is style-loader output being used for server-side code?

@psimyn Good catch! I'll close this in favor of that then.