Skip to content
Discussion options

You must be logged in to vote

Nice to see that you found a solution. All the themes being included in the bundle as separate files is intended. Only the themes you need will get dynamically imported when you create an editor. So while the total bundle might've been 60kB, less than 30kB of it would've been loaded in the browser, making it a non-issue.

Your solution did make the main JS chunk slightly smaller though since it removed most entries in the import map for the themes.

If you wan't full control over your bundle, look at advanced usage. The example given there creates an editor equivalent to the full setup, but also with copyButton().

Also, since the package contains a lot of ES2020 syntax, you can decrease you…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jonpyt
Comment options

@thdoan
Comment options

@jonpyt
Comment options

@thdoan
Comment options

@jonpyt
Comment options

Answer selected by thdoan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants