Closed m-mujica closed 7 years ago
@matthewp is there a normalize hook that transforms/removes from the ~
(or the package name) from the module identifier? or does it happen in a different hook? locate maybe?
For this import:
import i18n from 'substitution-example/locale/#{lang}';
I get the address in the screenshot.
That is from calling locate on the normalized module identifier without the condition.
Shouldn't the address be the actual path to the file?
Using the app/package name also breaks the automatic detection of string substitution variations.