Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade @wasm-tool/wasm-pack-plugin to 1.0.1 #1739

Merged
merged 1 commit into from
Aug 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/add/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/add/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/canvas/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/canvas/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/char/index.js
Original file line number Diff line number Diff line change
@@ -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 = [];
Expand Down
2 changes: 1 addition & 1 deletion examples/char/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/closures/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/closures/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/console_log/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/console_log/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/dom/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/dom/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/duck-typed-interfaces/index.js
Original file line number Diff line number Diff line change
@@ -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');
2 changes: 1 addition & 1 deletion examples/duck-typed-interfaces/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/fetch/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rust = import('./pkg/fetch');
const rust = import('./pkg');

rust
.then(m => {
Expand Down
2 changes: 1 addition & 1 deletion examples/fetch/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/guide-supported-types-examples/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": "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",
Expand Down
4 changes: 2 additions & 2 deletions examples/hello_world/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';`
// 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!'))
Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/import_js/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/import_js/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/julia_set/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import('./pkg/julia_set')
import('./pkg')
.then(wasm => {
const canvas = document.getElementById('drawing');
const ctx = canvas.getContext('2d');
Expand Down
2 changes: 1 addition & 1 deletion examples/julia_set/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/paint/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/paint/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/performance/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/performance/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/request-animation-frame/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/request-animation-frame/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/todomvc/index.js
Original file line number Diff line number Diff line change
@@ -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())
Expand Down
2 changes: 1 addition & 1 deletion examples/todomvc/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/wasm-in-wasm/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/wasm-in-wasm/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/webaudio/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import('./pkg/webaudio')
import('./pkg')
.then(rust_module => {
let fm = null;

Expand Down
2 changes: 1 addition & 1 deletion examples/webaudio/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": "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",
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl/index.js
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion examples/webgl/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": "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",
Expand Down