Skip to content

SvelteKit 3 migrate: use relative paths for dynamic imports #1288

Description

@theetrain

Perhaps this is a better articulation of #1276.

Until vitejs/vite#23182 is closed, subpath imports within dynamic import() will not build until Vite 8.3.

My proposal:

  • When migrating, install latest Vite (probably already the case)
  • If Vite 8.3 is installed, migrate alias paths within dynamic import() to use subpath imports such as #lib
  • Otherwise, use relative paths such as ../../

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions