Skip to content

Commit

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

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

* formatting

* changelog

Co-authored-by: Gavin Rehkemper <[email protected]>
  • Loading branch information
destus90 and gavinr-maps authored May 24, 2021
1 parent d53370c commit ff7739e
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 ff7739e

Please sign in to comment.