From 217bca0c7f1a49796e5ac475326d9ed6a5c61322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Ch=C3=A9ramy?= Date: Wed, 5 Jul 2023 11:14:42 +0200 Subject: [PATCH] fix formatjs's paths to local-data to reduce bundle size --- src/gatsby-node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gatsby-node.js b/src/gatsby-node.js index 21ea3bb..9100051 100644 --- a/src/gatsby-node.js +++ b/src/gatsby-node.js @@ -27,11 +27,11 @@ exports.onCreateWebpackConfig = ({ actions, plugins }, pluginOptions) => { GATSBY_INTL_REDIRECT_COMPONENT_PATH: JSON.stringify(redirectComponent), }), new webpack.ContextReplacementPlugin( - /@formatjs[/\\]intl-relativetimeformat[/\\]dist[/\\]locale-data$/, + /@formatjs[/\\]intl-relativetimeformat[/\\]locale-data$/, regex ), new webpack.ContextReplacementPlugin( - /@formatjs[/\\]intl-pluralrules[/\\]dist[/\\]locale-data$/, + /@formatjs[/\\]intl-pluralrules[/\\]locale-data$/, regex ), ],