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 Dec 17, 2013
·
45 revisions
4b9472b24d7eaa9acac8b1da74e6f4992ef0a90c
- 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
- 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 👍