Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Fix i18n discovery on dev restart #434

Merged
merged 3 commits into from
Jul 20, 2018
Merged

Fix i18n discovery on dev restart #434

merged 3 commits into from
Jul 20, 2018

Conversation

rtsao
Copy link
Member

@rtsao rtsao commented Jul 19, 2018

We currently have a persistent Babel cache, but translations discovery plugin relies on Babel. Thus in watch mode, when restarting the server, no translations are found because of the cache. This PR sets up a persistent cache that is hydrated on restart to resolve this.

Ideally this isn't necessary, but it is given the current setup with babel-loader/webpack and Babel caching. Fortunately, this code won't be needed once #426 is implemented because the compilation pipeline will be rather different.

dennisgl
dennisgl previously approved these changes Jul 19, 2018
Copy link
Contributor

@dennisgl dennisgl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flow types

@ganemone
Copy link
Contributor

Can you update the description to describe how this PR fixes it?

@rtsao
Copy link
Member Author

rtsao commented Jul 20, 2018

!merge

@old-fusion-bot old-fusion-bot bot merged commit 52ac0c1 into master Jul 20, 2018
@rtsao rtsao mentioned this pull request Aug 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants