-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
v3: fix bundler config for latest ORT #864
Conversation
- Only the first call needs to be sequential due to the call to `initWasm()`
More efficient than duplicating encoder inputs
module: { | ||
parser: { | ||
javascript: { | ||
importMeta: false | ||
} | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required to preserve import.meta.url
in the code. Otherwise webpack will replace the expression to a static string starting with "file://", which breaks worker/wasm loading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Thanks! Merged into |
This PR fixes bundler config for latest ORT.
After a few months' work, onnxruntime-web has finally stabilized its library export. There is not going to be big changes to this part in near future.
Discussion:
env.wasm.wasmPaths = undefined
)