codex-team / codex-team/editor.js

v2.27.0 is failing to bundle as an ESM in jsdelivr

Open
#2,361 3 comments 9 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

A few days ago my use of editor.js stopped working. I think it is related to the 2.27.0 release. I rely on the jsdelivr CDN as the source for editor.js. That CDN is correctly building v2.26.5 but is failing with v2.27.0. Also, the onset of my symptoms coincide with the release date for v2.27.0.

Steps to reproduce:
Visit https://cdn.jsdelivr.net/npm/@editorjs/editorjs@2.27.0/+esm
Notice the message "Failed to bundle using Rollup v2.79.1."

Expected behavior:
jsdelivr is able to build v2.26.5
Visit https://cdn.jsdelivr.net/npm/@editorjs/editorjs@2.26.5/+esm

Screenshots:
```
/**
* Failed to bundle using Rollup v2.79.1.
* If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr
*/

throw new Error('Failed to bundle using Rollup v2.79.1. If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr');
```

Device, Browser, OS:
MacBook Pro 2020, Firefox 112.0.2, MacOS 13.3.1 (22E261)

Editor.js version: 2.27.0

Plugins you use with their versions:
Here's how I import the two plugins I use, but my code doesn't get to these lines because it fails when importing editor.js
```
import SimpleImage from "https://cdn.jsdelivr.net/npm/@editorjs/simple-image/+esm"
import LinkTool from "https://cdn.jsdelivr.net/npm/@editorjs/link/+esm"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.