Skip to content

Commit

Permalink
fix(compiler-sfc): pass options directly to stylus
Browse files Browse the repository at this point in the history
  • Loading branch information
zouhangwithsweet committed May 29, 2021
1 parent 8b94464 commit 94ea509
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/compiler-sfc/src/stylePreprocessors.ts
Original file line number Diff line number Diff line change
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 94ea509

Please sign in to comment.