File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,16 @@ export async function setupBuildHandler(config: ModuleOptions, resolve: Resolver
43
43
if ( compatibility . wasm ?. esmImport !== true )
44
44
return
45
45
const configuredEntry = nitro . options . rollupConfig ?. output . entryFileNames
46
- const serverEntry = resolve ( _nitro . options . output . serverDir , typeof configuredEntry === 'string'
46
+ const serverEntry = resolve . resolve ( _nitro . options . output . serverDir , typeof configuredEntry === 'string'
47
47
? configuredEntry
48
48
: 'index.mjs' )
49
49
const wasmEntries = [ serverEntry ]
50
50
if ( isCloudflarePagesOrModule ) {
51
51
// this is especially hacky, basically need to add all paths the wasm import can exist on
52
52
// TODO maybe implement https://github.com/pi0/nuxt-shiki/blob/50e80fb6454de561e667630b4e410d2f7b5f2d35/src/module.ts#L103-L128
53
- wasmEntries . push ( resolve ( dirname ( serverEntry ) , './chunks/wasm.mjs' ) )
54
- wasmEntries . push ( resolve ( dirname ( serverEntry ) , './chunks/_/wasm.mjs' ) )
55
- wasmEntries . push ( resolve ( dirname ( serverEntry ) , './chunks/index_bg.mjs' ) )
53
+ wasmEntries . push ( resolve . resolve ( dirname ( serverEntry ) , './chunks/wasm.mjs' ) )
54
+ wasmEntries . push ( resolve . resolve ( dirname ( serverEntry ) , './chunks/_/wasm.mjs' ) )
55
+ wasmEntries . push ( resolve . resolve ( dirname ( serverEntry ) , './chunks/index_bg.mjs' ) )
56
56
}
57
57
const resvgHash = await resolveFilePathSha1 ( '@resvg/resvg-wasm/index_bg.wasm' )
58
58
const yogaHash = await resolveFilePathSha1 ( 'yoga-wasm-web/dist/yoga.wasm' )
You can’t perform that action at this time.
0 commit comments