dart-archive / web-components

Dart package providing the web components platform polyfills
https://pub.dartlang.org/packages/web_components
BSD 3-Clause "New" or "Revised" License
18 stars 10 forks source link

Add support for url constructor arguments in inline script tags #6

Open jakemac53 opened 9 years ago

jakemac53 commented 9 years ago

Currently, @HtmlImport doesn't work right if it appears in a separate package with a relative url inside of an inline script tag. The ScriptCompactor makes a new file next to the original entry point and doesn't know how to detect relative urls that it should fix up.

This could possibly be done with an @url annotation on the constructor field, or something along those lines.