From 93f0360fe064fbfd83dfbcc8f74075788e13dd5c Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 12 Feb 2022 14:01:37 +0100 Subject: build: remove the no-parser config for formatjs I don't know if I misunderstand the purpose of no-parser but I can't get it to work with strings containing a variable or plurals. They are always fallback to the english message. So I decided to disable this config. --- .babelrc | 1 - next.config.js | 5 ----- 2 files changed, 6 deletions(-) diff --git a/.babelrc b/.babelrc index 28dcb52..48ed8fd 100644 --- a/.babelrc +++ b/.babelrc @@ -1,7 +1,6 @@ { "presets": ["next/babel"], "plugins": [ - "macros", ["formatjs", { "ast": true }], [ "prismjs", diff --git a/next.config.js b/next.config.js index f6aff19..4a3ca39 100644 --- a/next.config.js +++ b/next.config.js @@ -31,11 +31,6 @@ const nextConfig = { ], }, webpack: (config, { dev }) => { - if (!dev) { - // https://formatjs.io/docs/guides/advanced-usage#react-intl-without-parser-40-smaller - config.resolve.alias['@formatjs/icu-messageformat-parser'] = - '@formatjs/icu-messageformat-parser/no-parser'; - } config.module.rules.push( { test: /\.pdf/, -- cgit v1.2.3