i18n-polyfill icon indicating copy to clipboard operation
i18n-polyfill copied to clipboard

require gets removed in build --prod

Open mattiLeBlanc opened this issue 6 years ago • 0 comments

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

mattiLeBlanc avatar Jul 06 '18 14:07 mattiLeBlanc