These are chat archives for systemjs/systemjs

11th
May 2017
Garrick Cheung
@GCheung55
May 11 2017 19:18
I'm having some trouble loading https://github.com/algolia/autocomplete.js . Installed with jspm install npm:autocomplete.js, seems like there's some load order issues and I can't quite figure it out.
The issue I'm having is that the main entry point depends on load order:
// setup DOM element
var DOM = require('../common/dom.js');
var $ = require('jquery');
DOM.element = $;

// setup utils functions
var _ = require('../common/utils.js');
_.mixin = $.extend;

var Typeahead = require('../autocomplete/typeahead.js');
var EventBus = require('../autocomplete/event_bus.js');
Why? Not sure, but event_bus.js depends on utils.js, specifically the mixin function that is set in this main entry point.