- From: Joel Denning <notifications@github.com>
- Date: Fri, 20 Sep 2019 15:04:50 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 20 September 2019 22:05:12 UTC
> HTML, CSS, and JSON modules do not specify the type of content in the import statement. Are there any proposals / ideas that could solve these issues? At the risk of suggesting something naive, could the file extension be the way that the import statement specifies its expected module type? ```js // both the file extension and mime type must be present for the non-script module to load import 'file.json' import 'file.css' import 'file.html ``` The obvious limitation of this approach is that you can't load json, css, and html modules from urls without the proper file extension. The advantage is that it doesn't require a rework of import statements and import maps to make html, css, and json modules work. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/839#issuecomment-533725294
Received on Friday, 20 September 2019 22:05:12 UTC