-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: minor corrections with exports
- Loading branch information
Sergio Moreno
committed
May 18, 2021
1 parent
2d25f2c
commit 88c006b
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
export * from './detect-locale.esm' | ||
import { | ||
detectDev, fromCookieDev, fromHtmlTagDev, fromNavigatorDev, fromPathDev, fromStorageDev, fromSubdomainDev, fromUrlDev, multipleDetectDev | ||
} from "./detect-locale.development.js" | ||
|
||
import { | ||
detect, fromCookie, fromHtmlTag, fromNavigator, fromPath, fromStorage, fromSubdomain, fromUrl, multipleDetect | ||
} from "./detect-locale.production.min.js" | ||
|
||
export const detect = process.env.NODE_ENV === "production" ? detect : detectDev; | ||
export const fromCookie = process.env.NODE_ENV === "production" ? fromCookie : fromCookieDev; | ||
export const fromHtmlTag = process.env.NODE_ENV === "production" ? fromHtmlTag : fromHtmlTagDev; | ||
export const fromNavigator = process.env.NODE_ENV === "production" ? fromNavigator : fromNavigatorDev; | ||
export const fromPath = process.env.NODE_ENV === "production" ? fromPath : fromPathDev; | ||
export const fromStorage = process.env.NODE_ENV === "production" ? fromStorage : fromStorageDev; | ||
export const fromSubdomain = process.env.NODE_ENV === "production" ? fromSubdomain : fromSubdomainDev; | ||
export const fromUrl = process.env.NODE_ENV === "production" ? fromUrl : fromUrlDev; | ||
export const multipleDetect = process.env.NODE_ENV === "production" ? multipleDetect : multipleDetectDev; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
export * from './react.esm' | ||
import { | ||
I18nProvider as devI18nProvider, Trans as devTrans, useLingui as devuseLingui, withI18n as devwithI18n | ||
} from "./react.development.js" | ||
|
||
import { | ||
I18nProvider, Trans, useLingui, withI18n | ||
} from "./react.production.min.js" | ||
|
||
export const I18nProvider = process.env.NODE_ENV === "production" ? I18nProvider : devI18nProvider; | ||
export const Trans = process.env.NODE_ENV === "production" ? Trans : devTrans; | ||
export const useLingui = process.env.NODE_ENV === "production" ? useLingui : devuseLingui; | ||
export const withI18n = process.env.NODE_ENV === "production" ? withI18n : devwithI18n; |
88c006b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: