Skip to content

Commit

Permalink
fix: update node dependencies for wasm webui
Browse files Browse the repository at this point in the history
  • Loading branch information
dariogoetz committed Nov 21, 2024
1 parent 653cad5 commit 947e731
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '20'

- name: Install node packages
run: npm install
Expand Down
6 changes: 3 additions & 3 deletions webui/layout_evaluation_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ layout_optimization_genetic = { path = "../../layout_optimization/layout_optimiz
layout_optimization_sa = { path = "../../layout_optimization/layout_optimization_sa" }

instant = { version = "0.1.12", features = ["wasm-bindgen"] }
js-sys = "0.3.56"
js-sys = "0.3.72"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.8.23"
wasm-bindgen = { version = "=0.2.82", features = ["serde-serialize"] }
serde_yaml = "0.9.34"
wasm-bindgen = { version = "=0.2.95", features = ["serde-serialize"] }

argmin = "0.7.0"
genevo = { version = "0.7.0", features = ["wasm-bindgen"] }
Expand Down
6 changes: 3 additions & 3 deletions webui/layout_evaluation_wasm/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"copy-webpack-plugin": "^5.0.0",
"hello-wasm-pack": "^0.1.0",
"raw-loader": "^4.0.2",
"webpack": "^4.29.3",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0",
"worker-loader": "^3.0.8"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions webui/layout_evaluation_wasm/www/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ module.exports = {
// use: 'raw-loader',
// }
]
},
experiments: {
asyncWebAssembly: true
}
};

0 comments on commit 947e731

Please sign in to comment.