Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Bump up dependencies versions + small changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
yamafaktory committed Apr 20, 2018
1 parent 1bbe42b commit 9b22eb5
Show file tree
Hide file tree
Showing 4 changed files with 908 additions and 528 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
"node": ">=8.0.0"
},
"devDependencies": {
"babel-eslint": "8.2.1",
"eslint": "4.15.0",
"babel-eslint": "8.2.3",
"eslint": "4.19.1",
"eslint-config-prettier": "2.9.0",
"eslint-config-standard": "10.2.1",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-node": "5.2.1",
"eslint-config-standard": "11.0.0",
"eslint-plugin-import": "2.11.0",
"eslint-plugin-node": "6.0.1",
"eslint-plugin-standard": "3.0.1",
"husky": "0.14.3",
"lint-staged": "6.0.0",
"lint-staged": "7.0.4",
"rust-native-wasm-loader": "0.7.0",
"snazzy": "7.0.0",
"standard": "10.0.3",
"wasm-loader": "^1.3.0",
"webpack": "v4.4.1",
"webpack-cli": "2.0.13",
"webpack-dev-server": "3.1.1"
"snazzy": "7.1.1",
"standard": "11.0.1",
"wasm-loader": "1.3.0",
"webpack": "4.6.0",
"webpack-cli": "2.0.14",
"webpack-dev-server": "3.1.3"
},
"scripts": {
"build": "webpack",
Expand Down
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import loadWasm from './lib.rs'

loadWasm().then(result => {
const addOne = result.instance.exports['add_one'];
console.log('return value was', addOne(3));
});
const addOne = result.instance.exports['add_one']
console.log('Return value was ', addOne(3))
})
19 changes: 11 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ module.exports = {
rules: [
{
test: /\.rs$/,
use: [{
loader: 'wasm-loader',
},{
loader: 'rust-native-wasm-loader',
options: {
gc: true,
release: true
use: [
{
loader: 'wasm-loader',
},
}],
{
loader: 'rust-native-wasm-loader',
options: {
gc: true,
release: true,
},
},
],
},
],
},
Expand Down
Loading

0 comments on commit 9b22eb5

Please sign in to comment.