Skip to content
New issue

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

CoreJS minification syntax error #375

Open
asadkn opened this issue Jul 29, 2021 · 1 comment
Open

CoreJS minification syntax error #375

asadkn opened this issue Jul 29, 2021 · 1 comment

Comments

@asadkn
Copy link

asadkn commented Jul 29, 2021

Using the dev-master release, when minifying the CoreJS that's included with WordPress: https://unpkg.com/core-js-bundle@3.11.0/index.js there appears to be a syntax error around here:
return module.exports}__webpack_require__.m=modules;

The correct syntax would be:
return module.exports};__webpack_require__.m=modules;

EDIT: This doesn't happen in newer versions of webpack where it has changed to function __webpack_require__(moduleId) instead of var __webpack_require__ = function (moduleId) in the preceeding function that causes the issue.

A similar issue is also reported here: #360

Perhaps the minifying of webpack runtime could be skipped altogether considering how messy it is.

@nise
Copy link

nise commented Sep 7, 2022

See solution approach in #360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants