UNPKG

snowpack-plugin-stylus

Version:

Use the Stylus compiler to build .styl files from source

11 lines (10 loc) 437 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDependencies = void 0; const tslib_1 = require("tslib"); const stylus_1 = tslib_1.__importDefault(require("stylus")); function getDependencies({ content, filePath, options, }) { const style = stylus_1.default(content, Object.assign({ filename: filePath }, options)); return style.deps(filePath); } exports.getDependencies = getDependencies;