You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>'
🤔 Expected Behavior
What should have happened?
$ wasm-pack build --profile x-release --verbose
(No error)
👟 Steps to reproduce
Clear steps describing how to reproduce the issue, including commands and flags run. If you are seeing an error, please include the full error message and stack trace.
$ wasm-pack build --profile x-release --verbose
[INFO]: 🎯 Checking for the Wasm target...
[INFO]: 🌀 Compiling to Wasm...
error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>'
Usage: cargo build --lib --release --target [<TRIPLE>] --verbose...
For more information, try '--help'.
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 1
full command: cd"/path/to/project"&&"cargo""build""--lib""--release""--target""wasm32-unknown-unknown""--profile""x-release""--verbose"
...
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version:
rustc version:
I'm also trying to use a custom profile with wasm-pack so I can avoid mucking with my clean default release profile. I have a lot of different profiles being used for different build targets and they all inherit from release.
🐛 Bug description
Describe your issue in detail.
🤔 Expected Behavior
What should have happened?
👟 Steps to reproduce
Clear steps describing how to reproduce the issue, including commands and flags run. If you are seeing an error, please include the full error message and stack trace.
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version:
rustc version:
The text was updated successfully, but these errors were encountered: