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

cache is not working properly #160

Closed
dabit1gamma opened this issue Nov 12, 2018 · 3 comments
Closed

cache is not working properly #160

dabit1gamma opened this issue Nov 12, 2018 · 3 comments

Comments

@dabit1gamma
Copy link

For example, if you have a message like "hello" then this plugin will create it. If you change it per "hello!" it will be replaced. But if you change it again per "hello" then it will not be replaced. It's a critical bug.

Thanks

@tomek-f
Copy link

tomek-f commented Nov 14, 2018

Turning off cacheDirectory (false) in babel-loader helped me a little with cache problems.

@enzoferey
Copy link

People coming here for Nextjs integration, this solved it for me:

// next.config.js

// Disable `next-babel-loader` caching if production
// That way `babel-plugin-react-intl` extracts messages properly
webpack: (config, { dev, isServer }) => {
    if (!dev && !isServer) {
        config.module.rules
            .filter(rule => rule.test.test(".js"))
            .forEach(rule => {
                rule.use.options.cacheDirectory = false;
            });
    }
}

@longlho
Copy link
Member

longlho commented May 26, 2019

close due to stale

@longlho longlho closed this as completed May 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants