mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-15 09:40:52 +00:00
chore: upgrade @wasm-tool/wasm-pack-plugin to 1.0.1
This commit is contained in:
parent
a16253174a
commit
312f5d6dca
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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 = [];
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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');
|
||||||
|
@ -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",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const rust = import('./pkg/fetch');
|
const rust = import('./pkg');
|
||||||
|
|
||||||
rust
|
rust
|
||||||
.then(m => {
|
.then(m => {
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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!'))
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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');
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -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())
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import('./pkg/webaudio')
|
import('./pkg')
|
||||||
.then(rust_module => {
|
.then(rust_module => {
|
||||||
let fm = null;
|
let fm = null;
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user