Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1332

Use webpack instead of parcel for bundling

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.2
    • Affects Version/s: None
    • Component/s: Build, Tech debt
    • None
    • Not Needed

      We currently use parcel for bundling the mongosh executable, but there are many reasons to migrate to webpack:

      • We’re using an unmaintained version of parcel
      • Webpack has much wider adoption and broader support
      • In other places, we use webpack almost universally, including other mongosh packages
      • Webpack does, unlike some comments in the codebase indicate, support our monorepo structure
      • Webpack supports plugins like terser, which could help with speeding up startup times
      • Parcel is problematic w.r.t support for ESM and newer Node.js modules, requiring us to monkey-patch its internals

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: