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

Use same import path spec as node #181

Open
jeroen opened this issue Oct 6, 2024 · 0 comments
Open

Use same import path spec as node #181

jeroen opened this issue Oct 6, 2024 · 0 comments

Comments

@jeroen
Copy link
Owner

jeroen commented Oct 6, 2024

Currently we always assume the import statements are always paths relative to the working dir. However in the case of submodules, the import statement is relative to the parent module path.

Also if a path does not start with ./ it is probably under node_modules but not sure if we want to support that

Here are some details on path resolving: https://github.com/browserify/browserify?tab=readme-ov-file#example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant