stealjs / steal-conditional

Conditional loading
https://stealjs.com/docs/steal-conditional.html
MIT License
6 stars 1 forks source link

Run substitution module identifier through full normalize #32

Closed m-mujica closed 7 years ago

m-mujica commented 7 years ago

This way, module identifiers using the ~ scheme (or the package name) are normalized appropriately by the npm-extension before steal-conditional uses it to glob the file system to detect the substitution variations

I wasn't sure how to write a test in steal-conditional, in steal-tools was easy to replicate though https://github.com/stealjs/steal-tools/pull/584

Fixes #31

matthewp commented 7 years ago

LGTM 👍