diff --git a/index.html b/index.html index a8797d44..1a80408d 100644 --- a/index.html +++ b/index.html @@ -3202,7 +3202,6 @@ - @@ -3210,7 +3209,6 @@ - diff --git a/src/main.js b/src/main.js index ee636e29..e21b6b51 100644 --- a/src/main.js +++ b/src/main.js @@ -1,10 +1,5 @@ import $ from './jquery.js'; -import 'leaflet'; -import 'leaflet-marker-rotation'; -import 'Leaflet.MultiOptionsPolyline'; -import 'jquery-ui/dist/jquery-ui'; -import 'bootstrap'; -import './vendor/jquery.nouislider.all.min.js'; +import './vendor.js' import { throttle } from 'throttle-debounce'; import { MapGrapher } from './graph_map.js'; import { FlightLogGrapher } from './grapher.js'; diff --git a/src/vendor.js b/src/vendor.js new file mode 100644 index 00000000..ff2dfeeb --- /dev/null +++ b/src/vendor.js @@ -0,0 +1,9 @@ +import 'leaflet'; +import 'leaflet-marker-rotation'; +import 'Leaflet.MultiOptionsPolyline'; +import 'jquery-ui/dist/jquery-ui'; +import './vendor/jquery.nouislider.all.min.js'; +import 'bootstrap'; +import _ from 'lodash'; + +globalThis._ = _; \ No newline at end of file