Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39646

Properly generate bundles for packages that have multiple top-level modules

    • Blue Ocean 1.2-beta2

      Bundled are generated in a sub optimal way. One side effect is there could be multiple submodules of popular libraries appearing in different bundles. 


      See this doc for a description of the problem(s).

          [JENKINS-39646] Properly generate bundles for packages that have multiple top-level modules

          Tom FENNELLY created issue -
          Tom FENNELLY made changes -
          Epic Link New: JENKINS-37957 [ 174099 ]
          Tom FENNELLY made changes -
          Link New: This issue is related to JENKINS-38013 [ JENKINS-38013 ]
          Tom FENNELLY made changes -
          Link New: This issue depends on JENKINS-39657 [ JENKINS-39657 ]
          Tom FENNELLY made changes -
          Description Original: We fixed some bundling issues last week ... non bootstrap bundles (dashboard etc) are now back down to somewhat reasonable sizes (they were at ~ 2Mb in some cases), but the blueocean.js bootstrp bundle is still at about 3Mb because we have the kitchen sink thrown in there. If it's going to be that huge (something we did not know earlier in the game), then we need to tweak how we are doing the bundling.

          I've been working on this off-and-on over the last week or two. I've made progress on it (blueocean.js now at abou 0.6Mb), but have run into other react pita issues now (react == "pain" for me :) ). I've not been able to figure that issue out and I think I'm going to need to build some more tooling for myself in order to do that (will also hopefully help when we hit the next react/other bundling issue).

          So, parking this issue for now and we will come back to it later. Relevant WIP:

          * https://github.com/tfennelly/jenkins-js-builder/tree/all-extern-bundles
          * https://github.com/tfennelly/blueocean-plugin/tree/all-extern-bundles
          New: We fixed some bundling issues last week ... non bootstrap bundles (dashboard etc) are now back down to somewhat reasonable sizes (they were at ~ 2Mb in some cases), but the blueocean.js bootstrp bundle is still at about 3Mb because we have the kitchen sink thrown in there. If it's going to be that huge (something we did not know earlier in the game), then we need to tweak how we are doing the bundling.

          I've been working on this off-and-on over the last week or two. I've made progress on it (blueocean.js now at abou 0.6Mb), but have run into other react pita issues now (react == "pain" for me :) ). I've not been able to figure that issue out and I think I'm going to need to build some more tooling for myself in order to do that (will also hopefully help when we hit the next react/other bundling issue) - see JENKINS-39657.

          So, parking this issue for now and we will come back to it later. Relevant WIP:

          * https://github.com/tfennelly/jenkins-js-builder/tree/all-extern-bundles
          * https://github.com/tfennelly/blueocean-plugin/tree/all-extern-bundles
          Tom FENNELLY made changes -
          Component/s New: js-builder [ 21132 ]
          Component/s New: js-modules [ 21133 ]
          Tom FENNELLY made changes -
          Summary Original: Extract more dependencies out into their own JS bundles New: Properly generate bundles for packages that have multiple top-level modules
          Tom FENNELLY made changes -
          Issue Type Original: Task [ 3 ] New: Bug [ 1 ]
          Tom FENNELLY made changes -
          Epic Link Original: JENKINS-37957 [ 174099 ] New: JENKINS-35749 [ 171790 ]
          Tom FENNELLY made changes -
          Priority Original: Major [ 3 ] New: Blocker [ 1 ]

            Unassigned Unassigned
            tfennelly Tom FENNELLY
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: