diff --git a/_package.json b/_package.json index bd283faadc1..76a59e2b56f 100644 --- a/_package.json +++ b/_package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server -p" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "html-webpack-plugin": "^3.2.0", "text-encoding": "^0.7.0", "webpack": "^4.29.4", diff --git a/examples/add/index.js b/examples/add/index.js index e8f5245025d..3ef372fa4a3 100644 --- a/examples/add/index.js +++ b/examples/add/index.js @@ -1,6 +1,6 @@ // For more comments about what's going on here, check out the `hello_world` // example -const rust = import('./pkg/add'); +const rust = import('./pkg'); rust .then(m => alert('1 + 2 = ' + m.add(1, 2))) .catch(console.error); diff --git a/examples/add/package.json b/examples/add/package.json index bd283faadc1..76a59e2b56f 100644 --- a/examples/add/package.json +++ b/examples/add/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server -p" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "html-webpack-plugin": "^3.2.0", "text-encoding": "^0.7.0", "webpack": "^4.29.4", diff --git a/examples/canvas/index.js b/examples/canvas/index.js index a649b473e1e..f65f61a0378 100644 --- a/examples/canvas/index.js +++ b/examples/canvas/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example. -import('./pkg/canvas') +import('./pkg') .catch(console.error); diff --git a/examples/canvas/package.json b/examples/canvas/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/canvas/package.json +++ b/examples/canvas/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/char/index.js b/examples/char/index.js index caa92b42428..a1847acc9a7 100644 --- a/examples/char/index.js +++ b/examples/char/index.js @@ -1,6 +1,6 @@ /* eslint-disable no-unused-vars */ import { chars } from './chars-list.js'; -let imp = import('./pkg/char'); +let imp = import('./pkg'); let mod; let counters = []; diff --git a/examples/char/package.json b/examples/char/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/char/package.json +++ b/examples/char/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/closures/index.js b/examples/closures/index.js index 5fb5aa35598..5ff87114fbf 100644 --- a/examples/closures/index.js +++ b/examples/closures/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example -import('./pkg/closures') +import('./pkg') .catch(console.error); diff --git a/examples/closures/package.json b/examples/closures/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/closures/package.json +++ b/examples/closures/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/console_log/index.js b/examples/console_log/index.js index f3dafbcba0b..5ff87114fbf 100644 --- a/examples/console_log/index.js +++ b/examples/console_log/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example -import('./pkg/console_log') +import('./pkg') .catch(console.error); diff --git a/examples/console_log/package.json b/examples/console_log/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/console_log/package.json +++ b/examples/console_log/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/dom/index.js b/examples/dom/index.js index 7defc51d681..5ff87114fbf 100644 --- a/examples/dom/index.js +++ b/examples/dom/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example -import('./pkg/dom') +import('./pkg') .catch(console.error); diff --git a/examples/dom/package.json b/examples/dom/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/dom/package.json +++ b/examples/dom/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/duck-typed-interfaces/index.js b/examples/duck-typed-interfaces/index.js index beb99169cd2..d412ea3a292 100644 --- a/examples/duck-typed-interfaces/index.js +++ b/examples/duck-typed-interfaces/index.js @@ -1,3 +1,3 @@ // For more comments about what's going on here, check out the `hello_world` // example. -import('./pkg/rust_duck_typed_interfaces'); +import('./pkg'); diff --git a/examples/duck-typed-interfaces/package.json b/examples/duck-typed-interfaces/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/duck-typed-interfaces/package.json +++ b/examples/duck-typed-interfaces/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/fetch/index.js b/examples/fetch/index.js index 16c31681da3..c2d3d2ae054 100644 --- a/examples/fetch/index.js +++ b/examples/fetch/index.js @@ -1,4 +1,4 @@ -const rust = import('./pkg/fetch'); +const rust = import('./pkg'); rust .then(m => { diff --git a/examples/fetch/package.json b/examples/fetch/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/fetch/package.json +++ b/examples/fetch/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/guide-supported-types-examples/package.json b/examples/guide-supported-types-examples/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/guide-supported-types-examples/package.json +++ b/examples/guide-supported-types-examples/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/hello_world/index.js b/examples/hello_world/index.js index d7d7a65a27d..3bef2fc8f6c 100644 --- a/examples/hello_world/index.js +++ b/examples/hello_world/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';` +// webpack/webpack#6615, but in theory `import { greet } from './pkg';` // will work here one day as well! -const rust = import('./pkg/hello_world'); +const rust = import('./pkg'); rust .then(m => m.greet('World!')) diff --git a/examples/hello_world/package.json b/examples/hello_world/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/hello_world/package.json +++ b/examples/hello_world/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/import_js/index.js b/examples/import_js/index.js index e3955b09370..f6180b804da 100644 --- a/examples/import_js/index.js +++ b/examples/import_js/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example -import('./crate/pkg/import_js') +import('./crate/pkg') .catch(console.error); diff --git a/examples/import_js/package.json b/examples/import_js/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/import_js/package.json +++ b/examples/import_js/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/julia_set/index.js b/examples/julia_set/index.js index 4e721fe7a7e..981c798ec3e 100644 --- a/examples/julia_set/index.js +++ b/examples/julia_set/index.js @@ -1,4 +1,4 @@ -import('./pkg/julia_set') +import('./pkg') .then(wasm => { const canvas = document.getElementById('drawing'); const ctx = canvas.getContext('2d'); diff --git a/examples/julia_set/package.json b/examples/julia_set/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/julia_set/package.json +++ b/examples/julia_set/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/paint/index.js b/examples/paint/index.js index a674d057295..f65f61a0378 100644 --- a/examples/paint/index.js +++ b/examples/paint/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example. -import('./pkg/wasm_bindgen_paint') +import('./pkg') .catch(console.error); diff --git a/examples/paint/package.json b/examples/paint/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/paint/package.json +++ b/examples/paint/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/performance/index.js b/examples/performance/index.js index e653d69e4e4..5ff87114fbf 100644 --- a/examples/performance/index.js +++ b/examples/performance/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example -import('./pkg/performance') +import('./pkg') .catch(console.error); diff --git a/examples/performance/package.json b/examples/performance/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/performance/package.json +++ b/examples/performance/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/request-animation-frame/index.js b/examples/request-animation-frame/index.js index de9aa20415e..5ff87114fbf 100644 --- a/examples/request-animation-frame/index.js +++ b/examples/request-animation-frame/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example -import('./pkg/request_animation_frame') +import('./pkg') .catch(console.error); diff --git a/examples/request-animation-frame/package.json b/examples/request-animation-frame/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/request-animation-frame/package.json +++ b/examples/request-animation-frame/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/todomvc/index.js b/examples/todomvc/index.js index bc0a79ba09f..8504fa51418 100644 --- a/examples/todomvc/index.js +++ b/examples/todomvc/index.js @@ -1,6 +1,6 @@ // For more comments about what's going on here, check out the `hello_world` // example -const rust = import('./pkg/todomvc'); +const rust = import('./pkg'); rust .then(m => m.run()) diff --git a/examples/todomvc/package.json b/examples/todomvc/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/todomvc/package.json +++ b/examples/todomvc/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/wasm-in-wasm/index.js b/examples/wasm-in-wasm/index.js index d079129814e..5ff87114fbf 100644 --- a/examples/wasm-in-wasm/index.js +++ b/examples/wasm-in-wasm/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example -import('./pkg/wasm_in_wasm') +import('./pkg') .catch(console.error); diff --git a/examples/wasm-in-wasm/package.json b/examples/wasm-in-wasm/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/wasm-in-wasm/package.json +++ b/examples/wasm-in-wasm/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/webaudio/index.js b/examples/webaudio/index.js index 116689cb2ff..8b7ae8cce5a 100644 --- a/examples/webaudio/index.js +++ b/examples/webaudio/index.js @@ -1,4 +1,4 @@ -import('./pkg/webaudio') +import('./pkg') .then(rust_module => { let fm = null; diff --git a/examples/webaudio/package.json b/examples/webaudio/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/webaudio/package.json +++ b/examples/webaudio/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4", diff --git a/examples/webgl/index.js b/examples/webgl/index.js index 6cc5f9c8b68..f65f61a0378 100644 --- a/examples/webgl/index.js +++ b/examples/webgl/index.js @@ -1,4 +1,4 @@ // For more comments about what's going on here, check out the `hello_world` // example. -import('./pkg/webgl') +import('./pkg') .catch(console.error); diff --git a/examples/webgl/package.json b/examples/webgl/package.json index cf15f1b2fe5..5f0670df5c9 100644 --- a/examples/webgl/package.json +++ b/examples/webgl/package.json @@ -4,7 +4,7 @@ "serve": "webpack-dev-server" }, "devDependencies": { - "@wasm-tool/wasm-pack-plugin": "0.4.2", + "@wasm-tool/wasm-pack-plugin": "1.0.1", "text-encoding": "^0.7.0", "html-webpack-plugin": "^3.2.0", "webpack": "^4.29.4",