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

Suppress a warning in rollup due to the use of #8960

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Sep 19, 2024

This PR adds a workaround to suppress a warning thrown by rollup. The warning in question is documented here https://rollupjs.org/guide/en/#error-this-is-undefined

The way it's fixed here is the same approach we used in the rest of the projects where rollup is used:

Testing steps

In main branch, when running make dev you should see the assets output include a couple lines like Rollup warning: [...]: The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten (https://rollupjs.org/troubleshooting/#error-this-is-undefined)

In this branch, those warnings should not be printed.

@acelaya acelaya merged commit 0a183d8 into main Sep 19, 2024
9 checks passed
@acelaya acelaya deleted the fix-rollup-warning branch September 19, 2024 09:27
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