UNPKG

restrict-imports-loader

Version:

A Webpack loader to restrict imports in ES and TypeScript

12 lines 375 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function quote(s) { return `"${s}"`; } exports.quote = quote; function indentBy(n) { const indentIfNotEmpty = (line) => line === "" ? "" : " ".repeat(n) + line; return (s) => s.split("\n").map(indentIfNotEmpty).join("\n"); } exports.indentBy = indentBy; //# sourceMappingURL=text.js.map