From 4d9b97de356741cadb2df6a23d3b12ee10041922 Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Thu, 28 Apr 2022 12:38:32 +0200 Subject: [PATCH] wip Upgrade NodeJS to v16 - Fixed module entry points (#172) --- core.api.js | 4 ++++ core.client.js | 4 ++++ core.common.js | 4 ++++ map.api.js | 4 ++++ map.client.globe.js | 4 ++++ map.client.js | 4 ++++ map.client.map.js | 4 ++++ map.common.js | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/core.api.js b/core.api.js index 3008b5183..187ee4814 100644 --- a/core.api.js +++ b/core.api.js @@ -1 +1,5 @@ +// Need this as export * only exports named exports but not the default export +import api from './core/api/index.js' +export default api + export * from './core/api/index.js' diff --git a/core.client.js b/core.client.js index da916eeec..985171ebb 100644 --- a/core.client.js +++ b/core.client.js @@ -1 +1,5 @@ +// Need this as export * only exports named exports but not the default export +import client from './core/client/index.js' +export default client + export * from './core/client/index.js' diff --git a/core.common.js b/core.common.js index 1d2cd7a25..286945352 100644 --- a/core.common.js +++ b/core.common.js @@ -1 +1,5 @@ +// Need this as export * only exports named exports but not the default export +import common from './core/common/index.js' +export default common + export * from './core/common/index.js' diff --git a/map.api.js b/map.api.js index bbf5d13e1..2d94184fa 100644 --- a/map.api.js +++ b/map.api.js @@ -1 +1,5 @@ +// Need this as export * only exports named exports but not the default export +import api from './map/api/index.js' +export default api + export * from './map/api/index.js' diff --git a/map.client.globe.js b/map.client.globe.js index 9deac3355..f9d2f5ca2 100644 --- a/map.client.globe.js +++ b/map.client.globe.js @@ -1 +1,5 @@ +// Need this as export * only exports named exports but not the default export +import client from './map/client/globe/index.js' +export default client + export * from './map/client/globe/index.js' diff --git a/map.client.js b/map.client.js index 25b5a048a..d739048d3 100644 --- a/map.client.js +++ b/map.client.js @@ -1 +1,5 @@ +// Need this as export * only exports named exports but not the default export +import client from './map/client/index.js' +export default client + export * from './map/client/index.js' diff --git a/map.client.map.js b/map.client.map.js index ddab23aeb..c31d695cd 100644 --- a/map.client.map.js +++ b/map.client.map.js @@ -1 +1,5 @@ +// Need this as export * only exports named exports but not the default export +import client from './map/client/map/index.js' +export default client + export * from './map/client/map/index.js' diff --git a/map.common.js b/map.common.js index 6fa1578f3..f337f4ce6 100644 --- a/map.common.js +++ b/map.common.js @@ -1 +1,5 @@ +// Need this as export * only exports named exports but not the default export +import common from './core/common/index.js' +export default common + export * from './map/common/index.js'