diff --git a/packages/docusaurus-logger/src/index.ts b/packages/docusaurus-logger/src/index.ts index 7d5b577dff26..6db95cdd1531 100644 --- a/packages/docusaurus-logger/src/index.ts +++ b/packages/docusaurus-logger/src/index.ts @@ -149,7 +149,4 @@ const logger = { // TODO remove when migrating to ESM // logger can only be default-imported in ESM with this -module.exports = logger; -module.exports.default = logger; - -export default logger; +export = logger; diff --git a/packages/docusaurus-remark-plugin-npm2yarn/src/__tests__/index.test.ts b/packages/docusaurus-remark-plugin-npm2yarn/src/__tests__/index.test.ts index 6b6ff1ada900..6c6dc300e176 100644 --- a/packages/docusaurus-remark-plugin-npm2yarn/src/__tests__/index.test.ts +++ b/packages/docusaurus-remark-plugin-npm2yarn/src/__tests__/index.test.ts @@ -6,9 +6,7 @@ */ import remark from 'remark'; -// Import from the transpiled lib because Babel can't transpile `export =` -// TODO change to `../index` after migrating to ESM -import npm2yarn from '../../lib/index'; +import npm2yarn from '../index'; import vfile from 'to-vfile'; import path from 'path'; import mdx from 'remark-mdx';