Support module resolution which preserves symlinks (–preserve-symlink option in Node >= 6.3.0)

I’m submitting a feature request

I think it would be useful (even if not have this the default behaviour) to be able to preserve symlinks when doing module resolution.

This should function the same as in Node >= 6.3.0 with --preserve-symlinks enabled. To quote docs on that:

The –preserve-symlinks command line flag instructs Node.js to use the symlink path for modules as opposed to the real path.

More info in Node.js docs.

Author: Fantashit

1 thought on “Support module resolution which preserves symlinks (–preserve-symlink option in Node >= 6.3.0)

  1. @sokra Could we get a backport to enhanced-resolve@~0.9?

    create-react-app depends on webpack@1.13.2 which depends on enhanced-resolve@~0.9 and when installing with pnpm to a global symlinked store (the fastest way to install deps currently and what yarn may support eventually), it does not work.


    Submitted the issue to webpack/enhanced-resolve#45

Comments are closed.