mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
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:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user