Skip to content

Commit 62d8c0b

Browse files
1 parent 31360f2 commit 62d8c0b

File tree

3 files changed

+78
-16
lines changed

3 files changed

+78
-16
lines changed

build/rollup-config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

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

4+
import inject from '@rollup/plugin-inject';
45
import rollupGitVersion from 'rollup-plugin-git-version'
56
import json from 'rollup-plugin-json'
67

@@ -36,8 +37,17 @@ export default {
3637
legacy: true, // Needed to create files loadable by IE8
3738
name: 'Leaflet.markercluster',
3839
sourcemap: true,
40+
globals: {
41+
"leaflet": "L"
42+
}
3943
},
44+
external: [
45+
"leaflet"
46+
],
4047
plugins: [
4148
release ? json() : rollupGitVersion(),
49+
inject({
50+
L: "leaflet"
51+
})
4252
],
4353
};

package-lock.json

Lines changed: 66 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"leaflet": "^1.3.1",
2020
"mocha": "6.0.2",
2121
"phantomjs-prebuilt": "^2.1.14",
22-
"rollup": "1.3.2",
22+
"rollup": "1.29.1",
23+
"@rollup/plugin-inject": "^4.0.0",
2324
"rollup-plugin-git-version": "0.2.1",
2425
"rollup-plugin-json": "3.1.0",
2526
"uglify-js": "3.4.9"

0 commit comments

Comments
 (0)