X Tutup
Skip to content

Resolve node_modules symlinks as node_modules paths#1241

Merged
Perryvw merged 1 commit intomasterfrom
resolve-symlinks
Mar 21, 2022
Merged

Resolve node_modules symlinks as node_modules paths#1241
Perryvw merged 1 commit intomasterfrom
resolve-symlinks

Conversation

@Perryvw
Copy link
Member

@Perryvw Perryvw commented Mar 20, 2022

So apparently the resolver by default resolves symlinks to their original paths. This breaks how we handle node_modules (emit lua to lua_modules), because we can no longer tell the file came from node_modules.

Some examples where this could be annoying:

  • Locally testing npm packages you use npm link to link one local package into the node_modules directory of another
  • Using npm workspaces to split a workspace into multiple packages, symlinked to each other.

I think this change should fix these use cases without breaking others, we can just try it out and see if it has any unexpected side effects.

@Perryvw Perryvw requested review from lolleko and tomblind March 20, 2022 20:04
@Perryvw Perryvw merged commit eaa6371 into master Mar 21, 2022
@Perryvw Perryvw deleted the resolve-symlinks branch March 21, 2022 20:10
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

Successfully merging this pull request may close these issues.

2 participants

X Tutup