Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All locale data included in bundle #232

Open
MaximeCheramy opened this issue Jul 3, 2023 · 0 comments · May be fixed by #233
Open

All locale data included in bundle #232

MaximeCheramy opened this issue Jul 3, 2023 · 0 comments · May be fixed by #233

Comments

@MaximeCheramy
Copy link

Since intl-relativetimeformat 6.0, the locales are no longer located in the dist subfolder (https://github.com/formatjs/formatjs/blob/main/packages/intl-relativetimeformat/CHANGELOG.md#600-2020-07-03). As a consequence, this line has no effect:

https://github.com/wiziple/gatsby-plugin-intl/blob/master/src/gatsby-node.js#L29

new webpack.ContextReplacementPlugin(
        /@formatjs[/\\]intl-relativetimeformat[/\\]dist[/\\]locale-data$/,
        regex
      )

The fix is probably to just remove the dist[/\\] part but I haven't tried.

@MaximeCheramy MaximeCheramy changed the title All locales included in bundle All locale date included in bundle Jul 3, 2023
@MaximeCheramy MaximeCheramy changed the title All locale date included in bundle All locale data included in bundle Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant