Skip to content

Commit

Permalink
fix: Use default export from package instead of named export version (#…
Browse files Browse the repository at this point in the history
…1273)

* fix: Use default export from package instead of named export version

* formatting

* changelog

Co-authored-by: Gavin Rehkemper <grehkemper@esri.com>
  • Loading branch information
destus90 and gavinr-maps committed May 24, 2021
1 parent 9dac1aa commit a6a46fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/EsriLeaflet.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit a6a46fc

Please sign in to comment.