-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
16 lines (11 loc) · 1.5 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*! Isomorphic Style Loader | MIT License | https://github.com/kriasoft/isomorphic-style-loader */
'use strict';
var loaderUtils = require('loader-utils');
module.exports = function loader() {};
module.exports.pitch = function pitch(request) {
if (this.cacheable) {
this.cacheable();
}
return "\n var refs = 0;\n var css = require(" + loaderUtils.stringifyRequest(this, "!!" + request) + ");\n var insertCss = require(" + loaderUtils.stringifyRequest(this, 'isomorphic-style-loader/insertCss.js') + ");\n var content = typeof css === 'string' ? [[module.id, css, '']] : css;\n\n exports = module.exports = css.locals || {};\n exports._getContent = function() { return content; };\n exports._getCss = function() { return '' + css; };\n exports._insertCss = function(options) { return insertCss(content, options) };\n\n // Hot Module Replacement\n // https://webpack.github.io/docs/hot-module-replacement\n // Only activated in browser context\n if (module.hot && typeof window !== 'undefined' && window.document) {\n var removeCss = function() {};\n module.hot.accept(" + loaderUtils.stringifyRequest(this, "!!" + request) + ", function() {\n css = require(" + loaderUtils.stringifyRequest(this, "!!" + request) + ");\n content = typeof css === 'string' ? [[module.id, css, '']] : css;\n removeCss = insertCss(content, { replace: true });\n });\n module.hot.dispose(function() { removeCss(); });\n }\n ";
};
//# sourceMappingURL=index.js.map