What problem does this feature solve?
async function a() {
try {
const webSocketModule = await import('/__web-dev-server__web-socket.js');
} catch (error) {
throw new Error(
'Could not setup web socket connection. Are you executing this test through Web Test Runner?',
);
}
}
Should not throw compile resolve errors for import(...) inside try {} block
What does the proposed API look like?
.