Steal does not work well with kalendae module


I tried to use chipersoft-kalendae module with stealjs , but it does not work , I have submitted my code to github ,

    <meta charset="UTF-8">
    <link rel="stylesheet" href="/bower_components/kalendae/build/kalendae.css" type="text/css" charset="utf-8">
    <script src="/bower_components/steal/steal.js" main="main" data-main="main" data-config-path="config.js"></script>
    <div class="auto-kal"></div>



and if I do not use steal , it will work well

so I am not sure what’s wrong with my code

Due to how the Kalendae build script is set up, the “auto-kal” code runs before moment and MinPubSub are created when loading the script with Steal.

One way to fix this is to not use auto-kal and to call the constructor yourself:

<div id="not-auto-kal"></div>
var Kalendae = require('bower_components/kalendae/build/kalendae.standalone');

new Kalendae('not-auto-kal');

This obviously isn’t a great option. Perhaps someone else has a better solution.

Also, you might want to open an issue with Kalendae. They might be able to fix this issue on their end.