esm - removal of CSS loader (#230206)

This commit is contained in:
Benjamin Pasero
2024-10-01 19:24:18 +02:00
committed by GitHub
parent 1f7e13965c
commit 3b68a06818
12 changed files with 11 additions and 749 deletions
-9
View File
@@ -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;