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 authored and sxzz committed Jun 10, 2023
1 parent 6277cb9 commit 1565fd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/compiler-sfc/src/style/preprocessors.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 1565fd1

Please sign in to comment.