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

Fix WebpackStats json Reads and update some npm packages #408

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

giabao
Copy link

@giabao giabao commented Aug 17, 2021

Pls see the commit messages

…ajs-bundle

such as concat-with-sourcemaps, source-map-loader
webpack do NOT always return stats json with all the fields defined in
WebpackStats class [1].
In that case, we should set default value instead of failing:

[1] When compile scastie, I found that the Stats reported from webpack 5 do NOT
have the following fields: time, assets,  warnings.moduleName
webpack 5 stats json warnings field may contains item like:
```{
  "message": "asset size limit: The following ...",
  "stack": "AssetsOverSizeLimitWarning: ..."
}```
Note: Do NOT contain `moduleName` field
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

Successfully merging this pull request may close these issues.

1 participant