File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -14,4 +14,6 @@ console_error_panic_hook = "0.1.6"
1414
1515[dependencies .web-sys ]
1616version = " 0.3.35"
17- features = [" console" ]
17+ features = [
18+ " console"
19+ ]
Original file line number Diff line number Diff line change 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" ,
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"
You can’t perform that action at this time.
0 commit comments