mirror of https://github.com/vuejs/core.git
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:
parent
03c681e396
commit
0526e5d7fa
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue