Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71658

Support dynamic module importing

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Server Serverless 2022-12-12, Server Serverless 2022-12-26

      JSTests often start parallel shells in order to execute concurrent workloads, and they often use load in those parallel shell code sections in order to load functionality from other files. Import/export statements are not permitted outside of the root level of a script, which also means we can't use them inside parallel shell code sections. Dynamic import functions are allowed within function calls, so we should add support for dynamic imports which permit us to convert libraries used in these code sections to modules.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: