Skip to content

remove library-root option from DDC and don't generate very long library names #32211

Closed as not planned
@jmesserly

Description

@jmesserly

We should choose short names for local use, at least (and possibly for export as well), and remove the library-root flag.

A simple heuristic would be to just take the file name without extension, rather than jsLibraryName which is the full export name (includes path).

As a related issue, we should also shorten the library names in the export path. As long as we can see the set of library URIs in a JS module (with its Dart summary), we can choose a short, reasonable looking unique name. That also lets us remove the legacy library-root flag for file URIs.

Metadata

Metadata

Assignees

Labels

area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dev-compiler-uxtype-performanceIssue relates to performance or code sizeweb-dev-compiler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions