]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-sfc): use `filename` from options when compile styl preprocessor (#1635)
authorunderfin <2218301630@qq.com>
Sun, 19 Jul 2020 18:17:31 +0000 (02:17 +0800)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2020 18:17:31 +0000 (14:17 -0400)
fix #https://github.com/vitejs/vite/issues/577

packages/compiler-sfc/src/stylePreprocessors.ts

index f0a09d751d78d1b67b08db8be617af17d56c950c..2aa459a17817fbb5e0aef3ee4579b5c850a15fc0 100644 (file)
@@ -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 {