-
Notifications
You must be signed in to change notification settings - Fork 44
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
chore: update dependency webpack to ^4.0.0 #417
Merged
Merged
Conversation
This file contains 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
ZauberNerd
force-pushed
the
renovate/webpack-4.x
branch
from
February 27, 2018 12:26
7c184d2
to
ae1d9e6
Compare
PR has been editedAs this PR has been edited, Renovate will stop updating it in order to not cause any conflicts or other problems. If you wish to abandon your edits and have Renovate recreate this PR then you should rename this PR and then close it. |
3 tasks
ZauberNerd
force-pushed
the
renovate/webpack-4.x
branch
from
March 1, 2018 10:20
ae1d9e6
to
734cb39
Compare
ZauberNerd
force-pushed
the
renovate/webpack-4.x
branch
4 times, most recently
from
March 5, 2018 11:59
f34051a
to
8048da8
Compare
ZauberNerd
force-pushed
the
renovate/webpack-4.x
branch
2 times, most recently
from
March 12, 2018 15:52
c2cc650
to
d5e108d
Compare
ZauberNerd
force-pushed
the
renovate/webpack-4.x
branch
2 times, most recently
from
March 19, 2018 09:21
8029a50
to
2f5fa51
Compare
ZauberNerd
force-pushed
the
renovate/webpack-4.x
branch
2 times, most recently
from
March 26, 2018 13:37
4ef0ac6
to
41d54e7
Compare
ZauberNerd
force-pushed
the
renovate/webpack-4.x
branch
from
March 26, 2018 14:05
41d54e7
to
e21b37e
Compare
ZauberNerd
approved these changes
Mar 26, 2018
robin-drexler
approved these changes
Mar 26, 2018
fix configs, temporarily remove extract-text-webpack-plugin
temporarily disable CSS checks while waiting for ExtractTextPlugin to update
stop relying on custom loader, use the pattern introduced by webpack dev middleware
both are superseded by new express based asset handling
By importing css files using a query string, css modules can now be deactivated. ```js import './foo.css?global'; // will leave class names unchanged import styles from './bar.css'; // will rewrite class names ```
[id] seems to be the same as [name] and before this change the tests would fail because "vendor-vendor-a3feb.js" does not match /vendor-[0-9a-f]+/
ZauberNerd
force-pushed
the
renovate/webpack-4.x
branch
from
March 26, 2018 14:49
e21b37e
to
2e4df1e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This Pull Request updates dependency webpack from
^3.6.0
to^4.0.0
Note: This PR was created on a configured schedule ("after 10pm every weekday,every weekend,before 5am every weekday") and will not receive updates outside those times.
Release Notes
v4.0.0
Big changes
mode
or--mode
) between two modes now: production or developmentoptimization.*
(build your custom mode)process.env.NODE_ENV
are set to production or development (only in built code, not in config)none
mode which disables everythingimport()
always returns a namespace object. CommonJS modules are wrapped into the default exportimport()
NoEmitOnErrorsPlugin
->optimization.noEmitOnErrors
(on by default in production mode)ModuleConcatenationPlugin
->optimization.concatenateModules
(on by default in production mode)NamedModulesPlugin
->optimization.namedModules
(on by default in develoment mode)CommonsChunkPlugin
was removed ->optimization.splitChunks
,optimization.runtimeChunk
type: "javascript/auto"
when transforming JSON via loader to JSBig features
javascript/esm
handles ESM more strictly compared tojavascript/auto
:default
import, everything else (including namespace import) emit errors.mjs
modules arejavascript/esm
by defaultimport()
sideEffects: false
is now supported in package.jsonsideEffects
in package.json also supports glob expressions and arrays of glob expressionsoptimization.splitChunks
option was introducedDetails: https://gist.github.com/sokra/1522d586b8e5c0f5072d7565c2bee693
import()
occur in a dead branchwebpackInclude
andwebpackExclude
are supported by the magic comment forimport()
. They allow to filter files when using a dynamic expression.System.import()
now emits a warningRule.parser.system: true
System.import
withRule.parser.system: false
module.rules[].resolve
. It's merged with the global configuration.optimization.minimize
has been added to switch minimizing on/offoptimization.minimizer
has been added to configurate minimizers and optionswebpack-cli
to use the CLI--progress
) now displays plugin namesFeatures
module.rules[].type
options.dependencies
configurations now throw errorsideEffects
can be overriden via module.rulesoutput.hashFunction
can now be a Constructor to a custom hash functionoutput.globalObject
config option to allow to choose the global object reference in runtime exitCodetype
andrequest
.include
test
andexclude
to the eval source map devtool pluginfor of
instead offorEach
Map
andSet
instead of Objectsincludes
instead ofindexOf
text/javascript
andasync
as this are the default values (saves a few bytes)__webpack_require__
and argument is omitted.wasm
,.mjs
,.js
and.json
extensions in this orderoutput.pathinfo
is now on by default in develoment modeentry
defaults to./src
output.path
defaults to./dist
production
defaults when omiting themode
option<{parents}>
>{children}<
and={siblings}=
in StatsbuildAt
time to statsimport()
now emits a error instead of a warningdone
is now an async hookBugfixes
*/
output.chunkCallbackName
to the schema to allow configurating WebWorker templatemodule.id/loaded
now correctly bails out of Module Concatentation (Scope Hoisting)Watching.invalidate
-!
behavior with post loadersrun
andwatchRun
hooks forMultiCompiler
this
is now undefined in ESMvar
,const
orlet
javascript/dynamic
orjavascript/module
is used.buildMeta
of nulloriginal-fs
module for electron targetsplugins
Internal changes
plugin
calls withtap
calls (new plugin system)buildMeta.exportsType: "default"
for json modulesneo-async
instead ofasync
Removed features
module.loaders
loaderContext.options
Compilation.notCacheable
flagNoErrorsPlugin
Dependency.isEqualResource
NewWatchingPlugin
CommonsChunkPlugin
Breaking changes for plugins/loaders
plugin
method is backward-compatibleCompiler.hooks.xxx.tap(<plugin name>, fn)
nowChunk.chunks/parents/blocks
are no longer Arrays. A Set is used internally and there are methods to access it.Parser.scope.renames
andParser.scope.definitions
are no longer Objects/Arrays, but Map/Sets.StackedSetMap
(LevelDB-like datastructure) instead of ArraysCompiler.options
is no longer set while applying pluginsDependency.getReference()
may now return aweak
property.Dependency.weak
is now used by theDependency
base class and returned in the base impl ofgetReference()
Module
sContextModule
andresolveDependencies
Compiler.resolvers
intoCompiler.resolverFactory
accessible with pluginsDependency.isEqualResource
has been replaced withDependency.getResourceIdentifier
Template
are now staticoutputOptions
andrequestShortener
has been moved to this classModule.meta
has been replaced withModule.buildMeta
Module.buildInfo
andModule.factoryMeta
have been addedModule
have been moved into the new objectsloaderContext.rootContext
which points to thecontext
options. Loaders may use it to make stuff relative to the application root.this.hot
flag to loader context when HMR is enabledbuildMeta.harmony
has been replaced withbuildMeta.exportsType: "namespace
map/foreach
Chunks/Modules/Parents
methods are now deprecated/removedcreateGenerator
andgenerator
hooks for NormalModuleFactory to customize code generationv4.0.1
Features
version
property to webpack exportsBugfixes
import()
with CJS now gives correct exportsCommits
v4.0.0
518d1e0
replace js-beautify with prettier5238159
run prettier on existing codef32bd41
fix lintingb6396e7
update statsfde0183
Merge pull request #6081 from webpack/formating/prettier213226e
4.0.0v4.0.1
05174ae
Added version to webpack's export propertyd50fa68
add newlines8bf1574
CJS fake namespace object contains exports now9f9c3d1
Merge pull request #6583 from webpack/bugfix/import-cjse7aba18
fix incorrect optimization bailout messages8e592bf
Merge pull request #6575 from nveenjain/addVersion7fd5c6f
Merge pull request #6585 from webpack/bugfix/bailout-messages5044762
4.0.1This PR has been generated by Renovate Bot.