Skip to content

Commit

Permalink
fix(css): properly pass options to stylus compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
qnp committed Apr 4, 2021
1 parent 2e018ff commit cfe0b9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,8 @@ function createViteLessPlugin(
const styl: StylePreprocessor = (source, root, options) => {
const nodeStylus = loadPreprocessor(PreprocessLang.stylus, root)
try {
const ref = nodeStylus(source)
const ref = nodeStylus(source, options)

Object.keys(options).forEach((key) => ref.set(key, options[key]))
// if (map) ref.set('sourcemap', { inline: false, comment: false })

const result = ref.render()
Expand Down

0 comments on commit cfe0b9d

Please sign in to comment.