Skip to content
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

Injection of esm shims fails when project type is module #627

Open
4 tasks done
jeffreymb opened this issue Oct 1, 2024 · 1 comment
Open
4 tasks done

Injection of esm shims fails when project type is module #627

jeffreymb opened this issue Oct 1, 2024 · 1 comment

Comments

@jeffreymb
Copy link

Describe the bug

When using this together with sentry (https://github.com/getsentry/sentry-electron), the shimming of __filename and __dirname fail.

This can be reproduced with this repo: https://github.com/jeffreymb/electron_vite_sentry

I initially submitted an issue to sentry: getsentry/sentry-electron#992

Electron-Vite Version

2.3.0

Electron Version

32.1.2

Vite Version

5.4.8

Validations

@jeffreymb jeffreymb changed the title Injection of esm shims failes when project type is module. Injection of esm shims fails when project type is module Oct 1, 2024
@steveoh
Copy link

steveoh commented Oct 17, 2024

This is affecting me also. Watching...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants