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

Upgrade webpack v4 #213

Merged
merged 5 commits into from
Nov 30, 2018
Merged

Upgrade webpack v4 #213

merged 5 commits into from
Nov 30, 2018

Conversation

mwistrand
Copy link
Contributor

@mwistrand mwistrand commented Nov 21, 2018

Type: feature

The following has been addressed in the PR:

  • There is a related issue
  • All code has been formatted with prettier
  • Unit or Functional tests are included in the PR

Description:

Blocked by dojo/webpack-contrib#93 and should not be merged until package.json is updated with the next webpack-contrib release. Verified on both macOS and Windows with multiple test applications.

Resolves #68

package.json Outdated
"webpack-dev-middleware": "3.4.0",
"webpack-hot-middleware": "2.24.3",
"webpack-manifest-plugin": "2.0.4",
"webpack-mild-compile": "2.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be in 3.0.0 range otherwise webpack complains with a deprecation warning

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.3.1 was just released last night, which is the first v3 version that doesn't crash or hang for all eternity. I'll push that change in a bit.

- Temporarily add local, upgraded `@dojo/webpack-contrib`
- Temporarily update package.json for CI
- Replace ExtractTextPlugin with MiniCssExtractPlugin, but pin to 0.4.2
  until shellscape/webpack-manifest-plugin#167
  is resolved
- Replace removed CommonsChunkPlugin with `optimize.splitChunks`
  configuration option
- Remove plugins provided by `mode` configuration option:
  NamedChunksPlugin, NamedModulesPlugin, and DefinePlugin
- Use terser-webpack-plugin over uglifyjs-webpack-plugin-terser
- Upgrade to [email protected]
- Add runtime chunk, disable default chunk, and force modules into main
  chunk
- Filter css order warnings
- Move optimize-css-assets-webpack-plugin to dist config
- Update tapable typings
@codecov
Copy link

codecov bot commented Nov 30, 2018

Codecov Report

Merging #213 into master will decrease coverage by 0.27%.
The diff coverage is 41.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
- Coverage    54.2%   53.93%   -0.28%     
==========================================
  Files          10       10              
  Lines         594      597       +3     
  Branches      145      144       -1     
==========================================
  Hits          322      322              
- Misses        272      275       +3
Impacted Files Coverage Δ
src/dev.config.ts 20% <0%> (-2.23%) ⬇️
src/base.test.config.ts 12% <0%> (-2.29%) ⬇️
src/main.ts 92.17% <100%> (+0.08%) ⬆️
src/dist.config.ts 32.25% <55.55%> (+0.05%) ⬆️
src/unit.config.ts 30% <60%> (-1.58%) ⬇️
src/functional.config.ts 30% <60%> (-1.58%) ⬇️
src/base.config.ts 22.36% <61.53%> (-0.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 537d7f4...d0fae95. Read the comment docs.

package.json Outdated
"postcss-preset-env": "5.3.0",
"slash": "1.0.0",
"source-map-loader-cli": "0.0.1",
"strip-ansi": "3.0.1",
"style-loader": "0.19.0",
"ts-loader": "3.1.1",
"terser-webpack-plugin": "^1.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we fix this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that.

@mwistrand mwistrand merged commit b289729 into dojo:master Nov 30, 2018
@mwistrand mwistrand deleted the upgrade-webpack-v4 branch August 7, 2019 13:16
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.

Upgrade to Webpack 4
3 participants