Browse Source

wasm-pack fixed temporarily

pull/102/head
Jason Williams 5 years ago
parent
commit
2eea64b171
  1. 2
      index.js
  2. 2
      package.json
  3. 6
      yarn.lock

2
index.js

@ -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 => {

2
package.json

@ -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",

6
yarn.lock

@ -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"

Loading…
Cancel
Save