onnxruntime/js/web/test/e2e
Yulong Wang fbae88f5ad
[js/web] use the recommended workaround for Vite (#23531)
### Description

After some investigation and debug, I decided to follow the recommended
workaround as suggested in https://github.com/vitejs/vite/issues/8427.

### Motivation and Context

There is a known issue with Vite 5.x when using WebAssembly package.
Detail information is in https://github.com/vitejs/vite/issues/8427.

There are previous attempts to fix this problem (#23487). I tried
various ways to make it working out of the box for Vite users but none
of them worked: Some "fixes" did fix the usage of Vite but broke other
use case/bundler and some introduced other issues. Eventually I figured
out that there is no good way to fix this inside ONNX Runtime.

Considering the root cause is inside Vite and it may be fixed in Vite
v6. I think now the best way is to follow the recommended workaround.
2025-01-29 17:38:22 -08:00
..
exports [js/web] use the recommended workaround for Vite (#23531) 2025-01-29 17:38:22 -08:00
src
.gitignore
.parcelrc
browser-test-wasm-binary-override.js
browser-test-wasm-image-tensor-image.js
browser-test-wasm-multi-session-create.js
browser-test-wasm-path-override-filename-jsep.js
browser-test-wasm-path-override-filename.js
browser-test-wasm-path-override-prefix.js
browser-test-wasm.js
browser-test-webgl.js
browser-test-webgpu-external-data.js
bundler.esm.postprocess.js
common.js
common.mjs
karma.conf.js [js/web] fix package export for bundlers (#23257) 2025-01-09 11:01:00 -08:00
model.onnx
model_with_orig_ext_data.bin
model_with_orig_ext_data.onnx
node-test-main-no-threads.js
node-test-main-no-threads.mjs
node-test-main.js
node-test-main.mjs
node-test-wasm-path-override-filename.js
node-test-wasm-path-override-prefix.js
package.json [js/web] fix package export for bundlers (#23257) 2025-01-09 11:01:00 -08:00
rollup.config.esm-js.js
rollup.config.umd-js.js
run-data.js [js/web] fix package export for bundlers (#23257) 2025-01-09 11:01:00 -08:00
run.js [js/web] fix package export for bundlers (#23257) 2025-01-09 11:01:00 -08:00
simple-http-server.js
webpack.config.esm-js.js
webpack.config.umd-js.js