Skip to content

Commit 777828a

Browse files
authored
Merge pull request #1739 from xtuc/upgrade-wasm-pack-plugin-1.0.1
upgrade @wasm-tool/wasm-pack-plugin to 1.0.1
2 parents a162531 + 312f5d6 commit 777828a

File tree

38 files changed

+39
-39
lines changed

38 files changed

+39
-39
lines changed

_package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server -p"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"html-webpack-plugin": "^3.2.0",
99
"text-encoding": "^0.7.0",
1010
"webpack": "^4.29.4",

examples/add/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
const rust = import('./pkg/add');
3+
const rust = import('./pkg');
44
rust
55
.then(m => alert('1 + 2 = ' + m.add(1, 2)))
66
.catch(console.error);

examples/add/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server -p"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"html-webpack-plugin": "^3.2.0",
99
"text-encoding": "^0.7.0",
1010
"webpack": "^4.29.4",

examples/canvas/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example.
3-
import('./pkg/canvas')
3+
import('./pkg')
44
.catch(console.error);

examples/canvas/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/char/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-unused-vars */
22
import { chars } from './chars-list.js';
3-
let imp = import('./pkg/char');
3+
let imp = import('./pkg');
44
let mod;
55

66
let counters = [];

examples/char/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/closures/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/closures')
3+
import('./pkg')
44
.catch(console.error);

examples/closures/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/console_log/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/console_log')
3+
import('./pkg')
44
.catch(console.error);

examples/console_log/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/dom/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/dom')
3+
import('./pkg')
44
.catch(console.error);

examples/dom/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example.
3-
import('./pkg/rust_duck_typed_interfaces');
3+
import('./pkg');

examples/duck-typed-interfaces/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/fetch/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const rust = import('./pkg/fetch');
1+
const rust = import('./pkg');
22

33
rust
44
.then(m => {

examples/fetch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/guide-supported-types-examples/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/hello_world/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Note that a dynamic `import` statement here is required due to
2-
// webpack/webpack#6615, but in theory `import { greet } from './pkg/hello_world';`
2+
// webpack/webpack#6615, but in theory `import { greet } from './pkg';`
33
// will work here one day as well!
4-
const rust = import('./pkg/hello_world');
4+
const rust = import('./pkg');
55

66
rust
77
.then(m => m.greet('World!'))

examples/hello_world/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/import_js/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./crate/pkg/import_js')
3+
import('./crate/pkg')
44
.catch(console.error);

examples/import_js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/julia_set/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import('./pkg/julia_set')
1+
import('./pkg')
22
.then(wasm => {
33
const canvas = document.getElementById('drawing');
44
const ctx = canvas.getContext('2d');

examples/julia_set/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/paint/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example.
3-
import('./pkg/wasm_bindgen_paint')
3+
import('./pkg')
44
.catch(console.error);

examples/paint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/performance/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/performance')
3+
import('./pkg')
44
.catch(console.error);

examples/performance/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/request_animation_frame')
3+
import('./pkg')
44
.catch(console.error);

examples/request-animation-frame/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/todomvc/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
const rust = import('./pkg/todomvc');
3+
const rust = import('./pkg');
44

55
rust
66
.then(m => m.run())

examples/todomvc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/wasm-in-wasm/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example
3-
import('./pkg/wasm_in_wasm')
3+
import('./pkg')
44
.catch(console.error);

examples/wasm-in-wasm/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/webaudio/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import('./pkg/webaudio')
1+
import('./pkg')
22
.then(rust_module => {
33
let fm = null;
44

examples/webaudio/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

examples/webgl/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// For more comments about what's going on here, check out the `hello_world`
22
// example.
3-
import('./pkg/webgl')
3+
import('./pkg')
44
.catch(console.error);

examples/webgl/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"serve": "webpack-dev-server"
55
},
66
"devDependencies": {
7-
"@wasm-tool/wasm-pack-plugin": "0.4.2",
7+
"@wasm-tool/wasm-pack-plugin": "1.0.1",
88
"text-encoding": "^0.7.0",
99
"html-webpack-plugin": "^3.2.0",
1010
"webpack": "^4.29.4",

0 commit comments

Comments
 (0)