Commit Graph

8011 Commits

Author SHA1 Message Date
Tobias Koppers 59e67d8fa4 optimize array operation 2018-12-06 21:00:50 +01:00
Tobias Koppers 2b518a6c67 Wrap chunk ids in table in correct syntax 2018-12-06 21:00:43 +01:00
Tobias Koppers e5e0f44e29 add algorithm to extract graph roots
show only graph roots in chunks by default
2018-12-06 20:57:04 +01:00
Tobias Koppers adb7076609
Merge pull request #8469 from webpack/refactor/amd_buildin
Use RuntimeModule for AMDPlugin
2018-12-06 20:28:57 +01:00
Tobias Koppers 3afdccbe3d
Merge pull request #8459 from webpack/feature/source-type-size
Add support for multiple different sizes per module
2018-12-06 19:52:50 +01:00
Florent Cailhol 1d90704bc7 Replace AMD buildins by runtime modules 2018-12-06 15:14:43 +01:00
Florent Cailhol 82e75b8eb3 Tweak SystemPlugin 2018-12-06 14:54:27 +01:00
Tobias Koppers 6b75ff0dea
Merge pull request #8461 from webpack/refactor/deprecate_asp
Deprecate AggressiveSplittingPlugin
2018-12-06 12:34:07 +01:00
Tobias Koppers 387803bf3d re-add accidentally removed type 2018-12-05 20:23:47 +01:00
Tobias Koppers 40e4860aef Use correct size of getIntegratedChunksSize 2018-12-05 20:23:45 +01:00
Tobias Koppers a3edfe6ef6 Support sizes for chunk and in stats for chunk 2018-12-05 20:23:43 +01:00
Tobias Koppers 30a68b20c7 support different size types in SplitChunksPlugin 2018-12-05 20:23:40 +01:00
Tobias Koppers 2b68e46906 show all sizes in stats 2018-12-05 20:19:02 +01:00
Tobias Koppers cc34ea42b0 add type argument to Module.size
add getSize to Generator
2018-12-05 20:18:59 +01:00
Tobias Koppers dff9278d6b add Module.getSourceTypes
getSourceTypes declares all source types which can be generated
Remove shouldRender in favor of source type testing
2018-12-05 20:18:57 +01:00
Tobias Koppers 0cd0291011 Merge tag 'v4.27.1' into next
4.27.1
2018-12-05 20:17:58 +01:00
Tobias Koppers 4056506488 4.27.1 2018-12-05 20:12:56 +01:00
Tobias Koppers f29ca64ebb
Merge pull request #8466 from webpack/bugfix/splitChunks-enforce
enforce should not prevent using `minChunks` etc. on cacheGroup
2018-12-05 20:11:50 +01:00
Tobias Koppers 5c53283457
Merge pull request #8465 from webpack/refactor/system_buildin
Use a runtime module to inject System polyfill
2018-12-05 19:43:59 +01:00
Tobias Koppers b56727ec83 enforce should not prevent using `minChunks` etc. on cacheGroup
Partial revert "enforce doesn't affect minSize for maxSize"
2018-12-05 19:38:10 +01:00
Florent Cailhol 29bfa35cc7 Fix typings 2018-12-05 19:21:18 +01:00
Florent Cailhol bfb9df6c20 Use a runtime module to inject System polyfill 2018-12-05 19:02:22 +01:00
Florent Cailhol 1c4d973be7 Deprecate AggressiveSplittingPlugin 2018-12-05 15:02:45 +01:00
Tobias Koppers e5e648061c
Merge pull request #8448 from sodatea/wasm-resolve
fix: `.wasm` extension should have lower priority when resolving modules
2018-12-05 12:36:11 +01:00
Tobias Koppers 0ff1a4f8f8 Merge tag 'v4.27.0' into next
4.27.0
2018-12-04 11:02:26 +01:00
Tobias Koppers f47bf8b64f 4.27.0 2018-12-04 10:30:57 +01:00
Tobias Koppers a67ffcda1c
Merge pull request #8452 from webpack/feature/resolveWithOptions
add getResolve method to loader context
2018-12-04 10:18:52 +01:00
Tobias Koppers 96f625c5e3
Merge pull request #8457 from webpack/bugfix/rebuild-provided-exports
fix a bug which causes incorrect providedExports for cached modules
2018-12-04 10:18:35 +01:00
Tobias Koppers 56feccc369 convert test case to normal function for node.js 6 support 2018-12-04 09:55:24 +01:00
Tobias Koppers 2f4296e8d9 fix a bug which causes incorrect providedExports for cached modules
Always update providedExports when they have dependencies

fixes #8455
2018-12-04 09:51:54 +01:00
Tobias Koppers f944002bcd
Merge pull request #8451 from webpack/bugfix/split-chunks
enforce doesn't affect minSize for maxSize
2018-12-03 12:42:50 +01:00
Tobias Koppers 162da1c509 add getResolve method to loader context
with allows to pass options
2018-12-03 12:42:28 +01:00
Tobias Koppers 3b46b48fa7 enforce doesn't affect minSize for maxSize
enforce now works as documented
emit warning for minSize > maxSize configuration
performance improvements
bugfix when multiple cacheGroups have the same name

fixes #8407
2018-12-03 11:57:33 +01:00
Haoqun Jiang 8a083ff48c
fix: also change WebpackOptionsDefaulter 2018-12-01 18:40:17 +08:00
Tobias Koppers 0b0f593ab7
Merge pull request #8438 from webpack/feature/runtime-module
Refactoring to move runtime into RuntimeModules
2018-12-01 11:25:30 +01:00
Haoqun Jiang 4d24c5e78a
fix: `.wasm` extension should have lower priority when resolving modules
fixes #8445
2018-12-01 00:25:10 +08:00
Tobias Koppers bc2af64295 don't run minimizer for performance reasons 2018-11-30 15:51:45 +01:00
Tobias Koppers 67e92aa054 remove weird handlers added by wabt 2018-11-30 15:29:31 +01:00
Tobias Koppers 72a8a1f97e
Merge pull request #8440 from Connormiha/oprimize-chunk-can-be-integrated
Cache hasRunstime in chunk
2018-11-30 14:30:26 +01:00
Tobias Koppers 5687cf71d0 increase timeout for tests 2018-11-30 14:24:16 +01:00
Tobias Koppers 911c64ff3a increase timeout for tests 2018-11-30 13:40:29 +01:00
Tobias Koppers e320176d4d add helper to decode the debug hash when needed 2018-11-30 13:20:39 +01:00
Tobias Koppers a8e51c322b make hashing more consistent 2018-11-30 13:19:55 +01:00
Tobias Koppers 6388108e0d refactor AMDDefineDependency defintions for better readablility 2018-11-30 12:23:20 +01:00
Tobias Koppers 5656d7d8cd make APIPlugin dependencies consistent 2018-11-30 12:22:36 +01:00
Tobias Koppers 49f79cb702 add types to new hooks 2018-11-30 12:21:57 +01:00
Tobias Koppers 4bc36e80f6 replace context with var 2018-11-30 12:16:38 +01:00
Tobias Koppers 11aafea92a fix test case 2018-11-30 11:55:23 +01:00
Tobias Koppers c2e90eddb2 allow to add more debug info to the test running 2018-11-30 11:55:20 +01:00
Tobias Koppers 25d286014c fix a memory leak 2018-11-30 11:19:14 +01:00