Skip to content

Commit d6446a6

Browse files
fix(compiler-sfc): pass options directly to stylus (#3848)
1 parent 9240698 commit d6446a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/compiler-sfc/src/style/preprocessors.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ const less: StylePreprocessor = (source, map, options, load = require) => {
9898
const styl: StylePreprocessor = (source, map, options, load = require) => {
9999
const nodeStylus = load('stylus')
100100
try {
101-
const ref = nodeStylus(source)
102-
Object.keys(options).forEach(key => ref.set(key, options[key]))
101+
const ref = nodeStylus(source, options)
103102
if (map) ref.set('sourcemap', { inline: false, comment: false })
104103

105104
const result = ref.render()

0 commit comments

Comments
 (0)