Editor increases build times significantly

By using the Atlaskit Editor (import {Editor} from "@atlaskit/editor-core";) our build time increased by a factor of 10! We currently using version 167.0.2.

I know Prosemirror is a big package, but it also has a nice component based structure. To me it seems the Atlaskit Editor brings ALL components, although they are not all needed.

Any thoughts how to speed up our builds?

Furthermore I noticed compile errors like this

Compiled with warnings.

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

Hi Paul

I suspect this is more a question for the teams behind atlaskit than just Forge.

I’ll ask the appropriate internal teams about this and let you know.

Reducing bundle size of editor-core is actively being improved on our side. I don’t believe there is much that can be done on your side.

Regarding the pdfjs-dist would you be able to add the following resolution to your package.json

"resolutions": {
  "pdfjs-dist": "2.4.456"
1 Like