This repository was archived by the owner on Mar 22, 2019. It is now read-only.
forked from webpack/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
changelog
Tobias Koppers edited this page Oct 31, 2013
·
45 revisions
thisin modules is nowexports(if this breaks a library, try prefixingimports?this=>window!)- added Hot Code Replacement
--hot[experimental] - added
defineoption - support new
sourceMappingURLandsourceURLsyntax - added
unsafeCacheandnoParseoption for performance -
--profile --progressnow display process timings - added
loaderContext.loadModule - automatically remove require.ensure when no chunk was generated.
- node 0.10 support
- whole chunks can now be cached
- store state in json file (records)
--records-path - added
--devtool source-mapand--devtool inline-source-map - added option
--optimize-occurence-order - added
--optimize-dedupe
Small changes:
- assets are only emitted if they changed
- added
--profile - added
--prefetch[experimental] - added
BannerPlugin - added
[chunkhash][experimental] - added
hashDigestLength - increased filesystem caching to 60s
- purge only changed files in watch mode
- purge all files on compiling in not-watch mode
- in-memory filesystem now supports windows-like paths too
- 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.