UNPKG

next-with-linaria

Version:
11 lines 702 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertSourceMap = convertSourceMap; function convertSourceMap(value, filename) { var _a, _b, _c, _d, _e; if (typeof value === 'string' || !value) { return undefined; } return Object.assign(Object.assign({}, value), { file: (_a = value.file) !== null && _a !== void 0 ? _a : filename, mappings: (_b = value.mappings) !== null && _b !== void 0 ? _b : '', names: (_c = value.names) !== null && _c !== void 0 ? _c : [], sources: (_d = value.sources) !== null && _d !== void 0 ? _d : [], version: (_e = value.version) !== null && _e !== void 0 ? _e : 3 }); } //# sourceMappingURL=source-map.js.map