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

Fix NPM warnings #1329

Merged
merged 3 commits into from
Dec 29, 2024
Merged

Fix NPM warnings #1329

merged 3 commits into from
Dec 29, 2024

Conversation

garrettw
Copy link
Contributor

Fixes #1318

Involves a major version upgrade for ESLint which necessitates a config file format change.

@garrettw garrettw added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 29, 2024
@garrettw garrettw marked this pull request as ready for review December 29, 2024 12:44
@garrettw garrettw merged commit 1a547f1 into main Dec 29, 2024
7 checks passed
@garrettw garrettw deleted the npm-deps branch December 29, 2024 20:03
@melroy89
Copy link
Member

Actually this PR is causing regression on the federation page...

Before:

image

After:

image

@melroy89 melroy89 mentioned this pull request Dec 29, 2024
melroy89 added a commit that referenced this pull request Dec 29, 2024
@melroy89
Copy link
Member

PR reverted.

@garrettw
Copy link
Contributor Author

garrettw commented Dec 29, 2024

I found the problem. Turns out Webpack added a new API 2 years ago (well, almost 3 actually) to address this exact problem 😅

webpack/webpack#15446

Essentially, evaluating bootstrap.js as an ES module (which it is) fails because require is only defined in CJS mode — even though require.context only has meaning to Webpack, not Node itself.

@garrettw garrettw restored the npm-deps branch December 29, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPM/yarn warnings
2 participants