Documentation
Contribute
Vote
Blog
English
中文
한국어
☀️
Search
api
concepts
configuration
guides
loaders
migrate
plugins
ag-grid is proud to partner with webpack
Webpack 5
Webpack 4
Print Section
Migrate
To v5 from v4
Preparations
Upgrade webpack 4 and its plugins/loaders
Make sure your build has no errors or warnings
Make sure to use mode
Update outdated options
Test webpack 5 compatibility
Upgrade webpack to 5
Clean up configuration
Need to support an older browser like IE 11?
Cleanup the code
Run a single build and follow advice
Everything works?
It is not working?
Something missing in this guide?
Changes to internals
getOptions method for Loaders
To v4 from v3
Node.js v4
CLI
Update plugins
mode
Deprecated/Removed plugins
CommonsChunkPlugin
import() and CommonJS
json and loaders
module.loaders
To v2 or v3 from v1
resolve.root, resolve.fallback, resolve.modulesDirectories
resolve.extensions
resolve.*
module.loaders is now module.rules
Chaining loaders
Automatic -loader module name extension removed
json-loader is not required anymore
Loaders in configuration resolve relative to context
module.preLoaders and module.postLoaders were removed:
UglifyJsPlugin sourceMap
UglifyJsPlugin warnings
UglifyJsPlugin minimize loaders
DedupePlugin has been removed
BannerPlugin - breaking change
OccurrenceOrderPlugin is now on by default
ExtractTextWebpackPlugin - breaking change
ExtractTextPlugin.extract
new ExtractTextPlugin({options})
Full dynamic requires now fail by default
Using custom arguments in CLI and configuration
require.ensure and AMD require are asynchronous
Loader configuration is through options
What are options?
LoaderOptionsPlugin context
debug
Code Splitting with ES2015
Dynamic expressions
Mixing ES2015 with AMD and CommonJS
Hints
Template strings
Configuration Promise
Advanced loader matching
More CLI options
Loader changes
Cacheable
Complex options
Migrate
This section contains information about migrating from older versions of webpack to newer ones.
Edit this page
·
Print this page
Next »
To v5 from v4
Contributors
EugeneHlushko