Open JeroenVinke opened 7 years ago
Is this not an Aurelia-CLI bug?
Yes, but it would be nice if we could narrow down the problem so that it can be fixed more quickly
No disagreement from me
This may be expected behavior because we are treating Kendo as a package, but it is a collection of individual named modules. Will update the docs when we can handle that better in the CLI
How can this be handled better in cli? A special case for collections of individually named modules? How frequent is this situation?
Would it be better to provide an utility that makes a package from a collection of individually named modules?
After the CLI respects paths
in aurelia.json, I bet it'll work by pointing each named module to the correct location. But specifying all files is not very optimal, so perhaps we can do the same as JSPM, to allow for globs ("kendo.*": "node_modules/kendo/kendo.*.min.js"
.
Yes, as the latter ought to be just an implicit invocation of the kendo.*.min.js
to a "private list" of paths.
with minified kendo.grid.min.js this gets in the bundle:
and with unminified kendo.grid.js this gets in the bundle:
kendo minified (commonJS, when downloaded from NPM) works kendo minified (AMD, when downloaded as trial or from the kendo site) fails kendo unminified (AMD, from the kendo source ZIP of the telerik site) works