hz-zhhq-web/node_modules/vue-jest/lib/compilers/stylus-compiler.js

9 lines
200 B
JavaScript
Raw Normal View History

2025-02-25 13:47:38 +08:00
const stylus = require('stylus')
const path = require('path')
module.exports = (content, filePath, jestConfig) => stylus.render(
content, {
paths: [path.dirname(filePath), process.cwd()]
}
)