diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b0d22321..ab02b8441 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased][unreleased] +### Fixed + +- Do not use named exports from JSON ([info](https://webpack.js.org/migrate/5/#cleanup-the-code)) (🙏destus90🙏 [#1273](https://github.com/Esri/esri-leaflet/pull/1273)) + ## [3.0.1] - 2021-02-23 ### Fixed diff --git a/src/EsriLeaflet.js b/src/EsriLeaflet.js index b5bdaeaee..087c6f211 100644 --- a/src/EsriLeaflet.js +++ b/src/EsriLeaflet.js @@ -1,5 +1,7 @@ // export version -export {version as VERSION} from '../package.json'; +import packageInfo from '../package.json'; +var version = packageInfo.version; +export { version as VERSION }; // import base export { Support } from './Support';