Excluding unused locales from webpack bundle #1797
-
Hello, Has anyone got working webpack configuration (ContextReplacementPlugin or another way) to exclude unwanted localization files from bundle? I've tried the way from documentation and different variations of regexp and nothing works so far. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@psimk 's posted a link to a repo of his in this thread with a working example that helped me get around the regex issue with webpack throwing errors from the He opened a PR to make the change in the documentation.
Hopefully this helps anyone looking for a solution. |
Beta Was this translation helpful? Give feedback.
@psimk 's posted a link to a repo of his in this thread with a working example that helped me get around the regex issue with webpack throwing errors from the
.js.flow
&.md
files that were also getting included in the dynamic import of locales.He opened a PR to make the change in the documentation.
Hopefully this helps anyone looking for a solution.