summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--.babelrc1
-rw-r--r--next.config.js5
2 files changed, 0 insertions, 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/,