Skip to content

Conversation

@giabao
Copy link

@giabao giabao commented Aug 17, 2021

Pls see the commit messages

giabao added 9 commits August 12, 2021 18:35
…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