소스 검색

fix(compiler-sfc): use `filename` from options when compile styl preprocessor (#1635)

fix #https://github.com/vitejs/vite/issues/577
underfin 6 년 전
부모
커밋
0526e5d7fa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/compiler-sfc/src/stylePreprocessors.ts

+ 1 - 1
packages/compiler-sfc/src/stylePreprocessors.ts

@@ -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 {