Skip to content

sourcemap.json for custom(none rojo based) projects #320

Answered by JohnnyMorganz
mundusnine asked this question in Q&A
Discussion options

You must be logged in to vote

I assume this is for a non-Roblox project when you say "added to my runtime with my native code"?

If so, ignore the Rojo, default.project.json, and sourcemap part. They are only for Roblox projects (to allow resolving stuff like require(game.ReplicatedStorage.Module).

For standalone Luau projects, you should just load the definitions files directly in VSCode through the setting, like you have already done so. Requires are then done by string (and can be configured to either be relative to current file or workspace root).

Is there a reason you are looking at sourcemap rather than the VSCode setting?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mundusnine
Comment options

@JohnnyMorganz
Comment options

Answer selected by mundusnine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants