From: underfin <2218301630@qq.com> Date: Sun, 19 Jul 2020 18:17:31 +0000 (+0800) Subject: fix(compiler-sfc): use `filename` from options when compile styl preprocessor (#1635) X-Git-Tag: v3.0.0-rc.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0526e5d7faa9ba69f76e7ff71fe96d93a4e99684;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-sfc): use `filename` from options when compile styl preprocessor (#1635) fix #https://github.com/vitejs/vite/issues/577 --- diff --git a/packages/compiler-sfc/src/stylePreprocessors.ts b/packages/compiler-sfc/src/stylePreprocessors.ts index f0a09d751d..2aa459a178 100644 --- a/packages/compiler-sfc/src/stylePreprocessors.ts +++ b/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 {