[SERVER-71658] Support dynamic module importing Created: 28/Nov/22  Updated: 29/Oct/23  Resolved: 16/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Matt Broadstone Assignee: Matt Broadstone
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-12-12, Server Serverless 2022-12-26
Participants:

 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.



 Comments   
Comment by Githook User [ 16/Dec/22 ]

Author:

{'name': 'Matt Broadstone', 'email': 'mbroadst@mongodb.com', 'username': 'mbroadst'}

Message: SERVER-71658 Add support for dynamic import
Branch: master
https://github.com/mongodb/mongo/commit/680d92ab0437f7759e8ff36a7d8deddddab7fd0c

Generated at Thu Feb 08 06:19:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.