chore: upgrade @wasm-tool/wasm-pack-plugin to 1.0.1

This commit is contained in:
Sven Sauleau 2019-08-27 18:18:38 +01:00
parent a16253174a
commit 312f5d6dca
38 changed files with 39 additions and 39 deletions

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server -p" "serve": "webpack-dev-server -p"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,6 +1,6 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
const rust = import('./pkg/add'); const rust = import('./pkg');
rust rust
.then(m => alert('1 + 2 = ' + m.add(1, 2))) .then(m => alert('1 + 2 = ' + m.add(1, 2)))
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server -p" "serve": "webpack-dev-server -p"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example. // example.
import('./pkg/canvas') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,6 +1,6 @@
/* eslint-disable no-unused-vars */ /* eslint-disable no-unused-vars */
import { chars } from './chars-list.js'; import { chars } from './chars-list.js';
let imp = import('./pkg/char'); let imp = import('./pkg');
let mod; let mod;
let counters = []; let counters = [];

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
import('./pkg/closures') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
import('./pkg/console_log') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
import('./pkg/dom') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,3 +1,3 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example. // example.
import('./pkg/rust_duck_typed_interfaces'); import('./pkg');

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
const rust = import('./pkg/fetch'); const rust = import('./pkg');
rust rust
.then(m => { .then(m => {

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,7 +1,7 @@
// Note that a dynamic `import` statement here is required due to // 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! // will work here one day as well!
const rust = import('./pkg/hello_world'); const rust = import('./pkg');
rust rust
.then(m => m.greet('World!')) .then(m => m.greet('World!'))

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
import('./crate/pkg/import_js') import('./crate/pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
import('./pkg/julia_set') import('./pkg')
.then(wasm => { .then(wasm => {
const canvas = document.getElementById('drawing'); const canvas = document.getElementById('drawing');
const ctx = canvas.getContext('2d'); const ctx = canvas.getContext('2d');

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example. // example.
import('./pkg/wasm_bindgen_paint') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
import('./pkg/performance') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
import('./pkg/request_animation_frame') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,6 +1,6 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
const rust = import('./pkg/todomvc'); const rust = import('./pkg');
rust rust
.then(m => m.run()) .then(m => m.run())

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example // example
import('./pkg/wasm_in_wasm') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
import('./pkg/webaudio') import('./pkg')
.then(rust_module => { .then(rust_module => {
let fm = null; let fm = null;

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",

View File

@ -1,4 +1,4 @@
// For more comments about what's going on here, check out the `hello_world` // For more comments about what's going on here, check out the `hello_world`
// example. // example.
import('./pkg/webgl') import('./pkg')
.catch(console.error); .catch(console.error);

View File

@ -4,7 +4,7 @@
"serve": "webpack-dev-server" "serve": "webpack-dev-server"
}, },
"devDependencies": { "devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2", "@wasm-tool/wasm-pack-plugin": "1.0.1",
"text-encoding": "^0.7.0", "text-encoding": "^0.7.0",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"webpack": "^4.29.4", "webpack": "^4.29.4",