microsoft / vscode-loader

An universal Asynchronous Module Definition (AMD) Loader developed primarily to load VSCode's sources.
Other
170 stars 55 forks source link

Throw more detailed error when compilation fails #37

Open Charles-Gagnon opened 2 years ago

Charles-Gagnon commented 2 years ago

Currently the error only shows as something like this

Uncaught SyntaxError: Unexpected token '??'

which makes it difficult to track down which file is failing.

New error :

Uncaught Error: Error compiling file:///.../vs/workbench/browser/parts/editor/editorGroupView.js. SyntaxError: Unexpected token '??'