-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
TypeScript import other modules don't work #10
Comments
As per my further investigation, it seems in order to fix this issue properly, we need to find a way to bundle the module with all its dependencies and then compile them into a single JS module. It's definitely possible but I am not that familiar with the TS bundlers and build. And moreover not so sure if @polyipseity would be interested in this to be done. In my opinion, if we make this plugin work fine with TypeScript modules, it will open a huge opportunity for Obsidian plugin developers as we would be able to write mini-scripts in TS to test some functionality, which potentially going to be extracted into a plugin eventually. Then we would need to migrate some missing functionality from the |
I am interested in it. There is no good way to intercept the |
As I couldn't use your plugin, I wrote an equivalent for your plugin that bypasses the mentioned issue. https://github.com/mnaoumov/obsidian-fix-require-modules/ |
Considering issue #7 fixed with my PR #8
!Scripts/test.ts
!Scripts/test2.ts
and invoke from the Developer Tools console
getting error
It seems it couldn't find the relative path module
The text was updated successfully, but these errors were encountered: