Open
Description
Optionally, import
statements not related to svelte internals could also be translated.
On-demand mode
This mode could be separated into a two step process:
- identify those extra imports and save them on an inverted index (which components/routes expects which imports)
- encapsulate them on IIFE and points the result to
Al.package['package-name']
- translate the imports
Three-shaking full mode
Instead of making an inverted index, pass all the extra imports to the browser.js
library.
This is only acceptable when pre-rendering or SSR is applied, since the HTML will still load independently of the deferred/lazily-loaded Alumna browser js library.
Metadata
Assignees
Labels
No labels