Skip to content

[Feature Request]: Should not throw compile resolve errors for import(...) inside try {} block #5534

@hyf0

Description

@hyf0

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?

.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions