Florent Cailhol
5923c62fdf
Export NodeEnvironmentPlugin
2018-12-10 11:40:59 +01:00
Florent Cailhol
9caaa664f7
Refactor webpack main
2018-12-09 15:32:03 +01:00
Tobias Koppers
0d2faa0d0a
Merge pull request #8460 from webpack/refactor/node_polyfills
...
Do not polyfill node bindings by default
2018-12-08 12:23:24 +01:00
Tobias Koppers
9023d213e0
Merge pull request #8477 from webpack/feature/better-chunk-ids
...
improve ids for Long Term Caching
2018-12-08 09:56:21 +01:00
Tobias Koppers
3c3ec62933
vertical lines in child compiler name will show as space in stats
2018-12-08 09:35:15 +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
185aa2b973
Fix unittest
2018-12-07 20:16:39 +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
Tobias Koppers
d544027af7
fix Compiler test
2018-12-07 16:37:22 +01:00
Tobias Koppers
a83e0daca6
replace RequestShortener with contextify in id generation
2018-12-07 16:07:40 +01:00
Tobias Koppers
a21bc44345
ignored module no longer contain context path
2018-12-07 15:46:32 +01:00
Tobias Koppers
350817ea4f
make identifier of ConcatenatedModule context-independent
2018-12-07 15:36:49 +01:00
Tobias Koppers
f60c8d8f0e
bugfixes and optimizations
...
optimize name map for name equals id
bugfixes in named ids assigning
assign name before automatic ids
2018-12-07 15:14:14 +01:00
Tobias Koppers
ca46218787
add defaults for deterministic id plugins
2018-12-07 14:47:25 +01:00
Tobias Koppers
fe80339d71
use - instead of ~ as default for better compat
...
fix automaticNameDelimiter in splitChunks
fix test cases
2018-12-07 14:46:49 +01:00
Tobias Koppers
8281667668
improve ids for Long Term Caching
...
add deterministic chunk ids and make it default
StatsTestCases no longer need to explicitly use natural ids as the defaults are deterministic now too
add concept of id name hints for chunks
add `idHint` option to splitChunks to provide a hint
deduplicated code from different id plugins to IdHelpers
improve behavior of named ids in case of conflicts
remove `name: true` and `automaticNamePrefix` from splitChunks it's not as good as expected
improve named chunk ids to show root modules
2018-12-07 12:26:35 +01:00
Florent Cailhol
3c50dba922
Remove global buildin
2018-12-07 08:59:41 +01:00
Florent Cailhol
a68426e925
Add error message
2018-12-07 08:58:55 +01:00
Florent Cailhol
002128c288
Do not polyfill node bindings by default
2018-12-07 08:58:26 +01:00
Tobias Koppers
180c58df16
Merge pull request #8472 from webpack/refactor/module_buildin
...
Replace module buildins by runtime modules
2018-12-07 08:45:00 +01:00
Florent Cailhol
a2ccf34d98
Fix ModuleDecoratorDependency serialization
2018-12-06 22:16:56 +01:00
Florent Cailhol
c148033fe9
Remove module.webpackPolyfill guard
2018-12-06 22:16:55 +01:00
Florent Cailhol
74e6346363
Replace module buildins by runtime modules
2018-12-06 22:16:31 +01:00
Tobias Koppers
a20f621263
Merge pull request #8468 from webpack/feature/chunk-root-modules
...
add algorithm to extract graph roots
2018-12-06 22:07:37 +01:00
Tobias Koppers
bc667a50b1
algorithm improvements
2018-12-06 21:00:57 +01:00
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