Loading .wasm files as assets with Turbopack #75430
Replies: 3 comments 3 replies
-
|
Turbopack doesn’t currently support custom WebAssembly ( 1. Why Your Webpack Rule No Longer Works
2. Workaround: Load
|
Beta Was this translation helpful? Give feedback.
-
|
You can't use a J |
Beta Was this translation helpful? Give feedback.
-
|
Turbopack doesn’t expose Webpack-style rules for Why your webpack rule stops workingTurbopack doesn’t honour Options & concrete recipes1) Easiest / most robust — copy the
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I want to import a static
.wasmfile from a library as an asset,for example
import riveWASMResource from '@rive-app/canvas-lite/rive.wasm';I could achieve that before with a standard webpack rule:
How can I do the same with Turbopack? Couldn't find any resources or examples regarding this.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions