This repository was archived by the owner on Aug 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
changelog
Tobias Koppers edited this page Apr 17, 2016
·
45 revisions
(2016-04-17)
- ES6 parser support backported from webpack 2
- CLI: config file can return a Promise
- BUG: made path to
modulemodule context-independent - BUG: upgrade uglify-js version
- BUG: fixes for the CommonsChunkPlugin with multiple commons chunks
- API: added
umdNamedDefineoption for named AMD - CLI: added
--watch-stdinto watch for stdin closing - API: emit empty argument list for AMD in UMD
- updated to esprima 2
- CI: Test on node.js and io.js, Test for beautify source code
- BUG: many small fixes
- CLI: webpack config can return a Promise
- API: ContextReplacementPlugin with manual context map
- BUG: fix for incorrect order with extract-text-webpack-plugin and in output files
- API: added (experimental) NamedModulesPlugin
- API: added stats presets
- beautified source code and enforced beautified source code in CI
- BUG: fixed hashing problems
- CLI: allow webpack.config.babel.js
- CLI: fixed passing entries over CLI
- API: rename target atom to electron
- API: include/exclude for BannerPlugin
- API: added watchOptions (i. e. polling)
- API: sort by global order by default
- BUG: Support webpack bundles with externals in webpack bundles
(2015-04-29)
- API: added filtering option for SourceMapPlugin
- COMMUNITY: changed rules regarding issues and chat room. Questions should move to stackoverflow
- BUG: stores records relative to context
- SUPPORT: support other compile-to-js langs for webpack config
- API: added cheap SourceMaps with line to line mappings
- API: more flexible SourceMap devtool configuration
- API: added crossOrginLoading option
- API: enable CSS SourceMaps by default
- API: error when using CommonsChunkPlugin wrongly
(2015-03-11)
- SUPPORT: added semicolon to end of bundle
- SUPPORT: added HMR management code for node.js (serverside)
- API: Watching.close callback is optional
- API: Added WatchIgnorePlugin
- API: added experimental cheap source-map mode, which will be faster in the future
- BUG: fixed nested objects in DefinePlugin
- BUG: fixed HMR bug which caused unaffected modules to reload
- API: allow functions as test in loaders list
- API: allow arrays in loaders list, in which only one matches
- API: allow "and" expressions in loaders list
(2015-02-24)
- API: allow more types in DefinePlugin
- API: console colors are automatically
- BUG: DedupePlugin is more reliable
- SUPPORT: added support for relative inlinded AMD modules
- TEST: more test cases
(2015-01-21)
-
API: added
asyncparameter toCommonsChunksPluginto create a async loaded commons chunks -
SUPPORT: Symlinks while resolving
-
API: added
EnvironmentPlugin -
API: support loading of multiple chunks in a dependency block
-
API: added
node.Bufferoption -
API: added
node.setImmediate
(2014-12-28)
- API: added 'hidden-sourcemap' devtool
- API: added
NoErrorsPlugin, which doesn't emit a bundle on errors - API: added hot-only dev-server, which doesn't reload the page on unaccepted update
- API: more features for the CommonsChunkPlugin to process non-entry chunks
- API: support library with commons chunks
- API: added options parameter to
module.hot.accept/check - BUG: rewrite module reasons on module moving
- BUG: fixed bug, when extending Object.prototype
- API: expose
sourceMapflag to loaders - BUG: allow array in
module.hot.accept - API: expose
idin context - INTERNAL: moved placeholder replacing into plugin
(2014-08-25)
- API: plugin interface for all templates
- API: resolve path in NormalModuleReplacementPlugin
- API: added MultiCompiler (experimental)
- API: more params for the ContextReplacementPlugin
- API: added support for optional externals
- API: support multiple assets in
assetsByChunkName - API: better support for
[name] - API: better filenames in SourceMaps + options
- API: added API for error handing in self accepted modules
- API: added
__webpack_hash__ - SUPPORT: Support browserify pre-built bundles with a warning
- SUPPORT: better AMD support
- BUG: fixed sourceMappingURL path
- TEST: tests run on linux and windows
- PERFORMANCE: more caching for main chunk
(2014-05-27)
- BUG: fixed some SourceMap issues
- API: added typeof support to the DefinePlugin
- BUG: fixed parser crash
(2014-05-17)
- API: added
externalsoption - API: cache is enabled by default
- SUPPORT: Generated
requireis now__webpack_require__ - SUPPORT: updates to node.js buildin replacements
- PERFORMANCE: more and more reliable caching
- API: support
[hash]inoutput.path - API: allow to overwrite default RegExp and warnings for contexts
- API: allow querystring on output files
- API: Warning about case-sensitive modules
- API: added access to outside
requirewith__non_webpack_require__ - API: added
node-webkittarget - SUPPORT: allow multiple webpack entry chunks on a page
- SUPPORT:
.jsonis a default extension (similar to node.js) - SUPPORT: ignore modules by browser field
- bug fixes
- API: The following options are now DEPRECATED and superseded by plugins:
-
define->DefinePlugin -
prefetch->PrefetchPlugin -
provide->ProvidePlugin -
hot->HotModuleReplacementPlugin -
optimize.dedupe->optimize.DedupePlugin -
optimize.minimize->optimize.UglifyJsPlugin -
optimize.maxChunks->optimize.LimitChunkCountPlugin -
optimize.minChunkSize->optimize.MinChunkSizePlugin -
optimize.occurenceOrder->optimize.OccurenceOrderPlugin - Warnings are emitted when using deprecated options
- API: plugins are now exported by webpack:
require("webpack").DefinePlugin - API: Labeled Modules are now disabled by default, use the
dependencies.LabeledModulesPlugin - API: Internal plugin arguments simplified
- API: added
ResolverPlugin - API: added chunk origin tracking and resolve logging (for finding compile bugs)
- API: added
eval-source-mapdevtool - API: default configuration depends on
targetoption - API: changed filenames in SourceMaps
- API: ids for entry chunks need to longer have the id 0
- API: output as amd module
- API: allow to configure the indent of the source
- API: added AggressiveMergingPlugin and ResolverPlugin
- API: added
--display-originsto show chunk origins - API: added
--display-error-detailsto show resolving log - SUPPORT: Support for the browser-field
- SUPPORT: free vars are tracked over IIFEs
- SUPPORT: allow to rename free vars
- SUPPORT: allow local named amd modules
- PERFORMANCE: Cache final module sources
- SIZE: no
require.eif not needed - bug fixes
- API:
thisin modules is nowexports(if this breaks a library, try prefixingimports?this=>window!) - API: added Hot Code Replacement
--hot(web and node target) [experimental] - API: added
defineoption - API: support new
sourceMappingURLandsourceURLsyntax - API: added
CommonsChunkPlugin - API:
--profile --progressnow display process timings - API: added
loaderContext.loadModule - PERFORMANCE: added
unsafeCacheandnoParseoption for performance - SIZE: automatically remove require.ensure when no chunk was generated.
- SIZE: generate (sparse) array instead of object as module container when appropriate
- SUPPORT: extract dependencies from a bound callback
- SUPPORT: support evaluating of .replace and .split
- TEST: added many of the browsertest to the node.js tests
- SUPPORT: node 0.10 support
- PERFORMANCE: whole chunks can now be cached
- API: store state in json file (records)
--records-path - API: added
--devtool source-mapand--devtool inline-source-map - SIZE: added option
--optimize-occurence-order - SIZE: added
--optimize-dedupe
Small changes:
- PERFORMANCE: assets are only emitted if they changed
- API: added
--profile - PERFORMANCE: added
--prefetch[experimental] - API: added
BannerPlugin - API: added
[chunkhash][experimental] - API: added
hashDigestLength - PERFORMANCE: increased filesystem caching to 60s
- PERFORMANCE: purge only changed files in watch mode
- PERFORMANCE: purge all files on compiling in not-watch mode
- SUPPORT: in-memory filesystem now supports windows-like paths too
- SIZE: merging chunk is more clever
...
- Updated to UglifyJs 2
- Query String are allowed for loaders and resources
- Updated many loaders to use query strings as parameters
- "jam" is no longer a default modules folder (still possible to add it per config)
- API: fixed typos:
modulesDirectories,separable,library - API: api of enhanced-resolve and enhanced-require changed.
- API:
options.minimizeand now be also a object, which is passed to UglifyJs2.Compressor - API: added
"web"to default package mains, added"webLoader"to default loader package mains - API: removed
"webpack"from default loader package mains - added "node" template: bundle can run on node.js host (experimental)
- API: added experimental chunk merging via
options.maxChunks
- API:
loaderContext.depencencyis more relaxed and don't need to be called before reading - API:
loader.seperablecannot combined with -
loaderContext.emitFileandloaderContext.emitSubStats loaderContext.options.eventsloaderContext.options.resolve-
loaderContext.resolveandloaderContext.resolve.sync - API: added
loader.seperableIfResolve - API:
loader.seperableIfResolvecannot combined with -
loaderContext.emitFileandloaderContext.emitSubStats loaderContext.options.events- API: added
profileoption (and--profile) - API: added
workersoption (and--workers) - API: added
closeWorkersoption - API: if option
workersis used: -
optionsmust beJSON.stringify-able. Exceptoptions.events. - Any error thrown in loader must be an object (i. e. an Error object). Only
message,stackand value oftoStringis passed to main process. - API: added
workersNoResolveoption. Workers should not used while resolving. - API: The expected
Cacheobject foroptions.cachehas changed. - API: event
moduleis emited after the module is finished. - API: event
contextis now namedcontext-enum - API: added event
contextwhich is emited after the context is finished. - API: event
dependencyis removed. Usestats.dependenciesfor this. - API: event
loaderis removed. Usestats.loadersfor this. - API: added
stats.contextsas a list of contexts. - API: added
stats...modules[..].dependenciesfor as list of files which affect the module's content. - API: added
stats...modules[..].loadersfor as list of loaders which affect the module's content. - API: removed
stats.modulesPerChunk, it is useless and was deprecated. - API: added
stats.chunkNameFileswhich export the files for named chunks - API: added
stats.startTime, timestamp as number - cmd: more colorful output to indicate caching and timing
- API: webpack in watch mode emits the event
watch-endif watch mode have to end (i. e. loader changed). You may restart it after clearingrequire.cache. - API: added
loaderContext.loaderTypeas one ofloader,preLoaderorpostLoader. - API: added
loaderContext.currentLoadersas list of all loader of the current type. - API: added
loaderContext.loaderIndexas index of current loader inloaderContext.currentLoaders. - API: added
loaderContext.loaders,loaderContext.preLoadersandloaderContext.postLoaders. - API: added stats.fileModules...reasons[].async = true instead of "async xxx"
- API: added
loaderContext.emitErrorandloaderContext.emitWarning
- internal: resolving logic moved into enhanced-resolve.
- internal: moved loaders logic into enhanced-require.
- API: removed
require-polyfill, use enhanced-require. - API: removed deprecated
script-src-prefix. - API: removed deprecated direct compile into output, overwrite
emitFile. - API: parameter
optionsis not longer optional. - API: added
loader.seperable(see spec). - API:
loaderContext.resolveis now async, even in sync mode. - API: added
loaderContext.resolve.syncas sync version.
webpack 👍