Skip to content

Commit

Permalink
fix for windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
crackcomm authored Dec 14, 2018
1 parent a63581d commit d5d2fda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WASMbindgenAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class WASMbindgenAsset extends Asset {
let wasm_path = path.relative(path.dirname(this.name), path.join(loc, rustName + '_bg.wasm'))
if (wasm_path[0] !== '.')
wasm_path = './' + wasm_path
wasm_path = wasm_path.replace('\\', '/')

js_content = js_content.replace(/import\ \*\ as\ wasm.+?;/, 'var wasm;const __exports = {};')

Expand Down

0 comments on commit d5d2fda

Please sign in to comment.