From cb277220ae675f703a231d68f78b15ad736bd6d1 Mon Sep 17 00:00:00 2001 From: Rokas Muningis <28229273+muningis@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:54:10 +0200 Subject: [PATCH] style: remove redundant console.log --- src/__tests__/index.js | 4 ++-- src/index.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/__tests__/index.js b/src/__tests__/index.js index c50ed48..8a5084f 100644 --- a/src/__tests__/index.js +++ b/src/__tests__/index.js @@ -12,7 +12,7 @@ import {getMDXComponent, getMDXExport} from '../client.js' const {render} = rtl -test('smoke test', async () => { +test.only('smoke test', async () => { const mdxSource = ` --- title: Example Post @@ -417,7 +417,7 @@ test('should output assets', async () => { ) }) -test.only('should support importing named exports', async () => { +test('should support importing named exports', async () => { const mdxSource = ` --- title: Example Post diff --git a/src/index.js b/src/index.js index bdc58fe..41ba253 100644 --- a/src/index.js +++ b/src/index.js @@ -241,7 +241,7 @@ async function bundleMDX({ bundle: true, format: 'iife', globalName: 'Component', - minify: true, + minify: false, }, matter.data, ) @@ -268,7 +268,6 @@ async function bundleMDX({ ) } - console.log(code); return { code: `${code};return Component;`, frontmatter: matter.data,