9 lines
200 B
JavaScript
9 lines
200 B
JavaScript
|
|
const stylus = require('stylus')
|
||
|
|
const path = require('path')
|
||
|
|
|
||
|
|
module.exports = (content, filePath, jestConfig) => stylus.render(
|
||
|
|
content, {
|
||
|
|
paths: [path.dirname(filePath), process.cwd()]
|
||
|
|
}
|
||
|
|
)
|