mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
esm - removal of CSS loader (#230206)
This commit is contained in:
@@ -114,15 +114,6 @@ function main() {
|
||||
* @param onError
|
||||
*/
|
||||
const loader = function (modules, onLoad, onError) {
|
||||
|
||||
modules = modules.filter(mod => {
|
||||
if (mod.endsWith('css.build.test')) {
|
||||
// AMD ONLY, ignore for ESM
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
const loads = modules.map(mod => import(`${baseUrl}/${mod}.js`).catch(err => {
|
||||
console.error(`FAILED to load ${mod} as ${baseUrl}/${mod}.js`);
|
||||
throw err;
|
||||
|
||||
Reference in New Issue
Block a user