Skip to content
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

Auto-import requiring based on sourcemap distance instead of filepath distance #718

Open
Ketasaja opened this issue Jul 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Ketasaja
Copy link
Contributor

Ketasaja commented Jul 25, 2024

Consider a directory structure like this, assuming global_code.server and lobby.code.server would both synchronize as folders in ServerScriptService:

{
	global_code: {
		server: {
			module
		}
	}
	lobby: {
		code: {
			client: {
				module
			}
			server: {
				source
			}
		}
	}
}

If source auto-imports module, it will import client module which is closer on the filesystem. I think it should instead prefer the server module closer in the sourcemap when available, or that there should be an option for this behavior.

@JohnnyMorganz JohnnyMorganz added the enhancement New feature or request label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants