Skip to content

Commit

Permalink
fix(compiler-sfc): pass options directly to stylus (#3848)
Browse files Browse the repository at this point in the history
  • Loading branch information
zouhangwithsweet committed Jul 10, 2023
1 parent 9240698 commit d6446a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/compiler-sfc/src/style/preprocessors.ts
Expand Up @@ -98,8 +98,7 @@ const less: StylePreprocessor = (source, map, options, load = require) => {
const styl: StylePreprocessor = (source, map, options, load = require) => {
const nodeStylus = load('stylus')
try {
const ref = nodeStylus(source)
Object.keys(options).forEach(key => ref.set(key, options[key]))
const ref = nodeStylus(source, options)
if (map) ref.set('sourcemap', { inline: false, comment: false })

const result = ref.render()
Expand Down

0 comments on commit d6446a6

Please sign in to comment.