We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is node.js's recommended method for determining the main module.
If you have a file like:
// index.js console.log(require.main === module);
$ node . true $ ncc run . # or build false
ncc should have the output file function the same as when using node.
ncc
node
The text was updated successfully, but these errors were encountered:
Can't this be fixed by simply doing this:
{ plugins: [ new webpack.DefinePlugin( { "require.main": "require.main", } ), ], }
Sorry, something went wrong.
require.main === module
No branches or pull requests
This is node.js's recommended method for determining the main module.
If you have a file like:
ncc
should have the output file function the same as when usingnode
.The text was updated successfully, but these errors were encountered: