- From: Justin Fagnani <notifications@github.com>
- Date: Mon, 07 Apr 2025 13:48:37 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 7 April 2025 20:48:41 UTC
justinfagnani left a comment (WICG/webcomponents#645) One feature that we've talked about often wrt HTML modules is the ability to export and import from inline module scripts. For instance: ```html <html> <script id="foo-module" type="module"> // This is actually available somewhere export const foo = 42; </script> <script id="bar-module" type="module"> import {foo} from '#foo-module'; // strawman specifier syntax </script> </html> ``` This feature seems pretty separable from HTML modules and something that could be useful in the main page, especially for declarative notebook-style documents (projects like Observable have to completely side-step imports to be able to reference things between script tags). It's also related to https://github.com/whatwg/html/issues/7367 I searched for a standalone issue for this and didn't find one yet, so I'll open one in https://github.com/whatwg/html soon. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/645#issuecomment-2784591294 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/645/2784591294@github.com>
Received on Monday, 7 April 2025 20:48:41 UTC