Skip to content

Commit 9fd962f

Browse files
error handling for SCSS compilation no-SASS errors
1 parent 34ca6b9 commit 9fd962f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/devextreme-themebuilder/src/modules/compile-manager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ export default class CompileManager {
8181
};
8282
} catch (e) {
8383
const { span, message } = e as sass.Exception;
84+
85+
if (!span) {
86+
throw new Error(`Compilation failed.\nbundle: ${bundleOptions.file},\n${message}`);
87+
}
88+
8489
const { url, start } = span;
8590
const { line, column } = start;
8691
throw new Error(`Compilation failed.\nbundle: ${bundleOptions.file},\nfile: ${url}:${line}:${column},\n${message}`);

packages/devextreme-themebuilder/src/modules/compiler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export default class Compiler {
4343
}
4444

4545
let compilerOptions: sass.Options<'async'> = {
46-
style: 'compressed',
4746
importers: [{
4847
canonicalize: this.canonicalize,
4948
load: this.load,

0 commit comments

Comments
 (0)