code-hike / codehike

Build rich content websites with Markdown and React
https://codehike.org
MIT License
4.68k stars 142 forks source link

[mdx] Bundle size #107

Closed pomber closed 2 years ago

pomber commented 2 years ago

Two improvements to bundle size:

For example, in:

# Hello

```js
function lorem(ipsum) {}
```

```js
function lorem(ipsum) {}
```

The theme should appear only once in the output. Also, unused components (like CH.Spotlight) shouldn't be included in the final bundle.

pomber commented 2 years ago

Fixed with https://github.com/code-hike/codehike/pull/160