Skip to content

Fix WebpackStats json Reads and update some npm packages#408

Open
giabao wants to merge 9 commits into
scalacenter:mainfrom
giabao:master
Open

Fix WebpackStats json Reads and update some npm packages#408
giabao wants to merge 9 commits into
scalacenter:mainfrom
giabao:master

Conversation

@giabao

@giabao giabao commented Aug 17, 2021

Copy link
Copy Markdown

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