Skip to content
Prev Previous commit
Next Next commit
use default export from plugins
This more or less matches how node plugins expect the plugin module to be an init function
  • Loading branch information
mjbvz committed Feb 24, 2022
commit 53d90b6636f90e3e5b8f96409e8a459c69b08c4b
2 changes: 1 addition & 1 deletion src/webServer/webServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Comment thread
rbuckton marked this conversation as resolved.
Outdated
},
exit: notImplemented,

Expand Down