i18n-polyfill
i18n-polyfill copied to clipboard
require gets removed in build --prod
Hi,
I am using require to load the XLF file like you guys do. However, when I build my project with --prod, the webpack code seems to get removed and the translation fails. Did you run into this issue?
My solution can be found here: https://github.com/angular/angular/issues/24549#issuecomment-402013622
Edit: Running with --prod --aot=false