Skip to content

Commit

Permalink
wasm-pack fixed temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Sep 8, 2019
1 parent e305fbd commit 2eea64b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Note that a dynamic `import` statement here is required due to
// webpack/webpack#6615, but in theory `import { greet } from './pkg/hello_world';`
// will work here one day as well!
const rust = import("./pkg/index_bg");
const rust = import("./pkg/boa");
// const image = import("./assets/01_rust_loves_js.png");

rust.then(m => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"serve": "webpack-dev-server"
},
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "^1.0.1",
"@wasm-tool/wasm-pack-plugin": "0.2.1",
"bootstrap": "^4.3.1",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^5.0.3",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
"@types/webpack-sources" "*"
source-map "^0.6.0"

"@wasm-tool/wasm-pack-plugin@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@wasm-tool/wasm-pack-plugin/-/wasm-pack-plugin-1.0.1.tgz#dd306b886ebbdfafb67fe3ba79d8efaddeee5cfc"
"@wasm-tool/wasm-pack-plugin@0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@wasm-tool/wasm-pack-plugin/-/wasm-pack-plugin-0.2.1.tgz#022d61681c5ca03ca8d6b134c684bcb0fc564880"
dependencies:
chalk "^2.4.1"
command-exists "^1.2.7"
Expand Down

0 comments on commit 2eea64b

Please sign in to comment.