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

feat: expose dummy module.exports to the sandboxed preload scripts #39484

Merged
merged 1 commit into from Aug 22, 2023

Conversation

miniak
Copy link
Contributor

@miniak miniak commented Aug 13, 2023

Description of Change

Fixes #38161

Checklist

Release Notes

Notes: A dummy module.exports is now passed to the sandboxed preload scripts to improve compatibility with CommonJS modules.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 13, 2023
@miniak miniak self-assigned this Aug 13, 2023
@miniak miniak force-pushed the miniak/sandboxed-preload-module branch from 3440d2f to 85a7255 Compare August 14, 2023 09:16
@miniak miniak force-pushed the miniak/sandboxed-preload-module branch from 85a7255 to 0c0ae11 Compare August 14, 2023 09:18
@miniak miniak marked this pull request as ready for review August 14, 2023 09:18
@miniak miniak added semver/patch backwards-compatible bug fixes no-backport labels Aug 14, 2023
Copy link
Member

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@miniak
Copy link
Contributor Author

miniak commented Aug 15, 2023

@zcbenz is this semver patch or minor? I am not sure

@zcbenz
Copy link
Member

zcbenz commented Aug 15, 2023

I'm not sure neither, I'm fine making it semver patch.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Aug 15, 2023
@zcbenz zcbenz merged commit 3102a25 into main Aug 22, 2023
14 of 15 checks passed
@zcbenz zcbenz deleted the miniak/sandboxed-preload-module branch August 22, 2023 04:43
@release-clerk
Copy link

release-clerk bot commented Aug 22, 2023

Release Notes Persisted

Improve compatibility with CommonJS modules in sandboxed preload scripts by passing dummy module.exports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Allow commonjs2 scripts as sandboxed preload scripts
2 participants