Skip to content

Commit ab68bc7

Browse files
fix readme & dependancies
1 parent 563d84f commit ab68bc7

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ rust({
136136
importHook: function (path) { return JSON.stringify(path); },
137137

138138
// Allows you to define a custom path to wasm-pack.
139-
// Use of a '~' prefix will be converted to `os.homedir()`
140-
wasmPackPath: "~/.cargo/bin/wasm-pack"
139+
// If the path starts with '~' it will be converted to `os.homedir()`
140+
// eg. "~/.cargo/bin/wasm-pack -> "/Users/user_name/.cargo/bin/wasm-pack"
141+
wasmPackPath: "node_modules/.bin/wasm-pack"
141142
})
142143
```
143144

example/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ console_error_panic_hook = "0.1.6"
1414

1515
[dependencies.web-sys]
1616
version = "0.3.35"
17-
features = ["console"]
17+
features = [
18+
"console"
19+
]

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@wasm-tool/rollup-plugin-rust",
33
"author": "Pauan <[email protected]>",
44
"description": "Rollup plugin for bundling and importing Rust crates.",
5-
"version": "1.0.8",
5+
"version": "1.0.7",
66
"license": "MIT",
77
"repository": "github:wasm-tool/rollup-plugin-rust",
88
"homepage": "https://github.com/wasm-tool/rollup-plugin-rust#readme",
@@ -25,8 +25,7 @@
2525
"glob": "^7.1.6",
2626
"rimraf": "^3.0.0",
2727
"rollup-pluginutils": "^2.8.2",
28-
"toml": "^3.0.0",
29-
"os": "^0.1.2"
28+
"toml": "^3.0.0"
3029
},
3130
"optionalDependencies": {
3231
"wasm-pack": "^0.10.0"

0 commit comments

Comments
 (0)