Commit Graph

4486 Commits

Author SHA1 Message Date
Tobias Koppers 83866b0dac use stable sorting for sorting dependencies 2018-10-23 11:32:32 +02:00
Tobias Koppers ad8f8910e2 make origins sorting deterministic
remove duplicate origins
2018-10-23 11:32:30 +02:00
Tobias Koppers b146c7ac41 revert incorrect change
The Buffer can be a slice of the underlying buffer
2018-10-23 08:43:21 +02:00
renatoagds 2f7533202c adding watchMode flag in compiler 2018-10-22 19:23:47 -03:00
Tobias Koppers 5165a90de8
Merge pull request #8242 from webpack/perf/chunk-graph
Optimize chunk graph algorithm
2018-10-20 06:09:58 +02:00
Tobias Koppers 5e4a6a4f5d fix byId sorting 2018-10-19 13:20:48 +02:00
Tobias Koppers c04747f17d make LimitChunkCountPlugin stable 2018-10-19 12:57:27 +02:00
Tobias Koppers a7db689306 make chunk compare stable 2018-10-19 12:57:26 +02:00
Tobias Koppers 3217d02aab make stats assets order stable by providing a default order 2018-10-19 12:57:25 +02:00
Tobias Koppers 98b482efd7 make dependency order stable 2018-10-19 12:57:24 +02:00
Tobias Koppers 8a8111b637 make sorting in Stats stable 2018-10-19 12:57:23 +02:00
Tobias Koppers 511d15bbc4 make origins sorting deterministic
remove duplicate origins
2018-10-19 12:57:22 +02:00
Tobias Koppers 65d9ffb91e Optimize chunk graph algorithm 2018-10-19 10:37:43 +02:00
Lex Alexander 2cdf04e14b feat(Compiler): Add file removal tracking in watch-run
-Closes 5072.
2018-10-18 15:58:58 -07:00
Tobias Koppers 8512b4a81d fix wrong array instead of object type for jsIncompatibleExports 2018-10-18 17:35:36 +02:00
Tobias Koppers 318da93ce2 make Raw and ExternalModule serializable 2018-10-18 16:02:45 +02:00
Tobias Koppers 4b69df1117 allow to make classes not-serializable
make ContextModule not-serializable because it's not needed
2018-10-18 15:52:22 +02:00
Tobias Koppers e8da87d2c8 refactor AMDRequireDependency and make it serializable 2018-10-18 15:30:54 +02:00
Tobias Koppers 0fc007f364 refactor RequireEnsureDependenciesBlock and make it serializable 2018-10-18 12:44:46 +02:00
Tobias Koppers 2bd2985d19 make RequireEnsureItemDependency serializable 2018-10-18 12:44:45 +02:00
Tobias Koppers 2ab9ceccfd fix request in ImportContextDependency 2018-10-18 12:44:44 +02:00
Tobias Koppers 06cd79f17f add serializer for RegExp 2018-10-18 12:44:38 +02:00
Tobias Koppers d5ad14813f create Source with Buffers for WASM 2018-10-18 12:44:31 +02:00
Tobias Koppers 4947a5ac71 allow all Sources to be serialized
serialize internal structure of CachedSource
2018-10-18 12:44:27 +02:00
Tobias Koppers 1a3007ac92 make ImportDependenciesBlock serializable 2018-10-18 12:44:15 +02:00
Tobias Koppers 1d9f8a332f
Merge pull request #8233 from ljqx/const-plugin-logical-operator
[ConstPlugin] add support for logical expressions (&& and ||)
2018-10-18 09:57:23 +02:00
Zhibin Liu dcd38348e5 fix comments 2018-10-18 14:21:12 +08:00
Tobias Koppers 40f0e91325 fixup: ImportDepBlock 2018-10-17 23:24:53 +02:00
Tobias Koppers d3a34f733b make options object in ContextDep optional 2018-10-17 23:10:14 +02:00
Tobias Koppers f987d82979 move creation of ImportDep out of ImportDepBlock constructor 2018-10-17 23:09:21 +02:00
Tobias Koppers f23ce49040 remove module argument from AsyncDepBlock
reorder/remove arguments of ImportDepBlock, AMDRequireDepBlock, RequireEnsureDepBlock
2018-10-17 23:07:01 +02:00
Tobias Koppers bbedceaa16 add error class for restore errors 2018-10-17 22:54:07 +02:00
Tobias Koppers e6f11c96be fix deserializing of RequireResolveHeaderDependency 2018-10-17 22:17:19 +02:00
Tobias Koppers 7786a6a0ed fix serializing of Buffers 2018-10-17 22:16:15 +02:00
Tobias Koppers 6b0da68ed9 run all test cases with caching 2018-10-17 22:15:46 +02:00
Bazyli Brzóska 3352b24059 fix extra space 2018-10-17 22:14:25 +02:00
Tobias Koppers 1500a9da5c refactor LocalModule to remove module reference to allow serializing 2018-10-17 21:25:46 +02:00
Tobias Koppers b93ba710df add error for circular references while serializing 2018-10-17 21:25:46 +02:00
Michael Ciniawsky 6c172166e3 feat(WebAssemblyImportDependency): make serializable 2018-10-17 21:25:45 +02:00
Michael Ciniawsky 095e2c9b56 feat(WebAssemblyExportImportedDependency): make serializable 2018-10-17 21:25:45 +02:00
Michael Ciniawsky 9f4e9931d1 feat(UnsupportedDependency): make serializable 2018-10-17 21:25:45 +02:00
Michael Ciniawsky 2b0d8b1dac feat(RequireResolveHeaderDependency): make serializable 2018-10-17 21:25:45 +02:00
Michael Ciniawsky e45aad79ae feat(RequireResolveDependency): make serializable 2018-10-17 21:25:45 +02:00
Michael Ciniawsky aeb1df2280 feat(RequireResolveContextDependency): make serializable 2018-10-17 21:25:45 +02:00
Michael Ciniawsky f6f49a39ff feat(RequireIncludeDependency): make serializable 2018-10-17 21:25:45 +02:00
Michael Ciniawsky 38b26d6f88 feat(RequireEnsureDependency): make serializable 2018-10-17 21:25:44 +02:00
Michael Ciniawsky 944a0cc782 feat(RequireContextDependency): make serializable 2018-10-17 21:25:44 +02:00
Michael Ciniawsky 9ea49b2a05 feat(LocalModuleDependency): make serializable 2018-10-17 21:25:44 +02:00
Michael Ciniawsky 65517658af feat(LocalModule): make serializable 2018-10-17 21:25:44 +02:00
Michael Ciniawsky 85adac8240 feat(ImportWeakDependency): make serializable 2018-10-17 21:25:44 +02:00
Michael Ciniawsky e738d4c038 feat(ImportEagerDependency): make serializable 2018-10-17 21:25:44 +02:00
Michael Ciniawsky d91946038c feat(ImportDependency): make serializable 2018-10-17 21:25:44 +02:00
Michael Ciniawsky af31196f88 feat(ImportContextDependency): make serializable 2018-10-17 21:25:44 +02:00
Michael Ciniawsky e144c58142 feat(HarmonyExportImportedSpecifierDependency): make serializable 2018-10-17 21:25:43 +02:00
Michael Ciniawsky d5c9069e64 feat(DllEntryDependency): make serializable 2018-10-17 21:25:43 +02:00
Michael Ciniawsky 145c46ff36 feat(DelegatedExportsDependency): make serializable 2018-10-17 21:25:43 +02:00
Michael Ciniawsky 689bd0efbc feat(ContextElementDependency): make serializable 2018-10-17 21:25:43 +02:00
Michael Ciniawsky 27f4c9f90e feat(ContextDependency): make serializable 2018-10-17 21:25:43 +02:00
Michael Ciniawsky b077f361b8 feat(CommonJsRequireContextDependency): make serializable 2018-10-17 21:25:43 +02:00
Michael Ciniawsky 9fc7e6de1e feat(CachedConstDependency): make serializable 2018-10-17 21:25:43 +02:00
Michael Ciniawsky ef42e11376 feat(AMDRequireItemDependency): make serializable 2018-10-17 21:25:42 +02:00
Michael Ciniawsky fe57b346bb feat(AMDRequireDependency): make serializable 2018-10-17 21:25:42 +02:00
Michael Ciniawsky 9c8392bbb0 feat(AMDRequireContextDependency): make serializable 2018-10-17 21:25:42 +02:00
Michael Ciniawsky 3954ed107a feat(AMDRequireArrayDependency): make serializable 2018-10-17 21:25:42 +02:00
Michael Ciniawsky 5e2a47e75f feat(ModuleHotDeclineDependency): make serializable 2018-10-17 21:25:42 +02:00
Michael Ciniawsky 2c56940a06 feat(ModuleHotAcceptDependency): make serializable 2018-10-17 21:25:42 +02:00
Michael Ciniawsky 7f4e1ffe6f feat(JsonExportsDependency): make serializable 2018-10-17 21:25:42 +02:00
Michael Ciniawsky 9b32ca1b16 feat(HarmonyAcceptImportDependency): make serializable 2018-10-17 21:25:42 +02:00
Michael Ciniawsky e44412d3bb feat(HarmonyAcceptDependency): make serializable 2018-10-17 21:25:41 +02:00
Michael Ciniawsky 0ebf871e25 feat(registerExternalSerializer): add SourceMapSource support 2018-10-17 21:25:41 +02:00
Tobias Koppers a09b9a5b8f refactor call and callArgs for HarmonyImportSpecifierDependency 2018-10-17 21:25:41 +02:00
Tobias Koppers 459fef0263 fix warning stack for failed module 2018-10-17 21:25:41 +02:00
Tobias Koppers 2cfbea35bc fix bug with too long short strings 2018-10-17 21:25:41 +02:00
Tobias Koppers d2f1484914 no need to create cache directory before build 2018-10-17 21:25:41 +02:00
Tobias Koppers 7b85f99a97 improve loglevel option 2018-10-17 21:25:41 +02:00
Tobias Koppers a9554a70e6 skip reference for empty strings 2018-10-17 21:25:40 +02:00
Tobias Koppers b536fe7aee default cache.name to name + mode 2018-10-17 21:25:40 +02:00
Tobias Koppers e1adc52745 improve length of emitted cache files 2018-10-17 21:25:40 +02:00
Tobias Koppers 3e05206b6d improved error messages for failed deserialization 2018-10-17 21:25:40 +02:00
Tobias Koppers a852828279 add persistent caching prototype 2018-10-17 21:25:39 +02:00
Tobias Koppers 518104b3fb Merge tag 'v4.21.0' into next
4.21.0
2018-10-17 20:38:00 +02:00
Zhibin Liu 257e6ec8d6 [ConstPlugin] add support for logical expressions (&& and ||) 2018-10-17 23:12:07 +08:00
Tobias Koppers 7bc5c98171 Merge branch 'master' into marcusdarmstrong-external-module-fix 2018-10-17 16:13:55 +02:00
Tobias Koppers 0e232a926c
Merge pull request #8170 from webpack/refactor/cache2
refactor cache to be more generic and usable for other things
2018-10-17 10:47:06 +02:00
Tobias Koppers 44e890e25b
Merge pull request #8179 from webpack/refactor/moduleIndex
Rename index/index2 to pre/postOrderIndices
2018-10-17 10:45:52 +02:00
Tobias Koppers 83538ebc54
Merge pull request #8178 from webpack/feature/moduleIds
Remove moduleIds=total-size and deprecate moduleIds=hashed
2018-10-17 10:04:11 +02:00
Florent Cailhol 7db1d0ce4b Remove IgnorePlugin compat layer 2018-10-12 18:10:12 +02:00
Florent Cailhol 7777b2f6b3 Update EnvironmentPlugin TODO comment 2018-10-12 18:03:03 +02:00
Florent Cailhol ef367db2cc Remove ContextDependency#prepend 2018-10-12 17:59:26 +02:00
Florent Cailhol d311847a05 Remove Compilation#performance 2018-10-12 17:57:10 +02:00
Florent Cailhol d5636b32d2 Rename index/index2 to pre/postOrderIndices
Also remove useless TODO
2018-10-12 17:51:28 +02:00
Florent Cailhol 7669104f71 Deprecate moduleIds=hashed in favor of moduleIds=deterministic
Also remove moduleIds=total-size
2018-10-12 17:14:16 +02:00
Tobias Koppers 9b8d26f6e8 refactor cache to be more generic and usable for other things 2018-10-11 10:46:48 +02:00
Michael Loughry 👨‍💻 1d71ede475 Make changes suggested by @sokra to optimize chunk graph generation 2018-10-04 16:10:12 -07:00
Naveen Marella 014042605f Removed unnecessary change on passed object. 2018-10-04 09:49:43 -06:00
Naveen Marella 71f9230383 Adding format option for Dll Plugin to get a formatted manifest json. 2018-10-03 09:48:29 -06:00
Tobias Koppers 9fe42e7c40
Merge pull request #8118 from webpack/bugfix/issue-8110
fixes #8110
2018-10-02 16:43:33 +02:00
Tobias Koppers 9da00cdb42 fixes #8110 2018-10-02 14:52:52 +02:00
Tobias Koppers 3e74cb428a
Merge pull request #8122 from dthpth/bugfix/output-library-array
fix output for 'output.library: string[]' configuration
2018-10-02 14:48:51 +02:00
Michael Ciniawsky 7f746a955a chore(JavascriptParser): update `acorn` dependencies
package: update `acorn` v5.6.2...v6.0.0
package: update `acorn-dynamic-import` v3.0.0...v4.0.0
2018-10-02 14:20:20 +02:00
Sergey Vershinin 8a939328f9 fix output for 'output.library: string[]' configuration 2018-10-01 22:31:26 +03:00
Steven 2caeea0f4d
Add if statement 2018-10-01 07:52:43 -04:00
Tobias Koppers 25e8b78889
Merge pull request #8100 from webpack/refactor/cache
Refactor cache
2018-10-01 10:49:35 +02:00
Steven 47a35a5f03 Make prettier 2018-09-29 20:18:26 -04:00
Steven a1fd3042a5 Refactor crossOriginLoading 2018-09-29 20:11:20 -04:00
Steven b939f617ac
Remove unused variable: $crossOriginLoading$ 2018-09-29 12:54:25 -04:00
Tobias Koppers ae72fe3724 fixes timestamp transfer from watcher 2018-09-27 21:28:07 +02:00
Tobias Koppers 6d09410a26 remove parserScope
it's not serializable and not needed anyway
2018-09-27 13:40:58 +02:00
Tobias Koppers 5f1a30d2ef fixup: AsyncQueue 2018-09-27 13:20:23 +02:00
Tobias Koppers 7340fbb547 refactor Cache
add a new hookable Cache class
removed CachePlugin
add MemoryCachePlugin
refactor timestamps
create FileSystemInfo class
2018-09-27 13:20:19 +02:00
Tobias Koppers f31a8c231b add compilerPath (will be later used to access the cache) 2018-09-27 11:21:17 +02:00
Tobias Koppers 46232fab31 make Compilation.addModule async and queued 2018-09-27 11:21:11 +02:00
Tobias Koppers 52634e7a2d remove cacheGroup argument from addModule 2018-09-27 11:21:06 +02:00
Tobias Koppers 4eab41bd5f refactor Module.needBuild to be async 2018-09-27 11:20:54 +02:00
Tobias Koppers 554b417546 Modules are responsible for sorting of dependencies 2018-09-27 11:20:42 +02:00
Eemeli Aro c0a619abe3 Use a single options argument for AmdMainTemplatePlugin 2018-09-27 08:01:17 +03:00
Eemeli Aro b624d167a5 Add "amd-require" libraryTarget, resulting in a require() wrapper 2018-09-26 21:46:16 +03:00
Tobias Koppers 4f1905aa5a Merge tag 'v4.20.2' into next
4.20.2
2018-09-25 23:13:58 +02:00
Tobias Koppers aab3afbef8 fixes #8085 2018-09-25 21:52:03 +02:00
Tobias Koppers dece2e69e3 Merge tag 'v4.20.1' into next
4.20.1
2018-09-25 16:21:39 +02:00
Tobias Koppers 17044bf9c6 Merge tag 'v4.20.0' into next
4.20.0
2018-09-25 16:20:42 +02:00
Tobias Koppers d836bcb027 fixes #8081 2018-09-25 14:45:30 +02:00
Tobias Koppers 1495b33102
Merge pull request #8070 from chuckdumont/work
Uncaught exception from renderers
2018-09-22 09:50:37 +02:00
Tim Neutkens 2671d88b37 Fix typo 2018-09-21 23:24:18 +02:00
Chuck Dumont f8877e0819 Uncaught exception from renderers 2018-09-21 14:42:25 -04:00
Tobias Koppers c7681825f8 fix issues with absolutePath, allOf and anyOf
make DllReferencePlugin schema more expressive
typing fixes
2018-09-21 11:04:36 +02:00
Tobias Koppers 1f6b92de3e use declarations from schemas in plugins 2018-09-21 11:04:28 +02:00
Tobias Koppers d48975c948 use types from schema 2018-09-21 11:04:19 +02:00
Tobias Koppers 56c613a669 add moduleIds deterministic for simpler long term caching 2018-09-18 17:49:19 +02:00
Tobias Koppers 19d60ba0cd Merge tag 'v4.19.1' into next
4.19.1
2018-09-18 10:13:54 +02:00
Tobias Koppers 62e01d3cae add some random types 2018-09-18 09:54:35 +02:00
Tobias Koppers 162ed5f382 add some missing types for validation 2018-09-18 09:53:27 +02:00
Tobias Koppers ab284977c3
Merge pull request #8043 from RubenVerborgh/externals-object-array
Allow array as value in externals object
2018-09-18 09:42:43 +02:00
Tobias Koppers f0271d93c6 fix ExternalModule and test case 2018-09-18 09:10:14 +02:00
Tobias Koppers e08f71c0ef keep/restore comments in export default
fixes #8039
2018-09-17 14:58:55 +02:00
Sharang Dashputre bb4c2d18f7 Correctly set the 'browser' value for electron-renderer 2018-09-16 18:30:24 +05:30
Tobias Koppers 5ade574510
Merge pull request #7947 from philipwalton/mjs-sourcemap-support
Add sourcemap support for .mjs output files
2018-09-15 21:45:31 +02:00
Ed Morley 79910c6ba5 Switch from uglifyjs-webpack-plugin to terser-webpack-plugin
Some history:
* `uglifyjs-webpack-plugin` < v1.0 used the minifier `uglify-js`
* however `uglify-js` does not support ES6, which resulted in a fork
  called `uglify-es` that was developed in the `uglify-js` repository,
  but under the `harmony` branch
* `uglifyjs-webpack-plugin` v1.x switched to `uglify-es` for ES6 support
* however `uglify-es` stopped being maintained:
  https://github.com/mishoo/UglifyJS2/issues/3156#issuecomment-392943058
* which led to a fork called `terser` that has incorporated all of
  the unmerged PRs and will be where all new development occurs:
  https://github.com/fabiosantoscode/terser
* `terser-webpack-plugin` was created, which is the `terser` equivalent
  of `uglifyjs-webpack-plugin`:
  https://github.com/webpack-contrib/terser-webpack-plugin
* `uglifyjs-webpack-plugin` v2.x will be switching back to `uglify-js`,
  so any project that needs to support ES6 now needs to switch to
  `terser-webpack-plugin`.

Fixes #7923.
2018-09-15 12:29:14 +01:00
Tobias Koppers 97ed999aad Merge tag 'v4.19.0' into next
4.19.0

* Separate context for renderBoostrap and hooks
* Remove ModuleTemplate from MainTemplate.bootstrap hook
2018-09-15 13:10:58 +02:00
OJ Kwon 2df7b0c1cf
fix(nodemaintemplate): resolve async chunk path platform agnostic 2018-09-14 11:22:08 -07:00
Tobias Koppers 13b2cdd5ae hash content of bootstrap code
instead of trying to calculate it
from inputs

fixes #8027
fixes #7984
2018-09-13 23:25:26 +02:00
Tobias Koppers 6dc4b5c876
Merge pull request #8017 from webpack/refactor/compilation
Refactor compilation
2018-09-12 14:57:31 +02:00
Tobias Koppers 5b4cbb5ee0 add queues to Compilation
remove Semaphore and use AsyncQueue instead
deprecate Module.needRebuild, add Module.needBuild
remove Module.unbuild
add Module.invalidateBuild
2018-09-12 13:17:03 +02:00
Tobias Koppers d48a331642 Split Compilation process in multiple methods 2018-09-12 13:17:02 +02:00
Tobias Koppers b098789625 remove recursive flag 2018-09-12 13:17:00 +02:00
Tobias Koppers 3c244d9fc9 Optimize error origin handling and module trace
Improve warnings and errors sorting
2018-09-12 13:16:59 +02:00
Tobias Koppers 9522ad72b3 make deprecations less noisy 2018-09-12 13:13:55 +02:00
Tobias Koppers fd0b6aa196 Merge tag 'v4.18.0' into next
4.18.0
2018-09-10 17:44:07 +02:00
Tobias Koppers e0e0061f32 Merge branch 'master' into chore-bump-webassemblyjs11 2018-09-10 15:18:38 +02:00
Florent Cailhol f75027475b Move HMR hotBoostrap hook 2018-09-07 14:14:10 +02:00
Tobias Koppers 7a43a27eda make Compilation.chunks a Set 2018-09-06 17:04:01 +02:00
Tobias Koppers 6ca7ae1c48 make Compilation.modules a Set 2018-09-06 17:03:24 +02:00
Tobias Koppers 4a959b8b83 improve SetHelpers typings 2018-09-06 17:02:20 +02:00
Tobias Koppers f47febd045 add deprecation helpers 2018-09-06 17:02:19 +02:00
Tobias Koppers 9da6003362 Make usedIds in records an array
Make emitted JSON for records stable
2018-09-06 16:05:29 +02:00
Tobias Koppers 0eafdffd0e Stabilize stats item order 2018-09-06 16:05:26 +02:00
Tobias Koppers 149043a134 Make create chunk and module ids filename safe 2018-09-05 21:29:22 +02:00
Tobias Koppers b4860ccebb refactor chunk id plugins 2018-09-05 14:28:52 +02:00
Tobias Koppers 4a7a85ca84 rename index/index2 to pre/postOrderIndex 2018-09-04 09:27:25 +02:00
Tobias Koppers 24185b5ee2 filter modules before sorting for performance reasons 2018-09-04 08:52:22 +02:00
Tobias Koppers 4d7b5b3b5e Refactor module id plugins to be independent 2018-09-03 20:45:44 +02:00
Tobias Koppers bd18e019d4 Clone module attributes instead of moving them 2018-09-03 20:12:55 +02:00
Florent Cailhol 8fda6a562e Add NaturalModuleIdsPlugin 2018-09-03 20:12:55 +02:00
Tobias Koppers 888ad3d684 insert concatenated module at correct position
fixes bug where ids are incorrectly assigned
2018-09-03 20:12:55 +02:00
Tobias Koppers 51a13926ad Merge tag 'v4.17.2' into next
4.17.2
2018-09-03 20:06:19 +02:00
Tobias Koppers 8c8719bd4a
Merge pull request #7954 from webpack/feature/split-chunk-type
add moduleType option to cacheGroup to select by module type
2018-09-03 19:13:26 +02:00
Tobias Koppers 41e59235df emit error when splitChunks.name points to existing chunk name 2018-09-03 10:37:43 +02:00
Tobias Koppers b87e93221b add type option to cacheGroup to select by module type 2018-09-03 10:36:24 +02:00
Tobias Koppers 604460da52 move iterable compare code to comparators 2018-08-28 15:10:30 +02:00
Tobias Koppers b669bec324 add caching to higher-order comparators 2018-08-28 15:09:09 +02:00
Tobias Koppers bad9d8a271 move Module.id into ChunkGraph
remove disconnect and unseal from Module
2018-08-28 15:08:52 +02:00
Tobias Koppers 02b15a1b46 pass chunkGraph to updateHash instead of moduleGraph
pass chunkGraph to compareModulesById instead of moduleGraph
pass chunkGraph to methods of RuntimeTemplate
use comparators from module at some places
2018-08-28 12:06:53 +02:00
aimergenge 7996883cab
solving outputing unnecessary spaces
`…` is causing terminals like git bash on windows to output unnecessary spaces
2018-08-28 16:09:21 +08:00
Tobias Koppers 239ce7fcd9 Use ChunkGraph instead of Compilation in updateHash 2018-08-24 12:02:42 +02:00
Philip Walton 12762ff37f Add sourcemap support for .mjs output files 2018-08-23 11:10:46 -07:00
Tobias Koppers 402cf189ce use JavascriptModulesPluginHooks.shouldRender correctly 2018-08-23 16:54:41 +02:00
Tobias Koppers 670502fc81 Move AsyncDependenciesBlock.chunkGroup into ChunkGraph 2018-08-22 20:17:49 +02:00
Tobias Koppers 3aa2280498 move Module.hash and .renderedHash into ChunkGraph 2018-08-22 19:24:54 +02:00
Tobias Koppers eb63cf80d6 move built flag into Compilation 2018-08-22 15:33:16 +02:00
Tobias Koppers e0f84652c0 remove Module.prefetched
remove prefeteched from Stats
make Compilation.addModuleChain public and remove onModule argument
remove Compilation.prefetch
2018-08-22 15:19:05 +02:00
Tobias Koppers b20556c1ff move profile to ModuleGraph 2018-08-22 14:54:28 +02:00
Tobias Koppers 4135c6e683 remove some unnecessary moduleGraph arguments and property accesses 2018-08-22 12:45:14 +02:00
Tobias Koppers 26022c86a0 move Module.depth into ModuleGraph
nested modules no longer have depth and stay unsorted in stats
2018-08-22 12:45:11 +02:00
Tobias Koppers fe54d717a2 refactor sorting in Stats 2018-08-22 12:45:08 +02:00
Tobias Koppers a92c23ef76 fixes #7930 2018-08-22 11:11:37 +02:00
Tobias Koppers 5a78e96dc9 add backward-compat layer for ModuleGraph and ChunkGraph 2018-08-21 16:17:02 +02:00
Tobias Koppers 42167db4af move Module.index and index2 into ModuleGraph 2018-08-21 16:16:51 +02:00
Tobias Koppers 4dfe88edb0 add moduleGraph argument to comparators 2018-08-21 11:08:07 +02:00
Tobias Koppers 0f1f69a9d6 hide id overriding in HarmonyImportSpecifierDependency 2018-08-21 11:06:59 +02:00
Tobias Koppers a875ddba5b refactor ModuleGraph to use internal dependency 2018-08-21 11:06:00 +02:00
Tobias Koppers 3bb5263bfd move methods from Module into ModuleGraph 2018-08-21 11:04:40 +02:00
Tobias Koppers c21d59f783 Merge tag 'v4.17.0' into next
4.17.0
2018-08-21 11:02:16 +02:00
Tobias Koppers 45e798af68
Merge pull request #7827 from AoDev/feat/ignore-plugin-check-fn
feat(IgnorePlugin): allow user to provide his own check functions
2018-08-21 10:24:32 +02:00
Tobias Koppers ed9691585e
Merge pull request #7907 from Connormiha/simplify-context-replacmnet-plugin
Get rid of typeof for checking undefined
2018-08-21 10:21:29 +02:00
Mihail Bodrov 1f954b4f12 Get rid typeof undef in all lib 2018-08-21 03:26:50 +03:00
Tobias Koppers c2e03951f4
Merge pull request #7922 from webpack/bugfix/concat-globals
fix exporting globals in scope-hoisted modules
2018-08-20 18:09:37 +02:00
Tobias Koppers 9315ce29aa fix exporting globals in scope-hoisted modules
fixes #7905
2018-08-20 10:54:05 +02:00
Tobias Koppers c253b4b130 chunk ids contribute to contenthash for javascript
fixes #7915
2018-08-20 10:04:33 +02:00
Mihail Bodrov efa69cd628 Get rid of typeof for checking undefined 2018-08-17 00:49:30 +03:00
Florent Cailhol a61778aad4 Change stage values 2018-08-16 14:10:55 +02:00
Florent Cailhol 7b02084bc5 Replace Basic and Advanced optimzation hooks by stages 2018-08-16 14:10:51 +02:00
Tobias Koppers a6e1c0693c add TODOs 2018-08-16 14:10:39 +02:00
Tobias Koppers 2dc22d0db0 add SingleEntryPlugin as deprecated export 2018-08-15 21:10:35 +02:00
Tobias Koppers 6d5310fbd6 allow multiple entryModules per chunk
allow to specify ChunkGroup to depend on
move entry modules into ChunkGraph
2018-08-15 11:51:16 +02:00
Kevin Purnelle 6235e99248 feat(IgnorePlugin): allow user to provide his own check functions
The user can provide checkResource and checkContext functions that
will be called with current resource or context respectively.

These functions should return a boolean to decide whether the module
should be ignored or not.

Now the constructor can accept a single option object.

```
const resourceRegExp = /a_regex/
const contextRegExp = /another_regex/

// before:
new webpack.IgnorePlugin(resourceRegExp, contextRegExp)

// alternative:
new webpack.ignorePlugin({resourceRegExp, contextRegExp})
```

Note that from Webpack 5, only passing an object will be allowed,
so we could encourage people to migrate already.
2018-08-14 17:20:10 +02:00
Tobias Koppers 3cf01999b5 add ChunkGraph
move chunk modules and module chunks into the ChunkGraph
remove outdated unit tests
2018-08-14 15:32:13 +02:00
Tobias Koppers 1345ab252d fixes #7887 2018-08-14 11:25:59 +02:00
Tobias Koppers f72d36b9cb add support for generics to tooling 2018-08-14 11:20:20 +02:00
Mihail Bodrov fb9b61b72f Avoid needless sort in Chunk compare 2018-08-13 01:08:30 +03:00
Tobias Koppers 72e8e5f552 fix nested modules 2018-08-09 20:32:31 +02:00
Florent Cailhol a945054079 Hide modules that are not emitted in stats 2018-08-09 20:22:09 +02:00
Tobias Koppers d35e42a14d move Module.issuer into Module.getIssuer(moduleGraph) 2018-08-09 16:44:28 +02:00
Tobias Koppers 34427c1845 migrate to init fragments in ConcatenatedModule 2018-08-09 15:45:45 +02:00
Tobias Koppers 3347700225 improve optimization bailout message usefulness 2018-08-09 15:45:30 +02:00
Sean Larkin 7dc00dbc09
chore(types): add jsdoc types for UnsupportedFeatureWarning class 2018-08-08 11:25:56 -07:00
Tobias Koppers 227952c914 put reexports into the correct init section when possible
fixes #7857
2018-08-08 14:12:54 +02:00
Tobias Koppers 3618cc1b3c remove originModule from Dependencies and add parent module to ModuleGraph 2018-08-07 14:20:53 +02:00
Tobias Koppers 038d056aed add some hints for breaking changes 2018-08-06 21:05:13 +02:00
Tobias Koppers d6cf42e4c2 merge used with usedExports
usedExports = false now means module is not used
2018-08-06 21:05:11 +02:00
Tobias Koppers c4e0a9f72e Move Module.used and Module.usedExports into ModuleGraph 2018-08-06 21:04:01 +02:00
Tobias Koppers 97cc9d7140 Move optimizationBailout into ModuleGraph meta information 2018-08-06 10:42:41 +02:00
Tobias Koppers 565b569b68 Merge tag 'v4.16.5' into next
4.16.5
2018-08-06 09:20:57 +02:00
Tobias Koppers 17ebfb9784 fix #7829
webpack-hot-client seem to call `addEntry` multiple
which causes two Entrypoints with the same name
This lead the bad side effects
i. e. optimization.runtimeChunk no longer works correctly

Now adding an entry with the same name replaces the existing entry
2018-08-03 11:09:26 +02:00
Tobias Koppers 61633aa91c fix #7778
remove prepend in favor of replaces
improve code style in ContextDependencyHelpers
2018-08-03 09:20:23 +02:00
Tobias Koppers 3ef5475183 filter connections while replacing module 2018-08-02 17:54:44 +02:00
Tobias Koppers 381e2db200 replace Module.reasons and Dependency.module with ModuleGraph 2018-08-02 17:54:44 +02:00
Tobias Koppers 11e127d162 pass moduleGraph along with multiple methods 2018-08-02 17:54:42 +02:00
Tobias Koppers ec1329a7d4 make libIdent required
add types
2018-08-02 16:29:20 +02:00
Tobias Koppers 78f01763a2 add getNumberofIdOccurrences to Dependency as override-able method 2018-08-02 16:07:29 +02:00
Tobias Koppers f89b599197 add types to Stats
move recorded property into a WeakMap
remove non-existing property
2018-08-02 16:07:29 +02:00
Tobias Koppers 831e71c797 make argument of DependencyTemplate an object 2018-08-02 16:07:29 +02:00
Tobias Koppers 4ce109f8c1 change arguments of Generator.generate and Module.source into a object to be easier extensible
add JavascriptModulesPlugin.getHooks().shouldRender to decide if a module should be rendered
2018-08-02 16:07:29 +02:00
Tobias Koppers f5a457ffd4 add ExportsSpec type to getExports 2018-08-02 16:04:10 +02:00
Tobias Koppers f68c1f7ab6 add additional arguments to updateHash 2018-08-02 16:04:10 +02:00
Tobias Koppers df204b8e35 add module graph 2018-08-02 16:04:09 +02:00
Tobias Koppers c9eb4c8e01 Merge tag 'v4.16.4' into next
4.16.4
2018-08-02 16:00:39 +02:00
Tobias Koppers a2bddc9195
Merge pull request #7821 from webpack/refactor/use_runtime
Use RuntimeTemplate to generate error code
2018-08-02 15:12:28 +02:00
EECOLOR 2348c3cdc1
Formatting - move arguments to the same line 2018-08-01 10:44:39 +02:00
EECOLOR 7473ed4902
Fix chunkAsset hook call
The `compilation.hook.chunkAsset` hook expects 2 parameters, not three.
2018-08-01 10:19:11 +02:00
Tobias Koppers 32fdca23bf
Merge pull request #7823 from flyyang/refactor/define-before-use-class
Refactor define before use class
2018-07-31 12:04:55 +02:00
Florent Cailhol 64e301c33b Update Prettier 2018-07-31 11:44:32 +02:00
Florent Cailhol 20406a4295 Update ESLint 2018-07-31 11:43:07 +02:00
Tobias Koppers 8ffcd9161e
Merge pull request #7781 from webpack/refactor/dep_vars
Refactor dependency variables
2018-07-31 09:08:48 +02:00
Florent Cailhol 367b02a0f0 Use RuntimeTemplate to generate error code 2018-07-31 09:01:06 +02:00
flyyang 5234abe7b6 Refactor define before use class 2018-07-31 14:17:44 +08:00
Tobias Koppers d6f8e49c3a refactor getInitFraments to take TemplateContext
add a hack to include the current module as property in source
later we will refactor DependencyTemplate.apply to take a TemplateContext too
2018-07-30 23:07:50 +02:00
Tobias Koppers 72cdb84967 bugfix harmony accept should ignore non-harmony modules 2018-07-30 23:07:43 +02:00
Tobias Koppers 7691bfa119 remove unused import 2018-07-30 23:07:37 +02:00
Tobias Koppers 5ae9491501 comments, renames 2018-07-30 23:07:30 +02:00
Tobias Koppers b2dca34043 some properties of dependencies should contribute to hash 2018-07-30 23:07:25 +02:00
Tobias Koppers 2e82dbb63c
Merge pull request #7813 from webpack/refactor/freeze_hooks
Freeze hooks to prevent deopts
2018-07-30 22:47:13 +02:00
Tobias Koppers 8a996186a0 remove range from ModuleDecoratorDependency 2018-07-30 22:42:15 +02:00
Tobias Koppers c5c4f6bdd3 remove DependencyTemplate.getInitFragments.source 2018-07-30 22:42:01 +02:00
Tobias Koppers 294acc00e0 use InitFragment.key to handle harmony import deduplication 2018-07-30 22:41:49 +02:00
Tobias Koppers 0f57f0b5f1 add no-op comment to make it more clear 2018-07-30 22:40:43 +02:00
Tobias Koppers 872839450f move ModuleDecoratorDependency into a separate file 2018-07-30 22:40:31 +02:00
Tobias Koppers 691a5b24b7 simplify addExpression 2018-07-30 22:39:30 +02:00
Tobias Koppers 35547246f9 Hoist require.resolve for performance reasons 2018-07-30 22:39:17 +02:00
Tobias Koppers e79d4e002b add stage to InitFragment 2018-07-30 22:39:04 +02:00
Florent Cailhol 0241db90fb Fix harmony compat injection order 2018-07-30 22:38:40 +02:00
Florent Cailhol a19a0ebaa6 Refactor ProvidedDependency to avoid duplication 2018-07-30 22:38:28 +02:00
Florent Cailhol 71016b1433 Remove DependencyBlockVariable 2018-07-30 22:38:13 +02:00
Florent Cailhol 5553166603 Remove addParsedVariableToModule helper 2018-07-30 22:38:00 +02:00
Florent Cailhol bc62f58c44 Convert ProvidePlugin 2018-07-30 22:37:48 +02:00
Florent Cailhol c545a02ba6 Convert NodeStuffPlugin 2018-07-30 22:37:34 +02:00
Florent Cailhol 6ea5a4ad22 Add types 2018-07-30 22:37:10 +02:00
Florent Cailhol 5a5c4b1b1e Remove unused parser helper 2018-07-30 22:36:57 +02:00
Florent Cailhol 12f3c0f34e Fix TypeError when no import fragments are emitted 2018-07-30 22:36:39 +02:00
Florent Cailhol 55b73a54af Return null when no InitFragment is required 2018-07-30 22:36:23 +02:00
Florent Cailhol 9b7d9eb96f Fix review comments 2018-07-30 22:36:06 +02:00
Florent Cailhol f6a5053fb2 Add a way to inject provided modules 2018-07-30 22:35:52 +02:00
Florent Cailhol f53c50e21a Dedup fragments 2018-07-30 22:35:02 +02:00
Florent Cailhol dcebd57aa4 Replace harmonyInit calls by InitFragments 2018-07-30 22:34:18 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Florent Cailhol 3992ba3af6 Convert Template to ES6 2018-07-30 19:40:09 +02:00
Florent Cailhol fc4f30329d Freeze hooks to prevent deopts 2018-07-30 14:25:40 +02:00
Tobias Koppers 138687730a only assign module ids for modules in chunks
handle weak dependencies without id correctly
2018-07-27 13:16:54 +02:00
Tobias Koppers 6d9e4f315b Use natural module/chunk ids in mode none 2018-07-27 12:27:57 +02:00
Tobias Koppers 3771daba6a Merge tag 'v4.16.3' into next
4.16.3
2018-07-27 12:21:04 +02:00
Tobias Koppers aac43687fd fix case where empty chunkgroups cause nested chunkgroups to vanish 2018-07-27 10:56:01 +02:00
Florent Cailhol 29c99b1787 Convert GraphHelpers 2018-07-26 22:43:20 +02:00
Florent Cailhol 0db953fae6 Convert SetHelpers 2018-07-26 22:39:36 +02:00
Florent Cailhol 41dd5a9ed1 Convert LocalModulesHelpers 2018-07-26 22:37:36 +02:00
Florent Cailhol dad4a4c539 Convert SizeFormatHelpers 2018-07-26 22:37:21 +02:00
Tobias Koppers 2fa351a178 make ExportMode.module a callback function
fix comment
2018-07-26 15:53:11 +02:00
Florent Cailhol 60ef6a6a30 Make DependencyReference dynamic 2018-07-26 15:31:04 +02:00
Tobias Koppers e02a0c9ecd add types to Template 2018-07-25 13:56:40 +02:00
Tobias Koppers 77e4a2b34c add types to WebAssemblyImportDependency 2018-07-25 13:53:07 +02:00
Tobias Koppers 025d3d0836 remove unused code 2018-07-25 13:17:44 +02:00
Tobias Koppers ea96c6bc93 type templates in ConcatenatedModule 2018-07-25 13:16:08 +02:00
Tobias Koppers 22c4756c9e add more types to Module 2018-07-25 12:38:34 +02:00
Tobias Koppers 0052861178 remove unconsistency with Module._source and originalSource 2018-07-25 12:20:35 +02:00
Tobias Koppers bc10939096 add types for Module and subclasses
better way to handle "optional" methods
2018-07-25 12:12:17 +02:00
Sven SAULEAU 38c34030a0
Merge remote-tracking branch 'upstream/master' into chore-bump-webassemblyjs11 2018-07-25 10:06:37 +02:00
Tobias Koppers eba85a491d add types to Dependency and subclasses 2018-07-25 09:33:48 +02:00
Tobias Koppers fcf3f63f0e add DependencyTemplate base class and inherit types from this
fix a few typing issues
2018-07-23 20:11:59 +02:00
Tobias Koppers 543b4b6dcc add a few types that were missed last time 2018-07-23 17:58:00 +02:00
Tobias Koppers 7036ec488b remove the need to rewrite chunk in reasons 2018-07-23 12:20:47 +02:00
Tobias Koppers 66d3f319a6 Merge tag 'v4.16.2' into next
4.16.2
2018-07-23 12:19:16 +02:00
Tobias Koppers b8c47a7688
Merge pull request #7628 from reduckted/dllreferenceplugin-graceful-json-parse-failure
Catch errors while parsing DLL manifest
2018-07-23 10:37:47 +02:00
Tobias Koppers 699fe21158
Merge pull request #7750 from ak-14/node-dependencies
Handle module.require, require.main.require, and module.parent.require
2018-07-23 10:34:53 +02:00
Tobias Koppers 8614c75f11 run inherit types tool on existing code 2018-07-21 13:50:18 +02:00
Tobias Koppers dcd644253f
remove comment 2018-07-20 09:28:48 +02:00
Abdulrahman Alkhelaifi 80c3e433c4 Handle module.require, require.main.require, and module.parent.require
- Resolve module.require dependencies

- Add require.main.require and module.parent.require as unsupported
2018-07-19 13:41:58 -07:00
Tobias Koppers e80d49445c fix sorting of reasons 2018-07-19 19:44:44 +02:00
Tobias Koppers 9fd6af8121
Merge pull request #7657 from mohsen1/enable-noImplicitThis
Enable noImplicitThis TypeScript compiler option
2018-07-18 00:11:56 +02:00
Tobias Koppers bc863596f4
remove unneeded type import 2018-07-17 11:47:22 +02:00
Tobias Koppers 537bfc8b3b Merge branch 'next' into remove/deprecated-optimization-ids 2018-07-17 11:33:22 +02:00
Tobias Koppers 249e7d56bb fix merge issue 2018-07-17 11:32:15 +02:00
Mohsen Azimi b3a7c4dd32 Merge branch 'master' of git://github.com/webpack/webpack into ContextExclusionPlugin-types 2018-07-16 20:57:03 -07:00
Sven SAULEAU b310b9b45c
feat: remove LEB128 opt 2018-07-16 13:57:32 +02:00
Tobias Koppers 05f05e1759 Merge remote-tracking branch 'origin/refactor/chunk_module_ids' into remove/deprecated-optimization-ids 2018-07-16 10:38:43 +02:00
Tobias Koppers 5e72a6505a remove deprecated optimization options
and update test cases
2018-07-16 10:32:02 +02:00
Tobias Koppers 86ff1a4642 Merge tag 'v4.16.1' into next
4.16.1
2018-07-16 10:30:31 +02:00
Tobias Koppers 1a16a79480 Merge remote-tracking branch 'origin/master' into enable-noImplicitThis 2018-07-16 10:18:25 +02:00
Tobias Koppers db1475cb8c
Merge pull request #7656 from mohsen1/DefinePlugin-type
Add DefinePlugin JSDoc types
2018-07-15 20:30:07 +02:00
Tobias Koppers 3f13ed765f
Merge pull request #7706 from webpack/remove/format-location
update formatLocation to only accept location objects
2018-07-15 20:27:11 +02:00
Tobias Koppers 2702273f6f
Merge pull request #7726 from webpack/update/linters
Update ESLint and Prettier
2018-07-15 20:24:00 +02:00
Tobias Koppers 60719c16b0
Merge pull request #7669 from webpack/refactor/compareLocations
No longer accept strings in compareLocations
2018-07-15 13:23:16 +02:00
Tobias Koppers 84d57e38b4
Merge branch 'master' into DefinePlugin-type 2018-07-15 10:10:33 +02:00
Tobias Koppers 9f0eeed919 fix unit test, add handling for line only location 2018-07-15 09:57:36 +02:00
Florent Cailhol 7195bae9b4 Update ESLint and Prettier 2018-07-14 22:52:42 +02:00
Florent Cailhol 1f0e77c9de Change how non-objects are handled 2018-07-14 22:36:02 +02:00
Florent Cailhol fe29426200 Remove Dependency.compare 2018-07-14 22:36:02 +02:00
Florent Cailhol 445c2c889c No longer accept strings in compareLocations 2018-07-14 22:35:43 +02:00
Florent Cailhol 0448c1c338 Use chunkIds and moduleIds 2018-07-14 21:59:42 +02:00
Florent Cailhol ee64e6dcfc Default 'source' to 'false' for stats 2018-07-14 21:28:26 +02:00
Tobias Koppers b0518552e5
Merge pull request #7707 from webpack/remove/deprecated
remove deprecated stuff
2018-07-13 21:36:19 +02:00
Tobias Koppers 24cfc39658 fix loc object in ModuleParseError 2018-07-13 21:30:55 +02:00
Tobias Koppers a672e8f2f9 remove deprecated extracted hooks 2018-07-13 17:30:26 +02:00
Tobias Koppers dbfea49e6f fix case where non-object is passed to addOrigin
add typings to ensure that this doesn't happen again
2018-07-13 17:27:31 +02:00
Tobias Koppers 753dcce188 fix order of occurrence order plugin
remove enforced additional occurrence order plugin from test cases
make test cases more independent of module/chunk order/ids
2018-07-13 16:15:01 +02:00
Mohsen Azimi d3bbb6d7cb Merge branch 'master' of git://github.com/webpack/webpack into ContextExclusionPlugin-types 2018-07-12 18:08:15 -07:00
Mohsen Azimi 2fd5ddfea6 cr 2018-07-12 18:08:06 -07:00
Mohsen Azimi c3c4494a83 cr 2018-07-12 18:06:21 -07:00
Mohsen Azimi b0061c7fed Code review 2018-07-12 18:00:44 -07:00
Tobias Koppers ff7d0f56e7
Merge pull request #7704 from webpack/refactor/dependency-templates
make DependencyTemplates a new class
2018-07-12 19:11:58 +02:00
Tobias Koppers ef40df2d1f fix usage of DependencyTemplates and types 2018-07-12 17:12:00 +02:00
Mohsen Azimi d539bb1101 Drop entrypoint 2018-07-11 19:00:17 -07:00
Tobias Koppers 568601c7fa remove `exec` from loader context
`require-from-string` can be used instead
2018-07-11 17:48:47 +02:00
Tobias Koppers e0abce0dd8 make DependencyTemplates a new class 2018-07-11 13:11:08 +02:00
Tobias Koppers 9f188a8daa update formatLocation to only accept location objects 2018-07-11 13:10:51 +02:00
Tobias Koppers 1d87734832 remove backward-compat wrapper from splitChunks.cacheGroups argument 2018-07-11 13:08:33 +02:00
Tobias Koppers 2b14ddc984 Merge tag 'v4.16.0' into next
4.16.0
2018-07-11 11:13:47 +02:00
Tobias Koppers 569c415623
Merge branch 'master' into enable-noImplicitThis 2018-07-11 08:43:26 +02:00
Tobias Koppers 6f72243669
Merge pull request #7700 from webpack/bugfix/loc-in-single-entry-and-loader-plugin
add types and fix incorrect loc type
2018-07-11 08:06:09 +02:00
Tobias Koppers 3366421f17
Merge pull request #7663 from webpack/feature/automatic-name-prefix
automaticNamePrefix and name merging bugfix
2018-07-10 20:45:52 +02:00
Tobias Koppers 8891bd5f04
Merge pull request #7696 from webpack/bugfix/max-size-reasons
copy chunk reason to maxSize parts
2018-07-10 20:43:19 +02:00
Tobias Koppers b93225a6a1 add types and fix incorrect loc type
fix formatLocation for types
2018-07-10 18:18:32 +02:00
Tobias Koppers baa450dc4d
Merge pull request #7698 from webpack/bugfix/deprecated
replace deprecated method
2018-07-10 16:36:54 +02:00
Tobias Koppers b32a4f5f64
Merge branch 'master' into bugfix/max-size-reasons 2018-07-10 16:13:47 +02:00
Tobias Koppers f95d0f0537
Merge pull request #7695 from webpack/bugfix/sort-ids-stats
sort ids in Stats numerical
2018-07-10 16:13:13 +02:00
Tobias Koppers 1869d8e300
Merge pull request #7694 from webpack/bugfix/loc-in-context
make loc in context dependencies a correct object
2018-07-10 16:12:50 +02:00
Tobias Koppers 78d8f4a011
Merge pull request #7691 from mathiasbynens/mjs
Add .mjs to default DelegatedModule options.extensions
2018-07-10 16:11:52 +02:00
Tobias Koppers 8876514cdb replace deprecated method 2018-07-10 16:03:13 +02:00
Tobias Koppers 692faf2e45 sort ids in Stats numerical 2018-07-10 11:32:45 +02:00
Mathias Bynens d8cd5d04de
Add .mjs to default DelegatedModule options.extensions 2018-07-10 11:12:08 +02:00
Tobias Koppers 9362a65287 copy chunk reason to maxSize parts 2018-07-10 10:28:06 +02:00
Tobias Koppers 79846d138f make loc in context dependencies a correct object 2018-07-10 10:25:13 +02:00
Tobias Koppers 9f0056b10d
Merge pull request #7686 from webpack/feature/module-chunk-ids-option
add new options moduleIds and chunkIds
2018-07-10 10:19:03 +02:00
Tobias Koppers 2db829f306
Merge pull request #7688 from RaananW/output-lib-root-as-array
devtool and output.library.root as array throws an error
2018-07-10 09:41:41 +02:00
Tobias Koppers d5983ed62b
Merge pull request #7687 from webpack/chore/imports
Simplify imports
2018-07-10 09:40:07 +02:00
Tobias Koppers 24b96463ce
Merge pull request #7685 from zroug/electron-renderer-wasm
Added support for WebAssembly modules when target is set to `electron-renderer`
2018-07-10 09:39:51 +02:00
ferhat elmas 271b77d45f all: typo fixes 2018-07-09 22:54:35 +02:00
Raanan Weber fa7cf3b218
formatting 2018-07-09 17:50:13 +02:00
Raanan Weber c12ab8d5e4 Recursive getDevtoolNamespace
Supporting the case where options.output.library.root is an Array:

```javascript
output: {
  library: {
    root: ["MyLibrary", "Sub"],
    amd: "my-library",
    commonjs: "my-common-library"
  },
  libraryTarget: "umd"
}
```
2018-07-09 17:28:32 +02:00
Tobias Koppers 559cf94edb Simplify imports 2018-07-09 15:09:00 +02:00
Tobias Koppers 3fc4eb752f add new options moduleIds and chunkIds
deprecate namedModules, hashedModuleIds, namedChunks
add a lot of TODOs for webpack 5
split OccurenceOrderPlugin into separate plugins for modules and chunks
add NaturalChunkOrderPlugin and enable it in development
2018-07-09 15:06:19 +02:00
zroug b892065db0 Added support for WebAssembly modules when target is `electron-renderer` 2018-07-09 14:39:48 +02:00
Tobias Koppers c7c34886ff
Merge pull request #7672 from webpack/refactor/hmr_hooks
Refactor HMR hooks
2018-07-09 13:20:35 +02:00
Tobias Koppers 0c5433ce6f
Merge pull request #7673 from webpack/refactor/jsonp_hooks
Use JsonpMainTemplatePlugin.hooks instead of MainTemplate#hooks
2018-07-09 13:19:29 +02:00
Florent Cailhol 5c8983f31f Deprecate Dependency.compare 2018-07-09 08:49:01 +02:00
Florent Cailhol c9bd29cdf5 Add type guard 2018-07-09 08:44:50 +02:00
Florent Cailhol 838002baad Add type guard 2018-07-09 08:43:45 +02:00
Florent Cailhol 668c2e428c Introduce HMRP.hooks instead of extending Parser#hooks 2018-07-09 08:43:45 +02:00
Tobias Koppers d24e49c5dd
Merge pull request #7670 from webpack/refactor/remove_some_checks
Remove extra arguments checks
2018-07-08 13:38:03 +02:00
Tobias Koppers 10430aed8c
Merge pull request #7671 from webpack/refactor/webpack_web
Remove obsolete webpack.web.js
2018-07-08 13:33:06 +02:00
Sean Larkin 2d9db1a1f6 chore(types): add types to EnvironmentPlugin 2018-07-08 08:15:02 +01:00
Florent Cailhol 4984ed17a2 Remove Dependency#getReference existance check 2018-07-06 13:43:36 +02:00
Florent Cailhol 8e456f58ec Use JsonpMainTemplatePlugin.hooks instead of MainTemplate#hooks 2018-07-06 13:19:03 +02:00
Florent Cailhol 854bdafce4 Remove webpack.web.js and its deps 2018-07-06 11:48:19 +02:00
Florent Cailhol 26d33424bb Replace basename helper by node's one 2018-07-06 11:20:01 +02:00
Florent Cailhol 112af1e7ec Remove unneeded arguments checks 2018-07-06 11:19:30 +02:00
Tobias Koppers 6623a2e292 Merge tag 'v4.15.1' into next
4.15.1
2018-07-06 09:33:43 +02:00
Tobias Koppers 93a28126a6 fixes order for reexported dependencies
fixes #7665
2018-07-05 20:40:19 +02:00
Tobias Koppers 6f53dbe31d
Merge pull request #7655 from skratchdot/issue-7654
prevent UnhandledPromiseRejectionWarning in node 6
2018-07-05 15:11:27 +02:00
Tobias Koppers 7fc88cd55f
Merge pull request #7662 from webpack/bugfix/undefined-in-max-size
fixes usage of automaticNameDelimiter in cache groups
2018-07-05 14:42:19 +02:00
Tobias Koppers 9344801fb7 fix wrong priority handling when merging multiple cache groups by name 2018-07-05 14:39:07 +02:00
Tobias Koppers 14968acc00 add automaticNamePrefix option
allow automaticNameDelimiter on cacheGroup level
2018-07-05 14:13:13 +02:00
Tobias Koppers 67d932dfe9
Merge pull request #7661 from webpack/bugfix/split-chunks-leak
make the cache a WeakMap to not leak memory
2018-07-05 13:33:31 +02:00
Tobias Koppers 8e8f1856e9 fixes usage of automaticNameDelimiter in cache groups 2018-07-05 13:19:55 +02:00
Tobias Koppers 64b22c4806 make the cache a WeakMap to not leak memory
fixes #6929
2018-07-05 12:50:51 +02:00
Tobias Koppers 6172d3c2eb fix memory leak with HMR
fixes #6929
2018-07-05 11:25:34 +02:00
Tobias Koppers 3b6f475635
Use push null to end the stream 2018-07-05 10:32:53 +02:00
Mohsen Azimi 57f21c0d20 Add JSDoc types for ContextExclusionPlugin 2018-07-05 08:20:24 +03:00
Mohsen Azimi a0e1ad920e Enable noImplicitThis TypeScript compiler option 2018-07-05 08:07:46 +03:00
Tobias Koppers 0a06f19fd8 Merge tag 'v4.15.0' into next
4.15.0
2018-07-04 22:19:50 +02:00
Tobias Koppers bd2e3448ec Merge tag 'v4.14.0' into next
4.14.0
2018-07-04 22:10:53 +02:00
Tobias Koppers f0ae54d478 Merge tag 'v4.13.0' into next
4.13.0
2018-07-04 22:08:31 +02:00
Tobias Koppers 994675c4fe Merge tag 'v4.12.2' into next
4.12.2
2018-07-04 21:55:42 +02:00