File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44** /locale /*
55docs /*
66README.md
7+ ** /npm /*
Original file line number Diff line number Diff line change 1- import i18nModule from '../index.js'
1+ import {
2+ i18n as i18nProd ,
3+ setupI18n as setupI18nProd ,
4+ formats as formatsProd ,
5+ I18n as I18nProd
6+ } from './core.esm' ;
27
3- export const setupI18n = i18nModule . setupI18n
4- export const I18n = i18nModule . I18n
5- export const i18n = i18nModule . i18n
6- export const formats = i18nModule . formats
8+ import {
9+ i18n as i18nDev ,
10+ setupI18n as setupI18nDev ,
11+ formats as formatsDev ,
12+ I18n as I18nDev
13+ } from './dev.esm' ;
14+
15+ export const i18n = process . env . NODE_ENV === 'production' ? i18nProd : i18nDev ;
16+ export const setupI18n = process . env . NODE_ENV === 'production' ? setupI18nProd : setupI18nDev ;
17+ export const formats = process . env . NODE_ENV === 'production' ? formatsProd : formatsDev ;
18+ export const I18n = process . env . NODE_ENV === 'production' ? I18nProd : I18nDev ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 "version" : " 3.5.1" ,
44 "description" : " I18n tools for javascript" ,
55 "main" : " index.js" ,
6+ "module" : " esm/index.js" ,
67 "types" : " cjs/index.d.ts" ,
78 "author" : {
89 "name" : " Tomáš Ehrlich" ,
Original file line number Diff line number Diff line change 1- import detectLocaleModule from '../index.js'
2-
3- export const detect = detectLocaleModule . detect
4- export const multipleDetect = detectLocaleModule . multipleDetect
5- export const fromCookie = detectLocaleModule . fromCookie
6- export const fromHtmlTag = detectLocaleModule . fromHtmlTag
7- export const fromNavigator = detectLocaleModule . fromNavigator
8- export const fromPath = detectLocaleModule . fromPath
9- export const fromStorage = detectLocaleModule . fromStorage
10- export const fromSubdomain = detectLocaleModule . fromSubdomain
11- export const fromUrl = detectLocaleModule . fromUrl
1+ export * from './detect-locale.esm'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 "version" : " 3.5.1" ,
44 "description" : " @Lingui package to help you find the correct browser/server locale" ,
55 "main" : " index.js" ,
6+ "module" : " esm/index.js" ,
67 "types" : " cjs/index.d.ts" ,
78 "license" : " MIT" ,
89 "keywords" : [
Original file line number Diff line number Diff line change 1+ export * from './react.esm'
Original file line number Diff line number Diff line change 33 "version" : " 3.5.1" ,
44 "description" : " React components for translations" ,
55 "main" : " index.js" ,
6+ "module" : " esm/index.js" ,
67 "types" : " cjs/index.d.ts" ,
78 "author" : {
89 "name" : " Tomáš Ehrlich" ,
3334 " LICENSE" ,
3435 " README.md" ,
3536 " index.js" ,
36- " cjs/"
37+ " cjs/" ,
38+ " esm/"
3739 ],
3840 "peerDependencies" : {
3941 "react" : " ^16.8.0 || ^17.0.0"
Original file line number Diff line number Diff line change 33const bundleTypes = {
44 UNIVERSAL : "UNIVERSAL" ,
55 NODE : "NODE" ,
6- NOOP : "NOOP"
6+ NOOP : "NOOP" ,
7+ ESM : "ESM" ,
78}
89
910const bundles = [
You can’t perform that action at this time.
0 commit comments