-
Couldn't load subscription status.
- Fork 1
Update webpack to the latest version 🚀 #15
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
base: master
Are you sure you want to change the base?
Conversation
Version 4.0.1 just got published.Update to this version instead 🚀 Release Notesv4.0.1Features
Bugfixes
CommitsThe new version differs by 8 commits.
See the full diff |
Version 4.1.0 just got published.Update to this version instead 🚀 Release Notesv4.1.0Features
Bugfixes
CommitsThe new version differs by 73 commits.
There are 73 commits in total. See the full diff |
Version 4.1.1 just got published.Update to this version instead 🚀 Release Notesv4.1.1Features
Bugfixes
CommitsThe new version differs by 27 commits.
There are 27 commits in total. See the full diff |
Version 4.2.0 just got published.Update to this version instead 🚀 Release Notesv4.2.0Features
Bugfixes
CommitsThe new version differs by 74 commits.
There are 74 commits in total. See the full diff |
Version 4.3.0 just got published.Update to this version instead 🚀 Release Notesv4.3.0Features
Bugfixes
CommitsThe new version differs by 24 commits.
There are 24 commits in total. See the full diff |
Version 4.4.0 just got published.Update to this version instead 🚀 Release Notesv4.4.0Features
Bugfixes
Performance
CommitsThe new version differs by 72 commits.
There are 72 commits in total. See the full diff |
Version 4.5.0 just got published.Update to this version instead 🚀 Release Notesv4.5.0Features
Bugfixes
Contributing
CommitsThe new version differs by 41 commits.
There are 41 commits in total. See the full diff |
Version 4.6.0 just got published.Update to this version instead 🚀 Release Notesv4.6.0Features
Bugfixes
Internal changes
CommitsThe new version differs by 161 commits.
There are 161 commits in total. See the full diff |
Version 4.7.0 just got published.Update to this version instead 🚀 Release Notesv4.7.0Features
Bugfixes
Internal changes
CommitsThe new version differs by 203 commits.
There are 203 commits in total. See the full diff |
Version 4.8.2 just got published.Update to this version instead 🚀 Release Notesv4.8.2Bugfixes
CommitsThe new version differs by 136 commits.
There are 136 commits in total. See the full diff |
Version 4.8.3 just got published.Update to this version instead 🚀 Release Notesv4.8.3Bugfixes
CommitsThe new version differs by 13 commits.
See the full diff |
Version 4.9.0 just got published.Update to this version instead 🚀 Release Notesv4.9.0Features
Bugfixes
Internal changes
CommitsThe new version differs by 87 commits.
There are 87 commits in total. See the full diff |
Version 4.9.1 just got published.Update to this version instead 🚀 Release Notesv4.9.1Bugfixes
Internal changes
CommitsThe new version differs by 11 commits.
See the full diff |
Version 4.9.2 just got published.Update to this version instead 🚀 Release Notesv4.9.2Bugfixes
CommitsThe new version differs by 13 commits.
See the full diff |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.
Version 4.0.0 of webpack was just published.
The version 4.0.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of webpack.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v4.0.0Big changes
modeor--mode) between two modes now: production or developmentoptimization.*(build your custom mode)process.env.NODE_ENVare set to production or development (only in built code, not in config)nonemode 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)CommonsChunkPluginwas removed ->optimization.splitChunks,optimization.runtimeChunktype: "javascript/auto"when transforming JSON via loader to JSBig features
javascript/esmhandles ESM more strictly compared tojavascript/auto:defaultimport, everything else (including namespace import) emit errors.mjsmodules arejavascript/esmby defaultimport()sideEffects: falseis now supported in package.jsonsideEffectsin package.json also supports glob expressions and arrays of glob expressionsoptimization.splitChunksoption was introducedDetails: https://gist.github.com/sokra/1522d586b8e5c0f5072d7565c2bee693
import()occur in a dead branchwebpackIncludeandwebpackExcludeare supported by the magic comment forimport(). They allow to filter files when using a dynamic expression.System.import()now emits a warningRule.parser.system: trueSystem.importwithRule.parser.system: falsemodule.rules[].resolve. It's merged with the global configuration.optimization.minimizehas been added to switch minimizing on/offoptimization.minimizerhas been added to configurate minimizers and optionswebpack-clito use the CLI--progress) now displays plugin namesFeatures
module.rules[].typeoptions.dependenciesconfigurations now throw errorsideEffectscan be overriden via module.rulesoutput.hashFunctioncan now be a Constructor to a custom hash functionoutput.globalObjectconfig option to allow to choose the global object reference in runtime exitCodetypeandrequest.includetestandexcludeto the eval source map devtool pluginfor ofinstead offorEachMapandSetinstead of Objectsincludesinstead ofindexOftext/javascriptandasyncas this are the default values (saves a few bytes)__webpack_require__and argument is omitted.wasm,.mjs,.jsand.jsonextensions in this orderoutput.pathinfois now on by default in develoment modeentrydefaults to./srcoutput.pathdefaults to./distproductiondefaults when omiting themodeoption<{parents}>>{children}<and={siblings}=in StatsbuildAttime to statsimport()now emits a error instead of a warningdoneis now an async hookBugfixes
*/output.chunkCallbackNameto the schema to allow configurating WebWorker templatemodule.id/loadednow correctly bails out of Module Concatentation (Scope Hoisting)Watching.invalidate-!behavior with post loadersrunandwatchRunhooks forMultiCompilerthisis now undefined in ESMvar,constorletjavascript/dynamicorjavascript/moduleis used.buildMetaof nulloriginal-fsmodule for electron targetspluginsInternal changes
plugincalls withtapcalls (new plugin system)buildMeta.exportsType: "default"for json modulesneo-asyncinstead ofasyncRemoved features
module.loadersloaderContext.optionsCompilation.notCacheableflagNoErrorsPluginDependency.isEqualResourceNewWatchingPluginCommonsChunkPluginBreaking changes for plugins/loaders
pluginmethod is backward-compatibleCompiler.hooks.xxx.tap(<plugin name>, fn)nowChunk.chunks/parents/blocksare no longer Arrays. A Set is used internally and there are methods to access it.Parser.scope.renamesandParser.scope.definitionsare no longer Objects/Arrays, but Map/Sets.StackedSetMap(LevelDB-like datastructure) instead of ArraysCompiler.optionsis no longer set while applying pluginsDependency.getReference()may now return aweakproperty.Dependency.weakis now used by theDependencybase class and returned in the base impl ofgetReference()ModulesContextModuleandresolveDependenciesCompiler.resolversintoCompiler.resolverFactoryaccessible with pluginsDependency.isEqualResourcehas been replaced withDependency.getResourceIdentifierTemplateare now staticoutputOptionsandrequestShortenerhas been moved to this classModule.metahas been replaced withModule.buildMetaModule.buildInfoandModule.factoryMetahave been addedModulehave been moved into the new objectsloaderContext.rootContextwhich points to thecontextoptions. Loaders may use it to make stuff relative to the application root.this.hotflag to loader context when HMR is enabledbuildMeta.harmonyhas been replaced withbuildMeta.exportsType: "namespacemap/foreachChunks/Modules/Parentsmethods are now deprecated/removedcreateGeneratorandgeneratorhooks for NormalModuleFactory to customize code generationCommits
The new version differs by 838 commits.
213226e4.0.0fde0183Merge pull request #6081 from webpack/formating/prettierb6396e7update statsf32bd41fix linting5238159run prettier on existing code518d1e0replace js-beautify with prettier4c25bfb4.0.0-beta.3dd93716Merge pull request #6296 from shellscape/fix/hmr-before-node-stuff7a07901Merge pull request #6563 from webpack/performance/assign-depthc7eb895Merge pull request #6452 from webpack/update_acorn9179980Merge pull request #6551 from nveenjain/fix/templatemde52f323optimize performance of assignDepth6bf5df5Fixed template.md90ab23aMerge branch 'master' into fix/hmr-before-node-stuffb0949cbadd integration test for spread operatorThere are 250 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴