aurelia / bundler

A library for bundling JavaScript, HTML and CSS for use with SystemJS.
MIT License
37 stars 25 forks source link

Order of bundles or somehow be able to load some before others #83

Closed damianof closed 7 years ago

damianof commented 8 years ago

I apologize in advance in case there is a way to do this and this is not an issue. However, my current problem is that some jQuery plugins are not working after bundling because they are included in the bundle before jQuery library itself. I tried to force it by changing the order in my gulp bundle.js file but it seems I'm not able to affect this.

ahmedshuhel commented 8 years ago

It's more about how you configure jQuery and it's plugin deps with SystemJS. Re arranging position in the bundle config will not make any difference. Look at these two sections and you will get the idea:

  1. https://github.com/systemjs/systemjs/blob/master/docs/config-api.md#meta
  2. https://github.com/systemjs/systemjs/blob/master/docs/config-api.md#packages

Thanks!

damianof commented 8 years ago

Well, that is correct. I had to do that a long time ago to fix also when not bundling. The issue is now when I bundle.

ahmedshuhel commented 8 years ago

Need some more info on the versions of the tools you are using:

  1. NPM
  2. Aurelia-Bundler
  3. SystemJS
  4. JSPM

I also need the config.js and package.json. Best if you could point me to a github repo.

damianof commented 8 years ago

NPM 3.6.0 aurelia-bundler 0.3.2 SystemJS 0.19.23 JSPM 0.16.30 config.js and package.json are here: https://github.com/damianof/aurelia-config-samples

EisenbergEffect commented 7 years ago

@damianof Were you able to get this worked out or do you still need assistance?

damianof commented 7 years ago

I actually determine on once case that the order was not important. But it's been a long time and my memory is not that great. I'm going to close this issue for now.