Skip to content

Commit

Permalink
fix(compiler-sfc): use filename from options when compile styl prep…
Browse files Browse the repository at this point in the history
…rocessor (#1635)

fix #vitejs/vite#577
  • Loading branch information
underfin authored Jul 19, 2020
1 parent 03c681e commit 0526e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/stylePreprocessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const styl: StylePreprocessor = (source, map, options, load = require) => {
// stylus output path is relative path
const dependencies = getAbsolutePaths(
ref.deps(),
path.dirname(options.fileName)
path.dirname(options.filename)
)
if (map) {
return {
Expand Down

0 comments on commit 0526e5d

Please sign in to comment.