We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56514cc commit 888be88Copy full SHA for 888be88
src/helpers/getCssExports.ts
@@ -76,6 +76,7 @@ export const getCssExports = ({
76
syncImport: true,
77
filename: fileName,
78
paths: [directory],
79
+ sourceMap: true,
80
...(rendererOptions.less ?? {}),
81
} as Less.Options,
82
(error?: Less.RenderError, output?: Less.RenderOutput) => {
@@ -85,6 +86,9 @@ export const getCssExports = ({
85
86
if (output === undefined) {
87
throw new Error('No Less output.');
88
}
89
+
90
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
91
+ sourceMap = JSON.parse(output.map ?? "undefined") as RawSourceMap | undefined;
92
transformedCss = output.css.toString();
93
},
94
);
0 commit comments