Skip to content

[question] What library to use for conditional imports on web now? #54674

@parlough

Description

@parlough

dart.library.js_interop and dart.library.js_interop_unsafe don't seem correct as they don't suggest that the code is running on the web.

Sure I can still rely on dart.library.html for now, but what if I want my code to continue working in a world where that no longer exists? Can some arbitrary target be introduced for web compilation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-js-interopIssues that impact all js interop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions