Skip to content

Commit

Permalink
Merge pull request #984 from m1gu3l:master
Browse files Browse the repository at this point in the history
Do not rely on global L (pull request #984)
(Leaflet/Leaflet.markercluster#984)
according to [@m1gu3l](https://github.com/m1gu3l))
fix issue #874 (Does not work with ES6 imports for leaflet)
  • Loading branch information
BePo65 committed Feb 26, 2021
1 parent 0615fcc commit b49b4b2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/rollup-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

// Config file for running Rollup in "normal" mode (non-watch)

import inject from '@rollup/plugin-inject';
import rollupGitVersion from 'rollup-plugin-git-version'
import json from 'rollup-plugin-json'

Expand Down Expand Up @@ -36,8 +37,14 @@ export default {
legacy: true, // Needed to create files loadable by IE8
name: 'Leaflet.markercluster',
sourcemap: true,
globals: {
"leaflet": "L"
}
},
plugins: [
release ? json() : rollupGitVersion(),
inject({
L: "leaflet"
})
],
};
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "1.4.1",
"description": "Provides Beautiful Animated Marker Clustering functionality for Leaflet",
"devDependencies": {
"@rollup/plugin-inject": "^4.0.1",
"git-rev-sync": "^2.0.0",
"happen": "^0.3.2",
"jake": "10.4.5",
Expand Down

0 comments on commit b49b4b2

Please sign in to comment.