Browse Source

Tweak tree-shaking anchor

pull/35/head
Starbeamrainbowlabs 4 years ago
parent
commit
5458d581e5
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 11
      client_src/js/index.mjs

11
client_src/js/index.mjs

@ -12,9 +12,10 @@ import 'iso8601-js-period'; @@ -12,9 +12,10 @@ import 'iso8601-js-period';
window.addEventListener("load", function(_event) {
window.map_manager = new MapManager();
window.map_manager.setup();
console.log("iso8601-js-period namespace: ", window.nezasa);
// Ensure terser doesn't tree-shake iso8601-js-period
console.debug(`iso8601-js-period ${nezasa.iso8601.Period?"is":"is not"} loaded.`);
});
// 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);
// Ensure terser doesn't tree-shake iso8601-js-period
console.debug(`iso8601-js-period ${nezasa.iso8601.Period?"is":"is not"} loaded.`);

Loading…
Cancel
Save