stylus-compiler.js 200 B

12345678
  1. const stylus = require('stylus')
  2. const path = require('path')
  3. module.exports = (content, filePath, jestConfig) => stylus.render(
  4. content, {
  5. paths: [path.dirname(filePath), process.cwd()]
  6. }
  7. )