mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-25 06:53:00 +00:00
Tweak tree-shaking anchor
This commit is contained in:
parent
98361ec2a9
commit
5458d581e5
1 changed files with 6 additions and 5 deletions
|
@ -12,9 +12,10 @@ import 'iso8601-js-period';
|
||||||
window.addEventListener("load", function(_event) {
|
window.addEventListener("load", function(_event) {
|
||||||
window.map_manager = new MapManager();
|
window.map_manager = new MapManager();
|
||||||
window.map_manager.setup();
|
window.map_manager.setup();
|
||||||
|
});
|
||||||
|
|
||||||
|
// 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);
|
console.log("iso8601-js-period namespace: ", window.nezasa);
|
||||||
|
|
||||||
// Ensure terser doesn't tree-shake iso8601-js-period
|
// Ensure terser doesn't tree-shake iso8601-js-period
|
||||||
console.debug(`iso8601-js-period ${nezasa.iso8601.Period?"is":"is not"} loaded.`);
|
console.debug(`iso8601-js-period ${nezasa.iso8601.Period?"is":"is not"} loaded.`);
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in a new issue