Closed
Description
Initial checklist
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected packages and versions
Crepe
Link to runnable example
https://stackblitz.com/edit/github-gpc2xr
Steps to reproduce
To reproduce:
- Create a Vite-based React project.
- Create an editor with milkdown-crepe. Disable the CodeMirror.
- Try building the assets
vite build
, notice that all CodeMirror languages are still bundled in the output.
Expected behavior
The unused features should be dropped from final output. Or, create a more reasonable defaults by limiting the number of CodeMirror supported languages to popular ones such as HTML, CSS, JS, Python, C++, PHP, Java, SQL, etc instead of including Brainfuck?
Actual behavior
All language and CodeMirror specific code are still bundled together after running vite build
, under the dist/assets
folder.
Runtime
No response
OS
No response
Build and bundle tools
Remix