Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
32
node_modules/next/dist/client/components/react-dev-overlay/utils/css.js
generated
vendored
Normal file
32
node_modules/next/dist/client/components/react-dev-overlay/utils/css.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "css", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return css;
|
||||
}
|
||||
});
|
||||
function css(strings) {
|
||||
for(var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
||||
keys[_key - 1] = arguments[_key];
|
||||
}
|
||||
const lastIndex = strings.length - 1;
|
||||
const str = // Convert template literal into a single line string
|
||||
strings.slice(0, lastIndex).reduce((p, s, i)=>p + s + keys[i], '') + strings[lastIndex];
|
||||
return str// Remove comments
|
||||
.replace(/\/\*[\s\S]*?\*\//g, '')// Remove whitespace, tabs, and newlines
|
||||
.replace(/\s+/g, ' ')// Remove spaces before and after semicolons, and spaces after commas
|
||||
.replace(/\s*([:;,{}])\s*/g, '$1')// Remove extra semicolons
|
||||
.replace(/;+}/g, '}')// Trim leading and trailing whitespaces
|
||||
.trim();
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=css.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue