vike
Version:
The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.
20 lines (19 loc) • 592 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.rollupSourceMapRemove = rollupSourceMapRemove;
exports.rollupSourceMapPassthrough = rollupSourceMapPassthrough;
// https://rollupjs.org/guide/en/#source-code-transformations
/** Remove entire source mapping, to save KBs. */
function rollupSourceMapRemove(code) {
return {
code,
map: { mappings: '' },
};
}
/** Don't provide any source map, pass through current source map instead. */
function rollupSourceMapPassthrough(code) {
return {
code,
map: null,
};
}