You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vite plugin seems to preserve symlinks during packageAfterCopy hook #3632
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.4.0
Electron version
31.0.0
Operating system
Ubuntu 20.04
Last known working Electron Forge version
7.2.0
Expected behavior
All dependencies in package node_modules directory are copies and none of them is symlink.
Actual behavior
When using a monorepo setup where some app dependencies are linked into node_modules, these symlinks are copied without being dereferenced.
Steps to reproduce
Use npm workspaces with several npm modules.
Have your app depend on other modules from the same workspace.
Use @electron-forge/plugin-vite in your configuration.
After running electron-forge package, navigate to out/[your package directory]/node_modules and search for modules from your workspace. You will see that these are symlinks, not copies.
Activity
feat(plugin-vite): add derefSymlinks option to config (electron#3632)
feat(plugin-vite): add derefSymlinks option to config (electron#3632)
peterekjs commentedon Sep 27, 2024
No longer valid as v7.5.0 removed copy dependencies procedure so there is no symlink issue anymore