Skip to content

vite template can not generate asar #3423

@nnsay

Description

@nnsay

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • 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.1.0

Electron version

v27.1.0

Operating system

macOS 14.1.1 (23B81)

Last known working Electron Forge version

No response

Expected behavior

After yarn package, I can find the app.asar file in XXX.app/Contents/Resources

Actual behavior

app.asar is gone and the app folder exists but the folder include everything, for example the whole node_modules
image

Steps to reproduce

npm init electron-app@latest demo -- --template=vite-typescript
cd demo
yarn package
ls out/demo-darwin-arm64/demo.app/Contents/Resources/

Additional information

If I create code base by the webpack-typescript template, it is ok.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions