Skip to content

Translate other imports on components #85

Open
@paulocoghi

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions