We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9aa2df commit ed0cce8Copy full SHA for ed0cce8
packages/core/src/runtime/worker/loadModule.ts
@@ -175,11 +175,10 @@ export const loadModule = ({
175
wasmPath: string,
176
callback: (err: Error | null, data?: Buffer) => void,
177
) => {
178
- const currentDirectory = path.dirname(distPath);
179
const joinedPath = isRelativePath(wasmPath)
180
- ? path.join(currentDirectory, wasmPath)
+ ? path.join(path.dirname(distPath), wasmPath)
181
: wasmPath;
182
- const content = assetFiles[joinedPath];
+ const content = assetFiles[path.normalize(joinedPath)];
183
if (content) {
184
callback(null, Buffer.from(content, 'utf-8'));
185
} else {
0 commit comments