Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

dont install wasm-pack for webpack type projects #1344

Merged
merged 4 commits into from
Jun 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/wranglerjs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,6 @@ fn setup_build(target: &Target) -> Result<(Command, PathBuf, Bundle), failure::E
let wranglerjs_path = install().expect("could not install wranglerjs");
command.arg(wranglerjs_path);

// export WASM_PACK_PATH for use by wasm-pack-plugin
// https://github.com/wasm-tool/wasm-pack-plugin/blob/caca20df84782223f002735a8a2e99b2291f957c/plugin.js#L13
let tool_name = "wasm-pack";
let tool_author = "rustwasm";
let version = install::get_latest_version(tool_name)?;
let wasm_pack_path =
install::install(tool_name, tool_author, true, version)?.binary("wasm-pack")?;
command.env("WASM_PACK_PATH", wasm_pack_path);

// create a temp file for IPC with the wranglerjs process
let mut temp_file = env::temp_dir();
temp_file.push(format!(".wranglerjs_output{}", random_chars(5)));
Expand Down