Skip to content

Commit

Permalink
chore: upgrade @wasm-tool/wasm-pack-plugin to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed Aug 27, 2019
1 parent a162531 commit 312f5d6
Show file tree
Hide file tree
Showing 38 changed files with 39 additions and 39 deletions.
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

0 comments on commit 312f5d6

Please sign in to comment.