Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mdx] Bundle size #107

Closed
pomber opened this issue Jan 9, 2022 · 1 comment
Closed

[mdx] Bundle size #107

pomber opened this issue Jan 9, 2022 · 1 comment
Milestone

Comments

@pomber
Copy link
Contributor

pomber commented Jan 9, 2022

Two improvements to bundle size:

  • only include the theme once
  • import only the components that are being used

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 pomber added this to the v0.0.3 milestone Jan 16, 2022
@pomber
Copy link
Contributor Author

pomber commented Apr 21, 2022

Fixed with #160

@pomber pomber closed this as completed Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant