Commit Graph

188 Commits

Author SHA1 Message Date
Tobias Koppers 2fc72052c4 Remove hashing from ClassSerializer as buildDeps take care of this now 2019-08-13 17:02:52 +02:00
Tobias Koppers e5cecdad23 store build dependencies snapshot in pack
add snapshot shortcut for package manager managed paths
add cache.managedPaths
2019-08-13 17:02:37 +02:00
Tobias Koppers ada11a286d avoid memory leak in LazySet 2019-08-12 23:07:45 +02:00
Tobias Koppers f236df1bc9 replace logging in persistent caching with infrastructure logger
remove cache.loglevel
2019-08-12 13:41:23 +02:00
Tobias Koppers c21fb4bd58 Add LazySet for file/context/missingDependencies for performance 2019-08-07 16:13:56 +02:00
Tobias Koppers ab8f0b9191 Use Set prototype for better deprecation performance 2019-07-26 13:46:24 +02:00
Tobias Koppers 8fc13d829c cache hash digest for short data 2019-07-25 07:41:23 +02:00
Tobias Koppers e2b1ab3258 adding some random types 2019-07-18 14:15:20 +02:00
Tobias Koppers 1d72a05fed Merge tag 'v4.36.0' into next
4.36.0
2019-07-17 16:02:33 +02:00
Tobias Koppers b3ec775453 improve merging of resolve and parsing options
by rules and via loader API

Arrays overwrite by default, but can reference old value with "..."
2019-07-17 13:08:51 +02:00
ikopeykin bd7d95bfc1 #9391 resolve discussions, AbstractMethodError 2019-07-15 16:54:49 +03:00
ikopeykin a223ffdcc0 fix typescript for HashContructor 2019-07-10 14:16:09 +03:00
ikopeykin 27b1e17f5b createHash typescript 2019-07-10 14:06:36 +03:00
ikopeykin a1aa5cbdce enforce eslint check-tag-names to avoid using jsdoc tags that are not supported in Typescript 2019-07-10 00:38:18 +03:00
ikopeykin 30e747a55d enforce eslint require-hyphen-before-param-description 2019-07-09 23:15:14 +03:00
Tobias Koppers b2e7837288 replace Object.assign with object spread 2019-06-19 13:16:05 +02:00
Tobias Koppers 0505e177f1 add more types and fix/remove TODOs
change Chunk.files to Set
remove checkContext from IgnorePlugin
remove external flag from ExternalModule
2019-06-14 10:45:56 +02:00
Tobias Koppers 6db94536ad Merge tag 'v4.34.0' into next
4.34.0
2019-06-13 10:51:12 +02:00
Tobias Koppers e9c0d068dd refactor filesystem interfaces
add Compiler.intermediateFileSystem
avoid using `path` and `fs` module when possible
move `join`, `mkdirp` and `dirname` into utils
join and dirname is optional in FileSystem interface
remove mkdirp from Filesystem interface
2019-06-11 17:32:58 +02:00
Tobias Koppers 43bc7a306e Refactor to track nested exports
Harmony dependencies track access to nested properties
Flag nested exports
2019-05-29 11:55:00 +02:00
Tobias Koppers c5f94f3b6a don't emit and load JS files for chunks without JS modules
allow custom module types in rules
allow configCases to access stats
2019-05-22 13:12:15 +02:00
Tobias Koppers f03c4f127a improve merging of resolve and parsing options
by rules and via loader API

Objects are deeply merged
Arrays overwrite by default, but can reference old value with "..."

fixes #8968
2019-05-13 15:30:10 +02:00
Florent Cailhol 84f9842d54 Add missing types 2019-05-10 09:56:01 +02:00
Tobias Koppers 924daa105b Use simpler/faster hash function to get a hash number
Use deterministic mangled names for exports
refactor assignDeterministicIds
rename __webpack_init__ function in wasm to ""
fix bug with incorrectly cached StaticExportsDependency
fix bug in hash logic of Module
2019-02-20 22:41:07 +01:00
Tobias Koppers b25ff237bb Prettify source code 2019-02-05 10:08:45 +01:00
Tobias Koppers e9c6539645 change Serializer API to be not file serialization specific 2019-01-24 17:42:38 +01:00
Tobias Koppers 3a1eefec0a Measure size of objects to decide about inline or lazy storing 2019-01-24 15:14:41 +01:00
Tobias Koppers d40f7b2642 cache contextify and pass associatedObjectForCache to all calls 2019-01-19 12:40:00 +01:00
Tobias Koppers 00065741d2 log a warning when serialization fails 2019-01-19 11:47:19 +01:00
Tobias Koppers c5ad6df793 add own webpack-sources typings 2019-01-18 21:56:56 +01:00
Tobias Koppers 0bc0f05fc7 use updated webpack-sources, use new buffer method 2019-01-18 20:46:31 +01:00
Tobias Koppers 61a096049d add process.nextTick to avoid long recursion in callbacks 2019-01-10 16:41:30 +01:00
Mihail Bodrov fa5bc5bc1f Use limit for array split 2019-01-09 23:35:18 +03:00
Tobias Koppers 526bc7a788 removed queue entry from AsyncQueue on invalidate 2019-01-08 15:14:31 +01:00
Tobias Koppers 4bdf08df7b AsyncQueue._queued to array, remove nextTick 2019-01-08 15:14:29 +01:00
Tobias Koppers 1053620f46 merge Maps and Sets into single Map with all info 2019-01-08 15:14:27 +01:00
Florent Cailhol 80f67573a1 Expose API types 2018-12-28 14:48:18 +01:00
Florent Cailhol f05af4a4a7 Use serialization API instead of ObjectMiddleware 2018-12-28 13:54:10 +01:00
Florent Cailhol e06a808763 Expose the serialization API 2018-12-28 13:21:19 +01:00
Tobias Koppers 2143bd6519 Reduce number of allocations
Hoist RegExp
Avoid creating array object
Avoid join
Fast case for request without query
improve test cases
fixes a bug where query was omitted with multiple query separators
2018-12-26 11:13:44 +01:00
Mihail Bodrov 972d9bf8cb Optimize absoluteToRequest 2018-12-23 15:30:28 +03:00
Tobias Koppers d9238f061d memorize lazy data on access
remove need for read on write
add queue for file accesses in FileMiddleware to support concurrent access
2018-12-21 12:05:29 +01:00
Tobias Koppers 2ae5268bfa
Merge pull request #8525 from webpack/cleanup/remove-compare
cleanup work on next
2018-12-20 20:23:52 +01:00
Tobias Koppers e36dec26d1 cache crypto require in createHash 2018-12-20 17:32:55 +01:00
Tobias Koppers 1374757006 remove ModuleReason
remove HotUpdateChunkTemplate
move compareLocations into comparators
re-enable NodeSourcePlugin for `.mjs`
2018-12-20 16:38:26 +01:00
Tobias Koppers aedc34b76d load internal serializers internally
allows to bundle webpack
2018-12-20 11:04:31 +01:00
Florent Cailhol e06b4853d6 Add compiler typings 2018-12-12 10:26:53 +01:00
Tobias Koppers d71fdf0a29 don't split identifier at space, as space could to part of paths 2018-12-08 09:29:21 +01:00
Tobias Koppers 4c965bfbab simplify regex 2018-12-08 09:21:35 +01:00
Tobias Koppers 5563ee9e58 use makePathsRelative instead of contextify
unify contextify and makePathsRelative
separate NormalModuleFactory ignored, ContextModule and ConcatenatedModule identifier with "|"
2018-12-07 18:12:04 +01:00