Explorar el Código

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

fix #https://github.com/vitejs/vite/issues/577
underfin hace 5 años
padre
commit
0526e5d7fa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/compiler-sfc/src/stylePreprocessors.ts

+ 1 - 1
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 {