Skip to content

Commit

Permalink
fix: Add extra package.json under /esm (#1258)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Jun 22, 2022
1 parent 98e9332 commit 80cd337
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/npm/esm/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import {
setupI18n as setupI18nProd,
formats as formatsProd,
I18n as I18nProd
} from './dev.production.min';
} from './dev.production.min.js';

import {
i18n as i18nDev,
setupI18n as setupI18nDev,
formats as formatsDev,
I18n as I18nDev
} from './dev.development';
} from './dev.development.js';

export const i18n = process.env.NODE_ENV === 'production' ? i18nProd : i18nDev;
export const setupI18n = process.env.NODE_ENV === 'production' ? setupI18nProd : setupI18nDev;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/npm/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import {
setupI18n as setupI18nProd,
formats as formatsProd,
I18n as I18nProd
} from './core.production.min';
} from './core.production.min.js';

import {
i18n as i18nDev,
setupI18n as setupI18nDev,
formats as formatsDev,
I18n as I18nDev
} from './core.development';
} from './core.development.js';

export const i18n = process.env.NODE_ENV === 'production' ? i18nProd : i18nDev;
export const setupI18n = process.env.NODE_ENV === 'production' ? setupI18nProd : setupI18nDev;
Expand Down
3 changes: 3 additions & 0 deletions packages/core/npm/esm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
3 changes: 3 additions & 0 deletions packages/detect-locale/npm/esm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
3 changes: 3 additions & 0 deletions packages/react/npm/esm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}

1 comment on commit 80cd337

@vercel
Copy link

@vercel vercel bot commented on 80cd337 Jun 22, 2022

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.