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

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy