Merge pull request #1739 from xtuc/upgrade-wasm-pack-plugin-1.0.1

upgrade @wasm-tool/wasm-pack-plugin to 1.0.1
This commit is contained in:
Alex Crichton 2019-08-27 14:24:53 -05:00 committed by GitHub
commit 777828aa95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 39 additions and 39 deletions

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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 = [];

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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');

View File

@ -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",

View File

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

View File

@ -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",

View File

@ -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",

View File

@ -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!'))

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

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

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

@ -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())

View File

@ -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",

View File

@ -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);

View File

@ -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",

View File

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

View File

@ -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",

View File

@ -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);

View File

@ -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",