-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ESM dev entrypoint was causing unexpected behaviors (#1059)
- Loading branch information
Showing
3 changed files
with
27 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { | ||
i18n as i18nProd, | ||
setupI18n as setupI18nProd, | ||
formats as formatsProd, | ||
I18n as I18nProd | ||
} from './dev.production.min'; | ||
|
||
import { | ||
i18n as i18nDev, | ||
setupI18n as setupI18nDev, | ||
formats as formatsDev, | ||
I18n as I18nDev | ||
} from './dev.development'; | ||
|
||
export const i18n = process.env.NODE_ENV === 'production' ? i18nProd : i18nDev; | ||
export const setupI18n = process.env.NODE_ENV === 'production' ? setupI18nProd : setupI18nDev; | ||
export const formats = process.env.NODE_ENV === 'production' ? formatsProd : formatsDev; | ||
export const I18n = process.env.NODE_ENV === 'production' ? I18nProd : I18nDev; |
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