Skip to content

Local bundle not opening after download #712

@chrispcampbell

Description

@chrispcampbell

There are two related issues with the new bundle selector that was added in #697.

When the "Save to Local" feature is used, the file is downloaded to the local bundles directory correctly, but if you try to select it, the bundle fails to load because Vite says that it's not found. The issue is that we use import.meta.glob to load the bundle, but the list of available keys is not refreshed by Vite when changes are made to the watched glob directory. We will need reload the page and/or Vite server.

Also, it looks like bundle files that are downloaded to a subdirectory (because the branch name contained a slash) cannot be loaded. The issue is that the glob pattern we use only looks for js files that are direct children of the bundles directory. We will need to modify it to use recursive pattern (bundles/**/*.js).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions