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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -