javascript - UMD With Ember-CLI -


i trying load gridstack in ember application via ember-cli. installed application via bower , imported in ember-cli-build.js file. includes _ library via:

if (typeof define === 'function' && define.amd) {     define(['jquery', 'lodash'], factory); } 

define.amd evaulates false

i looked why case , , found ember-cli's loader doesn't support umd. on open cli issue, stefan penner, 1 of main cli developers, suggested:

this design. library requires pre build step de-anonymize modules. step can appropriate munging work correctly

i have no clue means. got around issue manually importing dependencies of library in own ember-cli-build before library that's defeating purpose of dependency management. how can make library resolve own modules?


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -