From 147fd863d594b9f2b1d161b3858276a1ceb8695a Mon Sep 17 00:00:00 2001 From: Aliaksandr Yankouski Date: Tue, 10 Jul 2018 10:39:01 +0300 Subject: [PATCH] make env modules names consistent --- packages/kbn-i18n/src/core/i18n/{node.js => browser.js} | 5 ++--- packages/kbn-i18n/src/core/i18n/index.js | 5 +++-- packages/kbn-i18n/src/core/i18n/package.json | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename packages/kbn-i18n/src/core/i18n/{node.js => browser.js} (92%) diff --git a/packages/kbn-i18n/src/core/i18n/node.js b/packages/kbn-i18n/src/core/i18n/browser.js similarity index 92% rename from packages/kbn-i18n/src/core/i18n/node.js rename to packages/kbn-i18n/src/core/i18n/browser.js index fefc2a205d229..af7c854ad979d 100644 --- a/packages/kbn-i18n/src/core/i18n/node.js +++ b/packages/kbn-i18n/src/core/i18n/browser.js @@ -17,6 +17,5 @@ * under the License. */ -import './intl_polyfill'; - -export * from './index'; +export { formats } from './formats'; +export * from './i18n'; diff --git a/packages/kbn-i18n/src/core/i18n/index.js b/packages/kbn-i18n/src/core/i18n/index.js index af7c854ad979d..451b02b670572 100644 --- a/packages/kbn-i18n/src/core/i18n/index.js +++ b/packages/kbn-i18n/src/core/i18n/index.js @@ -17,5 +17,6 @@ * under the License. */ -export { formats } from './formats'; -export * from './i18n'; +import './intl_polyfill'; + +export * from './browser'; diff --git a/packages/kbn-i18n/src/core/i18n/package.json b/packages/kbn-i18n/src/core/i18n/package.json index 4ec0fb4158031..7eacc60d3880b 100644 --- a/packages/kbn-i18n/src/core/i18n/package.json +++ b/packages/kbn-i18n/src/core/i18n/package.json @@ -1,4 +1,4 @@ { - "browser": "./index.js", - "main": "./node.js" + "browser": "./browser.js", + "main": "./index.js" }