-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
use webpack 5 #3963
use webpack 5 #3963
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/aiv2hark1 |
UpdatedSeems to be a bug according to mdx-js/mdx#443, it's advised to upgrade to v1. |
1e27083
to
ffb8db8
Compare
5fd6fdb
to
def2c4c
Compare
persistent caching fix configuration page
I added a few improvements. I also enabled persistent caching.
Ok you have a pretty fast computer. For me it takes 56s initially and 9.6s for recompilation. And 19s for an initial build with persistent cache available. You can get a performance profile with My results
Most notable:
|
Maybe we can remove ESLintWebpackPlugin so users can use whatever they have in their editors to fix those eslint warnings. For example, I would rather use auto formatting in VSCode than waiting ESLintWebpackPlugin to fix code warning as it's very slow compared to VSCode's. Also, we already have those lint jobs running in CI to ensure the code quality. |
I'll remove the plugin. In long term prettier would be the more solid choice, but that probably changes a lot code and is better as separate PR. |
It's check via separate step anyway
There was a PR #3109 to integrate prettier, not sure what's blocking it. |
I think always what linting is out of scope bundler and should be setup on CI and staged step 😄 |
Thanks |
closes #3961
@mdx-js/mdx
fromdevDependencies
since we don't use it directly anywhereuglifyjs-webpack-plugin
handlebars
(introduced in chore(deps) upgrade security vulnerable deps, upgrade travis node to … #3429 for security fix but there's no need now)ajv
(introduced in https://github.com/webpack/webpack.js.org/pull/980/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R102)whatwg-fetch
(introduced in 15e0494 and removed in a5566a1#diff-4343058ca05c3116fb4a825bcc162701)through2
(introduced in 7700a5f and the code was removed in https://github.com/webpack/webpack.js.org/pull/3143/files#diff-7a9e4cf384a87153a355502185296781)loader-utils
(introduced in 458141f and removed in 28c0855#diff-15ae716bc29a8465762f4edbb8856ad2)@mdx-js/loader
from0.15.7
to1.6.16
file-loader
from1.1.11
to6.1.0
mini-css-extract-plugin
from0.5.0
to0.11.1
css-loader
from0.28.11
to4.3.0
style-loader
from0.18.2
to1.2.1
postcss-loader
from2.1.6
to4.0.1
autoprefixer
from7.2.6
to9.8.6
sass-loader
from6.0.7
to10.0.2
remark-loader
from0.3.2
to1.0.0
copy-webpack-plugin
from4.5.2
to6.1.0
terser-webpack-plugin
from2.3.5
to4.1.0
mkdirp
from0.5.4
to1.0.4
@octokit/rest
from16.27.1
to18.0.5
(TODO: filter out all archived repos)alex
from5.1.0
to9.0.1
(would break the CI as the new version produces a lot of warnings)rimraft
from2.6.2
to3.0.2
webpack-merge
from4.2.2
to5.1.4
bundlesize
from0.17.1
to0.18.0
jest
from23.6.0
to26.4.2
gh-pages
from1.0.0
to3.1.0
lint-staged
from8.1.0
to10.3.0
cypress
from4.5.0
to5.1.0
husky
from1.0.0-rc.8
to4.3.0
sirv-cli
from0.1.2
to1.0.6
markdownlint
from0.11.0
to0.20.4
markdownlint-cli
from0.13.0
to0.23.2
directory-tree
from2.2.0
to^2.2.4
directory-tree-webpack-plugin
from0.3
to1.0.2
http-server
from0.10.0
to0.12.3
redirect-webpack-plugin
from0.1.1
to1.0.0
html-webpack-plugin
from3.2.0
to4.4.1
react-router-dom
from4.3.1
to5.2.0
react-tiny-popover
from3.4.2
to5.1.0
eslint-loader
from2.2.1
to4.0.2
front-matter
from2.3.0
to4.0.2
remark-slug
from5.1.2
to6.0.0
remark-autolink-headings
from5.2.1
to6.0.1
react-markdown
from4.2.2
to4.3.1
html-webpack-template
as it's not compatible withhtml-webpack-plugin
v4 which is required for webpack 5terser-webpack-plugin
might have memory leak (fixed in the latest version)offline-plugin
is incompatible use webpack 5 #3963 (comment) (replaced with workbox-webpack-plugin from google)Make the project fast
So far the development server takes about 12s to start while recompiling takes about 3s. It would be great if we can improve the development speed which saves a lot of time for the contributors.