Support compatibility with RequireJS
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 1.3k
- Avg merge
- 14h 37m
- Merged PRs (30d)
- 7
Description
I want to use [RequireJS](https://requirejs.org/docs/api.html#cjsmodule) in my project so I can modularize my HTML/Javascript projects and allow my colleagues to view them by clicking on a file. (ES6 modules are not possible to use because of CORS with `file://` URLs)
KaTeX appears to be incompatible with RequireJS because it assumes certain semantics about "define" and "require" which appear to be from CommonJS.
Is there a way to make KaTeX compatible with RequireJS?
Contributor guide
Research direction
No source file or test is named in the issue. Start by reproducing KaTeX loading through RequireJS from a file:// URL, then trace the module-loading entry points involved; done means KaTeX loads and renders correctly under RequireJS without breaking its existing loading modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100