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

Support dynamic module importing

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Fully Compatible
    • Server Serverless 2022-12-12, Server Serverless 2022-12-26

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: