Skip to content

Commit

Permalink
Merge pull request #61 from robinst/wasm-bump
Browse files Browse the repository at this point in the history
demo: Bump wasm-bindgen and wasm-pack-plugin
  • Loading branch information
robinst authored Jun 3, 2023
2 parents b1d8e3c + 34f5a26 commit 58528a4
Show file tree
Hide file tree
Showing 4 changed files with 1,031 additions and 3,231 deletions.
6 changes: 1 addition & 5 deletions demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@ edition = "2018"
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2.68"
wasm-bindgen = "0.2.86"
linkify = { path = ".." }

# https://github.com/rustwasm/wasm-pack/issues/886#issuecomment-667669802
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Oz", "--enable-mutable-globals"]
16 changes: 8 additions & 8 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "linkify-demo",
"private": true,
"scripts": {
"build": "webpack -p",
"serve": "webpack-dev-server -p"
"build": "webpack --mode production",
"serve": "webpack-dev-server --mode production"
},
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "1.6.0",
"copy-webpack-plugin": "^6.4.1",
"html-webpack-plugin": "^4.5.2",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.3"
"@wasm-tool/wasm-pack-plugin": "1.7.0",
"copy-webpack-plugin": "^11.0.0",
"html-webpack-plugin": "^5.5.1",
"webpack": "^5.85.0",
"webpack-cli": "^5.1.1",
"webpack-dev-server": "^4.15.0"
}
}
4 changes: 3 additions & 1 deletion demo/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const webpack = require("webpack");
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
const CopyPlugin = require("copy-webpack-plugin");

Expand All @@ -10,6 +9,9 @@ module.exports = {
path: path.resolve(__dirname, "dist"),
filename: "index.js",
},
experiments: {
asyncWebAssembly: true,
},
plugins: [
new HtmlWebpackPlugin({
template: "./web/index.html",
Expand Down
Loading

0 comments on commit 58528a4

Please sign in to comment.