Skip to content

Commit

Permalink
fix ESM usage?
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Sep 6, 2024
1 parent 7fa519c commit 558e486
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/docusaurus-logger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
* LICENSE file in the root directory of this source tree.
*/

export {
default,
// Extra named export to avoid problems in ESM modules
// Notably: core .mjs CLI + create-docusaurus
// See https://github.com/facebook/docusaurus/pull/6661
// See https://github.com/facebook/docusaurus/pull/7295
default as logger,
} from './logger';
import OriginalLogger from './logger';

export default OriginalLogger;

// Extra named export to avoid problems in ESM modules
// Notably: core .mjs CLI + create-docusaurus
// See https://github.com/facebook/docusaurus/pull/6661
// See https://github.com/facebook/docusaurus/pull/7295
export const logger = OriginalLogger;

export {PerfLogger} from './perfLogger';

0 comments on commit 558e486

Please sign in to comment.