-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type Error after trying to bundle marp-core with rolllup #259
Comments
Sorry, I realized that I created this issue in the wrong repo. |
No worry; I'll move this to Marp Core 🚚 |
Marp team is bundling Marp Core through webpack in sub-projects like marp-vscode, and it works well. may have to look into bundling issue on rollup. |
Ahh, interesting!
|
Another Update: It seems that I can add the mathjax module as dynamicRequireTarget, which fixes the circular dependency problem
The problem is now, that the imports do not seem to be working. I will play around with these values a bit, maybe I can make it work. BTW: Thank you so much for looking into it that fast! <3 |
Soo, i've toyed with this a lot, but unfortunately, I couldn't get it to work :/ The problem really seems to be that marp/mathJax contains these circular imports. My solution would be to use the CLI Version of MARP, but this might be slower and And in theory I would have to regenerate it on each change in the source markdown, Do you have any idea, how we could solve this? |
Having circular dependencies is potentially a bug of MathJax so the best for everyone may become the thing that MathJax was patched to fix that. And fortunately, it seems to be in progress at mathjax/MathJax-src#741. |
Now obsidian-sample-plugin is using esbuild instead of rollup, and it can bundle Marp Core straightly. Marp is available in Obsidian 👇 It is good for developers to know the thing that rollup cannot bundle Marp Core due to MathJax's circular dependency. We close this because should keep cleaning up the issue tracker to focus Marp improvements. |
Thank you very much for looking into it, i unfortunately haven't came around to implement the new things yet. |
Hi Marp Team,
I currently try to implement your marp-core as a plugin for Obsidian.
My Repo is here: https://github.com/bjesuiter/obsidian-marp-presentations (Only for reference)
The problem:
When my Plugin file loads, it throws this error
Here is a screenshot of the error
My Assumption:
The error comes from something missing in my rollup pipeline, so that bundling breaks.
Reason: it works before the latest commit:
My Commits
My Latest Commit
Since I don't use my own markdown currently, it can't be an error with that.
Thank you for reading my problem and hopefully you can help me solve it, since I'm relatively lost here :/
The text was updated successfully, but these errors were encountered: