fix: backward-compat for ESM etherpad#69
Conversation
- Drop trailing slash on ep_etherpad-lite/node/eejs/ require Backward-compatible with current CJS etherpad release; also compatible with the upcoming ESM etherpad branch which has stricter exports map resolution.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Review Summary by QodoRemove trailing slashes from eejs require paths
WalkthroughsDescription• Remove trailing slashes from eejs require paths • Ensures compatibility with ESM etherpad exports map • Maintains backward compatibility with current CJS release • Bump version to 0.0.26 Diagramflowchart LR
A["require paths with trailing slashes"] -- "remove trailing slash" --> B["require paths without trailing slash"]
B -- "compatible with" --> C["ESM etherpad exports map"]
B -- "compatible with" --> D["Current CJS etherpad"]
File Changes1. exportHTML.js
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
This PR makes the plugin backward-compatible with the upcoming ESM etherpad branch (ether/etherpad#7605).
Change: Remove trailing slash from
require("ep_etherpad-lite/node/eejs/")→require("ep_etherpad-lite/node/eejs")The trailing-slash form breaks under Node's strict ESM exports map resolution. This change is backward-compatible with the current CJS etherpad release.