🐛 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 32e52ca