facebook/regenerator

`module.exports` is not safe to read

zhaoyao91 opened this issue · 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.

Yup, Got the same issue. Using webpack^5 and im getting Cannot set property 'wrap' of undefined because module.exports is set only