Skip to content

Commit

Permalink
next.config: comment out formatjs no-parser optimization, was breakin…
Browse files Browse the repository at this point in the history
…g with swc
  • Loading branch information
mimecuvalo committed Mar 8, 2023
1 parent b384eb2 commit 871b7f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ const nextConfig = {
);

if (!dev) {
// TODO(mime): try to re-enable this but with SWC it was breaking, was only working with Babel.
// 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.resolve.alias['@formatjs/icu-messageformat-parser'] = '@formatjs/icu-messageformat-parser/no-parser';
}

return config;
Expand Down

0 comments on commit 871b7f2

Please sign in to comment.