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.
goToDefinition
1 parent 56514cc commit e570031Copy full SHA for e570031
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,11 @@ 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
92
+ | RawSourceMap
93
+ | undefined;
94
transformedCss = output.css.toString();
95
},
96
);
0 commit comments