diff --git a/packages/compiler-sfc/src/stylePreprocessors.ts b/packages/compiler-sfc/src/stylePreprocessors.ts index f0a09d75..2aa459a1 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 {