Skip to content

Commit

Permalink
fix: fix loader require
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Mar 7, 2020
1 parent 0eab8ef commit 7bf854e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/wasm2js.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
module.exports = function wasm2js(wasmBuf) {

return `
const { instantiate } = require("assemblyscript/lib/loader");
const { instantiate } = require("@assemblyscript/loader");
loadWebAssembly.supported = typeof WebAssembly !== 'undefined'
Expand Down
2 changes: 1 addition & 1 deletion tools/wasm2js.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
module.exports = function wasm2js(wasmBuf) {

return `
const { instantiateSync } = require("assemblyscript/lib/loader");
const { instantiateSync } = require("@assemblyscript/loader");
const fs = require('fs')
loadWebAssembly.supported = typeof WebAssembly !== 'undefined'
Expand Down

0 comments on commit 7bf854e

Please sign in to comment.