Skip to content

Example repo to demonstrate the issue with tree shaking with tiptap

License

Notifications You must be signed in to change notification settings

erickwilder/tiptap-treeshaking

Repository files navigation

tiptap-treeshaking

Example repository to reproduce the issue with tree shaking of tiptap and the highlight.js dependency.

No syntax highlight is used but the bundle still contains references to it. A better setup would just discard this dependency from the bundle as it is not used anywhere else.

Analyzing

npm install
npm run build

You should see something like the following screenshot:

Bundle analyzer report

Expected behavior: to not have highlight.js referenced in the production bundle.

About

Example repo to demonstrate the issue with tree shaking with tiptap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published