Bug report
What is the current behavior?
A module like:
when running under the module: true mode will not export anything. Ideally module.exports should be treated as the default export surely.
In addition, a module like:
exports.valid = true;
exports['in valid'] = false;
would be expected to at least export export const valid = true but this does not seem to be the case.
If the current behavior is a bug, please provide the steps to reproduce.
A comprehensive replication can be provided if needed.
What is the expected behavior?
Ideally, a best effort can be made to export named exports as appropriate based on user intent.
Other relevant information:
webpack version: 5.36.2
Bug report
What is the current behavior?
A module like:
when running under the
module: truemode will not export anything. Ideallymodule.exportsshould be treated as thedefaultexport surely.In addition, a module like:
would be expected to at least export
export const valid = truebut this does not seem to be the case.If the current behavior is a bug, please provide the steps to reproduce.
A comprehensive replication can be provided if needed.
What is the expected behavior?
Ideally, a best effort can be made to export named exports as appropriate based on user intent.
Other relevant information:
webpack version: 5.36.2