-
Notifications
You must be signed in to change notification settings - Fork 155
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
配置了main.build.rollupOptions.external选项资源依然被打包进了asar中 #621
Comments
同样的问题。。。想把sqlite3放到外置依赖,但是发现打完包仍然有 |
与external无关,可通过electron-builder的unasar去配置,详细仔细查阅electron-builder文档 |
|
解压后在nodemodule下任然可以看到是正常,因为解压时会将unpack还原,实际打包后asar是没有的,如果把unpack目录移除,此时是无法解压的,这是因为找不到unpack的文件来还原。 |
是的,理论上是这样的,但是我的最后截图是asar还没没解压的。你也可以做下测试看看。我感觉不是你插件的问题,比较偏向是electron-builder的问题。 |
Describe the bug
如上图,我配置了外部包,但是打包时候还是被打包进了asar中,有没有办法实现asar和app.asar.unpacked中避免存在重复的文件,减少整体大小
Electron-Vite Version
v32.1.2
Electron Version
2.3.0
Vite Version
5.3.1
Validations
The text was updated successfully, but these errors were encountered: