Contents
Webpack 4 is available in experimental.
TODO
- Run tests (currently disabled because jest is not packaged).
- Package or embed @webassemblyjs/* to update to newer webpack releases.
Major changes
Now entry, output options on command line are mandatory and we get a warning if mode option is not specified. Check node-d3-request (commit)
production and development are new modes and each has its on default options. production mode does minify by default.
entry option in command line must have ./ prefix to directory path (--entry src/index.js will not work, but --entry ./src/index.js will work). See node-turbolinks commit.
node_modules/.cache should be removed in clean target.
node-grunt-webpack should be >= 3.1.
webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead. Check this patch.
Steps to build with webpack 4
clone repo from salsa (gbp clone --pristine-tar)
Update debian/control and change webpack dependency to >= 4~ to force building with webpack 4 (without this, package in unstable will be used).
Build on experimental. See sbuild#Enabling_experimental
Involved packages
Command used to find the list: reverse-depends -b webpack
Already compatible with webpack 4 (tested rebuild)
- node-handlebars
Ready in unstable
- node-rollup-plugin-alias (switched to rollup)
Ready in experimental
- node-d3-scale
- node-d3-request
- node-turbolinks
- node-vue-resource
- node-markdown-it-html5-embed
- node-timeago.js
- node-axios
- node-url-parse
- node-fuzzaldrin-plus
Ready in git
In progress
- node-d3-queue
In progress - need help
Not checked
- jekyll
- leaflet-image
- node-chai
- node-dagre-layout
- node-es6-promise
- node-js-beautify
- node-jschardet
- node-jsonld
- node-matrix-js-sdk
- node-mocha
- node-node-forge
- node-prop-types
- node-rdf-canonize
- node-react-audio-player
- node-source-map
- node-trust-json-document
- node-yarnpkg
- rainloop
- vue.js