summaryrefslogtreecommitdiffstats
path: root/next.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-12 14:01:37 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-12 14:01:37 +0100
commit93f0360fe064fbfd83dfbcc8f74075788e13dd5c (patch)
tree03c9f609aa0e60ee8367833259eb0627744d9865 /next.config.js
parent8647197a05490e2c10106a021cf6760bdabb5b2a (diff)
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.
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js5
1 files changed, 0 insertions, 5 deletions
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/,