Skip to content

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

Open
@srussvoll

Description

@srussvoll

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions