Don't implicitly add "lib" to library root #17751
Labels
closed-not-planned
Closed as we don't intend to take action on the reported issue
type-enhancement
A request for a change that isn't a bug
web-dart2js
Dart2js takes a "library root" that it uses to locate files in the Dart SDK. This is the path to the root directory of the SDK. It then automatically adds "lib" to that to get the actual library root.
In pub, we're doing some work to make source maps for the core Dart libraries work. This means including those libraries in the build/serve output (in a debug build only, of course). We're doing that by placing them in a fake package. Since all public assets in a package live in "lib", the SDK sources are in "$sdk/lib". Then dart2js adds its own lib, so we end up with "$sdk/lib/lib", which is kind of ugly.
It would be nice if the library root we pass to dart2js was the path to the actual "lib" directory itself and dart2js didn't implicitly tack "lib" on to the end of it.
The text was updated successfully, but these errors were encountered: