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

Fixes rollup issues - Build failing with Node v20 and Microsoft PowerApps editor hanging #71

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

taneltm
Copy link
Member

@taneltm taneltm commented Apr 2, 2024

Fix: Build failing with Node v20

Bundling with Rollup failed with exit code 1.
Piping stdout and stderr, ignoring stdin, while executing Rollup doesn't seem to behave as expected.
Changed from piping to stdio: 'inherit' to fix the issue. This is an old option and should be more stable in any Node version.

Fix: Microsoft PowerApps editor hangs on loading screen

Rollup plugin injectProcessEnv was used while compiling token-signing-page-script.js.
That script is injected to the page when TokenSigning backwards compatibility is turned on.
It then included code which made the PowerApps editor think it's code was running in Node.js (more specifically in Linux or Mac) instead of the browser, and then crashed.
After the change, injectProcessEnv plugin is only used while compiling the code which runs in the WebExtension context and doesn't interfere with the website's code.

taneltm added 2 commits April 2, 2024 11:45
Signed-off-by: Tanel Metsar <taneltm@users.noreply.github.com>
WE2-907

Signed-off-by: Tanel Metsar <taneltm@users.noreply.github.com>
scripts/build-utils.mjs Show resolved Hide resolved
@mrts mrts merged commit f36f322 into web-eid:main Apr 5, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants