use default export from plugins

This more or less matches how node plugins expect the plugin module to be an init function
This commit is contained in:
Matt Bierner
2022-02-23 17:11:52 -08:00
parent e2bbb6c329
commit 53d90b6636
+1 -1
View File
@@ -153,7 +153,7 @@ namespace ts.server {
// TODO: TS rewrites `import(...)` to `require`. Use eval to bypass this
// eslint-disable-next-line no-eval
return eval(`import(${JSON.stringify(scriptPath)})`);
return (await eval(`import(${JSON.stringify(scriptPath)})`)).default;
},
exit: notImplemented,