Skip to content

Commit

Permalink
fix: NODE_ENV=production crashes lingui extract #952
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Moreno committed Jan 27, 2021
1 parent f1e1a25 commit f368b35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/api/extractors/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const extractor: ExtractorType = {
transformFileSync(filename, {
...babelOptions,
...frameworkOptions,
// we override envName to avoid issues with NODE_ENV=production
// https://github.com/lingui/js-lingui/issues/952
envName: "development",
plugins: ["macros", [linguiExtractMessages, { localeDir }], ...plugins],
})
},
Expand Down

1 comment on commit f368b35

@vercel
Copy link

@vercel vercel bot commented on f368b35 Jan 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.