You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
roblox-ts has their own way of linking files together through their runtime library. However, this can be an issue if you want to bundle all into one file. Ideally, a solution would parse the TS.import statement and TS.getModule statements inside of the import statement and resolve them to their actual paths for darklua to use.
The text was updated successfully, but these errors were encountered:
Hello! Could Roblox-typescript generate different file paths? I'm wondering if I want to introduce logic into darklua that seems very specific. I think it'd be wise to avoid having an implicit dependency to Roblox-typescript.
I'm not familiar with Roblox-typescript, but it already does some code-generation so it could just generate valid Luau paths?
It doesn't support the ability to do that yet, I did make a patch for it but it's pretty much useless since if you want to use other people's packages via npm, some of them upload the code with the TS.import already done. View an example here: https://www.npmjs.com/package/@flamework/core?activeTab=code
I understand this feature is specific to roblox-ts, but possibly a plugin system for darklua would be better.
roblox-ts has their own way of linking files together through their runtime library. However, this can be an issue if you want to bundle all into one file. Ideally, a solution would parse the
TS.import
statement andTS.getModule
statements inside of the import statement and resolve them to their actual paths for darklua to use.The text was updated successfully, but these errors were encountered: