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 8f077cb commit 0d005afCopy full SHA for 0d005af
src/sandbox/eval/transpilers/vue/style-compiler/loader.js
@@ -6,7 +6,7 @@ import trim from './plugins/trim';
6
import scopeId from './plugins/scope-id';
7
8
export default function(code: string, loaderContext: LoaderContext) {
9
- return new Promise(resolve => {
+ return new Promise((resolve, reject) => {
10
const query = loaderContext.options;
11
12
let vueOptions = loaderContext.options.__vueOptions__;
@@ -61,6 +61,7 @@ export default function(code: string, loaderContext: LoaderContext) {
61
resolve({ transpiledCode: result.css, sourceMap: map });
62
63
return null; // silence bluebird warning
64
- });
+ })
65
+ .catch(err => reject(err));
66
});
67
}
0 commit comments