Throw with some InvalidChunkError
class so we can handle it like
System.import('./Component.js').catch(e => {
if (e instanceof InvalidChunkError) {
// chunk load error
} else {
console.error(e); // any other error inside chunk
}
})
@sokra I found nothing according to the spec,
But I think that as soon as implementation will start we will have some new error in this list
Currently i’m checking it like that
It’s good enough for now