igniteui-cli icon indicating copy to clipboard operation
igniteui-cli copied to clipboard

React projects/templates load module dependencies instead of core/lob

Open bazal4o opened this issue 7 years ago • 2 comments

As a developer I need to be able to provide component dependencies for my template and only the required files should be loaded instead of core/lob, or dv Webpack configuration

bazal4o avatar Feb 27 '18 10:02 bazal4o

TL;DR: We should probably postpone this and #194 for future updates in the Ignite UI for JS packages.

I've made a test project repo to test out loading modules. Besides the base util requiring some shimming, the standalone module files actually list just "jquery-ui" as AMD dependency which is more geared towards bower+require.js setup and doesn't play well in a webpack scenario. As the npm jQuery UI package doesn't have a single bundle exported that single dependency translates to just "jquery-ui/ui/widget", requiring adding specific other modules depending on the Ignite UI files being loaded which in a way defeats the purpose of loading just modules.

The core and LoB bundle files actually do list "jquery-ui" and "jquery-ui/ui/*" modules dependencies and that's why they've been loading fine in our projects so far and I'm think we should stick with those for now.

I could add util module shims to the project (even as commented out instructions) in case someone wants to give per-module loading a try in the meantime?

// CC @kdinev

damyanpetev avatar Mar 07 '18 17:03 damyanpetev

@damyanpetev Maybe we can add two separate defines for bower and npm?

kdinev avatar Mar 08 '18 08:03 kdinev

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Apr 22 '23 22:04 github-actions[bot]