TiddlyWiki:master
← linonetwo:feat/prosemirror-wysiwyg-editor
opened 02:43PM - 23 Mar 25 UTC
This is based on https://github.com/TiddlyWiki/TiddlyWiki5/pull/8258 , since it …is not merged, commits here will be long.
Demo to show it is hard to manage dependency without a bundler like https://tiddly-gittly.github.io/Modern.TiddlyDev/
Script to crawl all JS dependency: https://github.com/TiddlyWiki/TiddlyWiki5/pull/8991#issuecomment-2746252285
But due to those `.cjs` file still `require` each other with names like `require('prosemirror-state')`, I have to keep its name `prosemirror-state` in `tiddlywiki.files`. Any solution for this? An idea is use regexp on `tiddlywiki.files` to auto replace `require("xxx` on prosemirror js files, to `require("$:/plugins/tiddlywiki/prosemirror/lib/xxx`.
And I don't quite understand `engine.js` `edit-codemirror.js` in the old codemirror plugin, so I make prosemirror a widget instead, is this OK?