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

fix #https://github.com/vitejs/vite/issues/577
This commit is contained in:
underfin
2020-07-20 02:17:31 +08:00
committed by GitHub
parent 03c681e396
commit 0526e5d7fa

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