We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba154a commit be0fda4Copy full SHA for be0fda4
src/transformers/less.ts
@@ -1,3 +1,5 @@
1
+import { isAbsolute, join } from 'path';
2
+
3
import less from 'less';
4
5
import { getIncludePaths } from '../modules/utils';
@@ -20,10 +22,14 @@ const transformer: Transformer<Options.Less> = async ({
20
22
...options,
21
23
});
24
25
+ const dependencies = imports.map((path: string) =>
26
+ isAbsolute(path) ? path : join(process.cwd(), path),
27
+ );
28
29
return {
30
code: css,
31
map,
- dependencies: imports,
32
+ dependencies,
33
};
34
35
0 commit comments