code widget is partially broken in ESM builds
Open
type: bug
- Dominant language
- JavaScript
- Stars
- 19.4k
- Forks
- 3.1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
Currently, the `code` widget does not work properly in ESM builds as it calls `require()` with a [dynamic argument](https://github.com/decaporg/decap-cms/blob/86d41d79b20583041570bce30b46835a36bcecf2/packages/decap-cms-widget-code/src/CodeControl.js#L196), hence the dynamic loading of language modes is broken.
I'll open a PR to propose a fix.
Contributor guide
Assessment
This issue has not been assessed yet.