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 typo in __dirname and __filename options #7139

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

monkbroc
Copy link
Contributor

node.__filename and node.__dirname accept 'node-module' as an option, not 'node_module'

Using 'node-module' works, whereas using 'node_module' gives the following error:

[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.node.__filename should be one of these:
   false | true | "warn-mock" | "mock" | "node-module" | "eval-only"
   -> Include a polyfill for the '__filename' variable.

node.__filename and node.__dirname accept 'node-module' as an option, not 'node_module'
Copy link

vercel bot commented Feb 14, 2024

@monkbroc is attempting to deploy a commit to the Webpack Docs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

linux-foundation-easycla bot commented Feb 14, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: monkbroc / name: Julien Vanier (0dd1eed)

@alexander-akait alexander-akait merged commit a960640 into webpack:main Feb 15, 2024
6 of 7 checks passed
@alexander-akait
Copy link
Member

Thank you

@monkbroc monkbroc deleted the patch-1 branch February 15, 2024 11:51
@monkbroc
Copy link
Contributor Author

You're welcome

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