Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[js/web] ESM: use the bundled target as default export #20991

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

fs-eire
Copy link
Contributor

@fs-eire fs-eire commented Jun 10, 2024

Description

ESM: use the bundled target as default export

In this change, the default import of the following entries:

import from 'onnxruntime-web';
import from 'onnxruntime-web/all';
import from 'onnxruntime-web/webgpu';

will use the "bundled" version, which has no dynamic import.

This change should only apply to ESM on web.

@fs-eire fs-eire merged commit dd805ff into main Jun 11, 2024
55 checks passed
@fs-eire fs-eire deleted the fs-eire/esm-default-bundle branch June 11, 2024 18:14
@lucasgelfond
Copy link

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants