Skip to content

Commit 0526e5d

Browse files
authoredJul 19, 2020
fix(compiler-sfc): use filename from options when compile styl preprocessor (#1635)
fix #vitejs/vite#577
1 parent 03c681e commit 0526e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/compiler-sfc/src/stylePreprocessors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const styl: StylePreprocessor = (source, map, options, load = require) => {
110110
// stylus output path is relative path
111111
const dependencies = getAbsolutePaths(
112112
ref.deps(),
113-
path.dirname(options.fileName)
113+
path.dirname(options.filename)
114114
)
115115
if (map) {
116116
return {

0 commit comments

Comments
 (0)