regenerator icon indicating copy to clipboard operation
regenerator copied to clipboard

`module.exports` is not safe to read

Open zhaoyao91 opened this issue 3 years ago • 1 comments

see https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js#L732

it assume module.exports is an object. howerver, with current webpack 5, the module is an object while module.exports is only an setter, not an object at all, which lead to the parameter to be empty.

zhaoyao91 avatar Jan 28 '21 18:01 zhaoyao91