ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.5k stars 3.7k forks source link

Failed to bundle using Rollup v2.79.1 #17257

Open aramhovsepyan opened 1 week ago

aramhovsepyan commented 1 week ago

Many ckeditor plugins in JSDeliver contain the following instead of the plugin itself `/**

Thanks.

filipsobol commented 6 days ago

Hi @aramhovsepyan. Can you provide a link to some examples?

aramhovsepyan commented 6 days ago

Hi Filip, Thanks for the prompt response. Sure, here is the link: https://cdn.jsdelivr.net/npm/@ckeditor/ckeditor5-page-break@43.2.0/+esm Sorry if the bug is unrelated to CKEditor. Regards, Aram.

filipsobol commented 6 days ago

The file you are trying to access is for the legacy installation method, which requires a custom webpack setup. This installation method is still supported, but on the deprecation path.

In v42.0.0 we introduced a new installation methods (NIM), which work with any bundler and without any CKEditor-specific requirements. Please refer to the NIM migration guide for more information.

You can access the browser build, which includes the core and all open-source packages here. If you prefer to use individual plugins, you can do so by adding the dist/index.js to the URL (page-break example). However, using individual plugins from CDN is more tricky to setup and requires using an importmap.