`preserveSymlinks: 'auto'`
jun-sheaf opened this issue · 3 comments
Feature Use Case
We use a custom build system that uses symlinks for node module resolution, but not for relative module resolution.
Feature Proposal
Symlinks seem to be either always follow or never follow (corresponding to preserveSymlinks: false
and preserveSymlinks: true
). A more robust approach would be to try and resolve without following the symlink and then following the symlink if nothing is found.
Good idea. If we do this, we should also update @rollup/plugin-node-resolve
accordingly, otherwise it will likely not work for many people. PRs welcome!
@lukastaegert WDYT about using import-meta-resolve
for the resolution algorithm rather than trying to program it ourselves?
We've decided to just build our own resolver that better fits our requirements: https://github.com/mathematic-inc/rollup-plugin-import-meta-resolve
Please feel free to close this issue and associated PR.