-
Notifications
You must be signed in to change notification settings - Fork 207
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
leveraging baseURL in imports #789
Comments
Maybe, I'm not sure. Because MathJax is used in several settings (web packed files in browser and node, direct access in node, potentially in I'll have to check into it and see what I can figure out. |
Right, I figured there could be more side effects in those corners. If there's a way for me to test those things, let me know. |
I'm not able to get it to work. For example, if I change the import {split} from 'util/string.js'; this compiles, but the resulting js file contains ... require("util/string.js"); and so fails when the file is used in node or Can you be more specific about what you did that worked for you? I must be missing something important. |
No you were not. I was just very naive about this - I just meant that |
:-) If you come up with anything, let me know. I have had to put it aside for now. |
I often find it difficult to grok the nested
../
in import statements so I was wondering if there's interest in replacing./
and (nested)../
with paths using the baseURL from tsconfig.A limited test compiled fine but maybe there are technical reasons I didn't spot.
Happy to do the grunt work for this.
The text was updated successfully, but these errors were encountered: