-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
feat(v2): Webpack 5, PostCSS 8 #4089
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
Merged
Merged
Changes from all commits
Commits
Show all changes
157 commits
Select commit
Hold shift + click to select a range
849d9c0
Initial webpack 5 work
RDIL 24c3817
It works on my machine (lol)
RDIL 7b2f923
Committing a bit more work
RDIL 9bfe9fb
It works - sorta
RDIL 89e6cb3
Merge branch 'master' into webpack-5
RDIL 82b7a4c
Update packages/docusaurus/package.json
RDIL 09aaaeb
at least fix prettier /shrug
RDIL 78dc506
making more progress. build should work now, css stuff is still a bit…
RDIL 3ac46d3
Terser things
RDIL 833fe54
Merge branch 'master' into webpack-5
RDIL 31c6185
Working on things
RDIL 5970897
Vendor webpack
RDIL 8abd018
Repair chunks, and tests
RDIL 41e4d87
Rerun prettier
RDIL 97d4dad
Re-add client prefetching
RDIL 90c9894
Update snapshots
RDIL 90b1e22
Update snapshots
RDIL e82f654
I hope this works
RDIL 0c73485
Remove redundant dev server code
RDIL 5879eb7
relock
RDIL c38836b
Trying to reduce memory usage and fix things
RDIL f63cf76
Dead code elim
RDIL 00a5147
Search bar works!!!
RDIL 7d52dfc
Prefetching should work again
RDIL 741d100
Merge branch 'master' into webpack-5
RDIL fc9138c
lock
RDIL 67e4233
ts issue
RDIL d1907ac
Repair snapshot
RDIL 51d9641
Run prettier
RDIL cfdac27
Fix the CI for now
RDIL a8e96ba
fix lint-prettier
RDIL 127840b
clean-css works, now for the other one
RDIL f64b97d
Merge branch 'webpack-5' of https://github.com/RDIL/docusaurus into w…
RDIL de50f0e
Merge branch 'master' into webpack-5
RDIL 78e18f4
Fix lockfile
RDIL 7fc121a
Fixes prettier
RDIL d5b4309
Other css minification works!!!
RDIL c51c572
Add clean-css options, fix webpack versions
RDIL 275c646
Merge branch 'master' into webpack-5
RDIL fab025e
Fix tests and several of the webpack loaders
RDIL 66e7257
Re-add support for simple css minifier
RDIL c192a93
Merge branch 'master' into webpack-5
RDIL 7ee130a
Update other related dependencies
RDIL fea4fbd
Merge branch 'master' into webpack-5
RDIL 53cc534
Fix lockfile
RDIL b965ec2
Dev server fixups
RDIL c9caf4c
Simplify css things
RDIL ce04544
Update webpack, try with postcss 7
RDIL e46832c
Merge branch 'master' into webpack-5
RDIL d726233
Other cssnano repairs
RDIL 9a9c69d
Merge branch 'master' into webpack-5
RDIL 2f84c91
fix lockfile
RDIL 7603a90
Clean up the babel preset
RDIL 7844680
Merge branch 'master' into webpack-5
RDIL 1281d67
Fix lockfile
RDIL d929c58
Bump RL SSR version
RDIL e3c9008
Merge branch 'master' into webpack-5
RDIL 047aa97
Merge branch 'master' into webpack-5
RDIL 0506b13
Fix the build errors
RDIL 0bfd87e
Merge branch 'master' into webpack-5
RDIL 1c8d6a2
Lockfile fix
RDIL e69486d
It works again
RDIL 33b1f2d
webpack 5 should close compiler after run
slorber c481041
add proper webpack5 persistent caching config
slorber ba009d3
Merge branch 'master' into webpack-5
slorber bf142b2
upgrade webpack deps again
slorber be961ea
Merge branch 'master' into webpack-5
slorber 907393e
reduce build perf timeouts to avoid build time regressions
slorber 9392f0a
test if incremental build can run on netlify
slorber 27e5f17
netlify test
slorber 68d7cbf
netlify test
slorber 483efe7
netlify test
slorber 25c5b5c
netlify test
slorber 1db5381
netlify test
slorber 2c84f3e
netlify test
slorber 8e2cc76
netlify test
slorber db47fca
netlify test
slorber ba4bc60
netlify test
slorber 1d2810a
netlify test
slorber cb769a2
netlify test
slorber 57139aa
netlify test
slorber eb00350
netlify test
slorber 1c22b52
netlify test
slorber 94ff214
netlify test
slorber d52c82f
test
slorber b6cb026
test
slorber f3445a3
test
slorber 7f8e812
test
slorber eaa6a47
netlify test
slorber 2747940
netlify test
slorber 97ad660
netlify test
slorber 99974a4
netlify test
slorber 670bda9
netlify test
slorber 45694f0
netlify test
slorber 77ab6b0
netlify test
slorber 6194907
netlify test
slorber 83e4758
netlify test
slorber 594d82f
netlify test
slorber 0f41a4b
fix existsSync() calls
slorber 1dacd0b
replace @ts-nocheck by a temporary Webpack type
slorber bba7827
replace @ts-nocheck by a temporary Webpack type
slorber 1254ba8
replace @ts-nocheck by a temporary Webpack type
slorber eab2b5b
migrate existing stats.warningsFilter to config.ignoreWarnings
slorber 040ae94
remove stats from postBuild lifecycle data doc, as it is likely unuse…
slorber 87f8d95
improve build.ts TS issues + move some sync code to async
slorber e51ce39
cleanup TS of start.ts
slorber a67220c
fix TS error
slorber a88ab06
fix TS issues
slorber a38617f
fix TS issues
slorber 7fc0318
fix ts error
slorber 89d4145
netlify test
slorber 31ce3ba
netlify test
slorber 0c28adf
netlify test
slorber b69618b
netlify test
slorber 12e6bae
netlify test
slorber 783f0e7
script cleanup
slorber c9bc610
script cleanup
slorber 42f9026
re-enable @typescript-eslint/ban-ts-comment
slorber 267f3e3
Deprecate getCacheLoader / getBabelLoader but keep retrocompatibility
slorber 1871db8
useless TS
slorber aed7d60
fix and comment gca(chunkName) prefetching function
slorber 915021f
remove deprecated mainTemplate.requireFn
slorber 05cf1df
temporarily use react-loadable-ssr-addon-v5-slorber until PR merged: …
slorber abc6bbf
comment unsafeCache option
slorber 18bac95
add explicit and more precise webpack targets
slorber 42be951
splitChunks, use new type: "css/mini-extract" as it seems recommended…
slorber 525e490
Merge branch 'master' into webpack-5
slorber 0bb10d2
webpack error handling:
slorber c12041e
fix webpack5 warnings for evalSourceMapMiddleware.js
slorber 3e773ba
typo
slorber 4bc8f97
rename webpackHotDevClient
slorber aa137b4
make all modifications of react-dev-utils explicit with a comment
slorber 48c03ba
revert LogPlugin adapter
slorber 3cc6dc8
loader-utils update
slorber a34b514
add useful share cache comment
slorber ff391b7
add useful comments regarding the null-loader used in SSR for css files
slorber 9c71697
upgrade webpack-merge in a retrocompatible way
slorber a142783
use MiniCssExtractPlugin.emit false as recommended
slorber ed4e0cd
use @docusaurus/responsive-loader
slorber f0524c0
revert MiniCssExtractPlugin esModule: false change
slorber a4bb878
add link to PR for custom CleanWebpackPlugin
slorber 0f91f4a
pwa: add fallback to env variable or webpack 5 fails to build
slorber cb5550f
Merge branch 'master' into webpack-5
slorber 81bcc36
upgrade to CssMinimizerPlugin 2.0
slorber 68e8b8b
only build en locale for windows tests
slorber 91f0c12
line breaks between errors
slorber bf5642d
add useful comment
slorber 972cff4
Fix e2e tests with Yarn2 not finding new init template dependencies
slorber b305145
fix bad import
slorber e1b798a
disable browserslist target as webpack already tries to use browserli…
slorber a3c784f
webpack5 TS fixes
slorber 351f1c5
fix getMinimizer order (even if it does not work yet)
slorber 38ad2bf
update postcss to v8, fix cssnano minimizer errors
slorber adf2a52
Merge branch 'master' into webpack-5
slorber cafe2b4
add NavbarItem position to types (useful for QuestDB site upgrade to …
slorber 46b1b82
Merge branch 'master' into webpack-5
slorber 867d034
add webpack cache env variable to reduce risk of webpack 5 adoption
slorber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.