We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 717db50 commit b4a4139Copy full SHA for b4a4139
src/transformers/scss.ts
@@ -28,6 +28,11 @@ const transformer: Transformer<Options.Sass> = async ({
28
29
options.data = options.data ? options.data + content : content;
30
31
+ // scss errors if passed an empty string
32
+ if (options.data.length === 0) {
33
+ return { code: options.data };
34
+ }
35
+
36
return new Promise<Processed>((resolve, reject) => {
37
sass.render(options, (err, result) => {
38
if (err) return reject(err);
0 commit comments