wasm-pack icon indicating copy to clipboard operation
wasm-pack copied to clipboard

wasm-pack profile name doesn't match the cargo profile name

Open srussvoll opened this issue 9 months ago • 0 comments

🐛 Bug description

When running wasm-pack with a custom profile (wasm-pack build . --profile custom_profile_name), the cargo profile with name custom_profile_name will be used, but wasm-pack will use a profile called custom.

More concisely, Cargo will use [profile.custom_profile_name], whereas wasm-pack will use [package.metadata.wasm-pack.profile.custom]

🤔 Expected Behavior

wasm-pack should have used [package.metadata.wasm-pack.profile.custom_profile_name].

🌍 Your environment

Include the relevant details of your environment. wasm-pack version: git revision 32e52ca893e26c97bbf478c57ae1e9abed23c449

srussvoll avatar Apr 02 '25 13:04 srussvoll