From 4971d641e7aecbddad327336067587c69f06e7ca Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 14 Apr 2019 22:23:32 +0100 Subject: [PATCH] Strengthen iso8601-js-period tree-shaking anchor --- client_src/js/index.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client_src/js/index.mjs b/client_src/js/index.mjs index daddff9..21e8c9f 100644 --- a/client_src/js/index.mjs +++ b/client_src/js/index.mjs @@ -7,13 +7,17 @@ import '../../node_modules/leaflet-timedimension/dist/leaflet.timedimension.cont import MapManager from './MapManager.mjs'; -import 'iso8601-js-period'; +import iso8601 from 'iso8601-js-period'; window.addEventListener("load", function(_event) { window.map_manager = new MapManager(); window.map_manager.setup(); }); +window.nezasa = { + iso8601 +}; + // This needs to be here rather than in onload, because we need to ensure it's loaded now console.log("iso8601-js-period namespace: ", window.nezasa);