File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
packages/compiler-sfc/src Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11import merge from 'merge-source-map'
22import path from 'path'
3+ import { RawSourceMap } from 'source-map'
4+ import { SFCStyleCompileOptions } from './compileStyle'
35
46export interface StylePreprocessor {
57 render (
68 source : string ,
7- map ?: object ,
8- options ?: any ,
9- customRequire ?: ( id : string ) => any
9+ map : RawSourceMap | undefined ,
10+ options : {
11+ [ key : string ] : any
12+ filename : string
13+ } ,
14+ customRequire : SFCStyleCompileOptions [ 'preprocessCustomRequire' ]
1015 ) : StylePreprocessorResults
1116}
1217
@@ -83,7 +88,7 @@ const less: StylePreprocessor = {
8388 // less output path is relative path
8489 const dependencies = getAbsolutePaths (
8590 result . imports ,
86- path . dirname ( options . fileName )
91+ path . dirname ( options . filename )
8792 )
8893 if ( map ) {
8994 return {
You can’t perform that action at this time.
0 commit comments