v4.0.0
·
285 commits
to master
since this release
⚠ BREAKING CHANGES
- minimum required
Node.js
version is10.13.0
- minimum required
webpack
version is4.27.0
- the
esModule
option istrue
by default - default value of the
sourceMap
option depends on thedevtool
option icss
plugin disable by default, you need to setup themodules
option to enable it- the
modules
option istrue
by default for all files matching/\.module\.\w+$/i.test(filename)
regular expression,module.auto
istrue
by default - the
modules.context
option was renamed to themodules.localIdentContext
option - default the
modules.localIdentContext
value iscompiler.context
for themodule.getLocalIdent
option - the
modules.hashPrefix
option was renamed to themodules.localIdentHashPrefix
option - the
localsConvention
option was moved and renamed to themodules.exportLocalsConvention
option - the
getLocalIndent
option should be alwaysFunction
and should always returnString
value - the
onlyLocals
option was moved and renamed to themodules.exportOnlyLocals
option - function arguments of the
import
option were changed, it is nowfunciton(url, media, resourcePath) {}
- inline syntax was changed, please write
~
before the file request, i.e. rewriteurl(~!!loader!package/img.png)
tourl(!!loader!~package/img.png)
Features
@value
supports importingurl()
(#1126) (7f49a0a)- improve
url()
resolving algorithm (bc19ddd) - named export for locals (#1108) (d139ec1)
- respected the
style
field from package.json (#1099) (edf5347) - support
file:
protocol (5604205) - support server relative URLs
Bug Fixes
- resolution algorithm, you don't need
~
inside packages innode_modules
(76f1480)