You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
The shorthand for defining a generator method in an object is sometimes parsed as a function. In some cases, this raises an uncaught syntax error in the browser (because keywords such as yield, yield* cannot be used in functions), causing the site to fail in executing the bundled js file.
If the current behavior is a bug, please provide the steps to reproduce.
Bug report
What is the current behavior?
The shorthand for defining a generator method in an object is sometimes parsed as a function. In some cases, this raises an uncaught syntax error in the browser (because keywords such as
yield
,yield*
cannot be used in functions), causing the site to fail in executing the bundled js file.If the current behavior is a bug, please provide the steps to reproduce.
Input
src/index.js
:Output
dist/main.js
:What is the expected behavior?
The output should be,
Other relevant information:
webpack version: 4.12.0
Node.js version: v9.11.1
Operating System: Debian 9.4 stretch
Additional tools: -
This issue was moved from webpack/webpack#7566 by @sokra. Original issue was by @ningyuansg.
The text was updated successfully, but these errors were encountered: