Tobias Koppers
86ff1a4642
Merge tag 'v4.16.1' into next
...
4.16.1
2018-07-16 10:30:31 +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
a672e8f2f9
remove deprecated extracted hooks
2018-07-13 17:30:26 +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
Tobias Koppers
e0abce0dd8
make DependencyTemplates a new class
2018-07-11 13:11:08 +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
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
9362a65287
copy chunk reason to maxSize parts
2018-07-10 10:28:06 +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
ferhat elmas
271b77d45f
all: typo fixes
2018-07-09 22:54:35 +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
Tobias Koppers
6623a2e292
Merge tag 'v4.15.1' into next
...
4.15.1
2018-07-06 09:33:43 +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
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
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
994675c4fe
Merge tag 'v4.12.2' into next
...
4.12.2
2018-07-04 21:55:42 +02:00
Tobias Koppers
fb2c24bf76
add `splitChunks.maxSize` option
...
add `splitChunks.fallbackCacheGroup`
add `splitChunks.hidePathInfo`
move `contextify` into utils
add some types
2018-07-04 10:45:02 +02:00
Florent Cailhol
d33f49d96f
Rename Parser into JavascriptParser
2018-07-03 14:08:43 +02:00
Tobias Koppers
2aac83bd95
rename optimization.splitChunks.cacheGroups.vendors -> defaultVendors
...
add automaticNamePrefix option
allow automaticNameDelimiter on cacheGroup level
2018-07-02 10:15:13 +02:00
Tobias Koppers
949df5bb5a
update webpack-sources types and remove second argument
2018-06-29 19:12:33 +02:00
Tobias Koppers
6e68f96d16
Merge branch 'master' into feature/type-compiler-compilation-save
2018-06-29 19:02:35 +02:00
Tobias Koppers
d0c89618f3
Merge branch 'master' into feature/type-compiler-compilation-save
2018-06-27 14:58:10 +02:00
Tobias Koppers
7beac3c645
Merge branch 'master' into feature/hook-into-get-reference
2018-06-27 14:34:28 +02:00
Tobias Koppers
ab7ecb30ee
fixes #7499
2018-06-26 15:27:44 +02:00
Tobias Koppers
41343d1763
add TODO comments
2018-06-25 16:18:21 +02:00
Tobias Koppers
be896f2b34
fix bug
2018-06-23 15:30:04 +02:00
Tobias Koppers
3502287bbb
emit correct code for reexport unused exports
2018-06-23 15:13:17 +02:00
Tobias Koppers
50fe2e79ee
add Compilation.getDependencyReference and hooks to override it
...
expose DependencyReference class
2018-06-23 15:13:14 +02:00
Tobias Koppers
e1f0a66fd9
add note about webpack 5 refactoring
2018-06-23 14:47:09 +02:00
Sean Larkin
c3ebef7f25
Merge branch 'master' into feature/type-compiler-compilation-save
2018-06-21 11:07:33 +03:00
Tobias Koppers
6f90257b5b
Merge pull request #7507 from webpack/feature/dependency-order
...
add order to dependency reference
2018-06-20 12:17:26 +02:00
Tobias Koppers
58ac64023c
Merge pull request #7558 from webpack/bugfix/split-chunks-reuse
...
fixes #7499
2018-06-20 10:39:39 +02:00
Tobias Koppers
3f6450410a
improve error message for circular reexports
...
fixes #7547
2018-06-19 23:19:28 +02:00
Tobias Koppers
994613bc20
fixes #7499
2018-06-19 20:47:48 +02:00
Tobias Koppers
dabbfa7c4e
remove unneeded array
2018-06-08 13:21:18 +02:00
Tobias Koppers
b4699c0657
add order for DependencyReference
...
and add types for touched code
2018-06-08 13:20:57 +02:00
Sean Larkin
1bae93852a
Merge branch 'master' into feature/type-compiler-compilation-save
2018-05-30 19:35:36 -07:00
Tobias Koppers
271fb7b543
more performant changing of reasons
2018-05-30 20:04:37 +02:00
Tobias Koppers
6390240e05
rewrite module reference correctly after replacing ConcatenatedModule
...
fixes #7443
2018-05-30 09:51:11 +02:00
Florent Cailhol
2a9452e51b
Add brackets for multiline if/for statements
2018-05-29 15:45:44 +02:00
Tobias Koppers
c01cb97609
Merge commit 'ba703401d580ad623af17fe96ed98b4d801e0313'
...
# Conflicts:
# test/__snapshots__/StatsTestCases.test.js.snap
2018-05-29 15:37:58 +02:00
Tobias Koppers
351c9936e6
fixup reasons when redirecting dependencies for side-effects
...
show reason explanation in stats
fixes #7428
2018-05-29 14:12:31 +02:00
Tobias Koppers
770847171d
Merge branch 'master' into bugfix/namespace-object
...
# Conflicts:
# lib/RuntimeTemplate.js
2018-05-28 22:42:21 +02:00
Tobias Koppers
ae8d6741d7
fix bug with incorrectly emitted modules
2018-05-27 21:53:22 +02:00
Tobias Koppers
115a72ce50
SideEffectsPlugin don't modify cache entries
...
fixes #7400
2018-05-27 21:53:21 +02:00
Tobias Koppers
374376d6dc
fixes #7382
2018-05-24 15:37:52 +02:00
Sean Larkin
74ba87f593
Merge branch 'master' into feature/type-compiler-compilation-save
2018-05-18 21:58:50 -07:00
Tobias Koppers
75db965170
update combination when split fails because of max requests
...
fixes #7323
2018-05-17 17:44:38 +02:00
Sean Larkin
761d73b4e7
chore(types): add Compiler and Compilation type support
2018-05-15 15:04:38 +02:00
Mihail Bodrov
8d1d569541
Fix remove empty
2018-05-13 02:04:06 +03:00
Mihail Bodrov
9a1eca5e20
Optimize RemoveEmptyChunksPlugin
2018-05-13 01:15:39 +03:00
Tobias Koppers
d4a04b8934
Merge branch 'master' into bugfix/namespace-object
...
# Conflicts:
# test/__snapshots__/StatsTestCases.test.js.snap
2018-05-09 10:27:23 +02:00
Tobias Koppers
09eb3c9de7
fix bug where splitChunks doesn't work
2018-05-07 12:39:03 +02:00
Tobias Koppers
a926a19715
create better namespace objects
...
avoid using Object.assign (fixes #7162 )
2018-05-03 12:55:00 +02:00
Tobias Koppers
05275e6e8e
improve SplitChunksPlugin performance
...
avoid looping
better complexity for finding possible combinations
avoid creating a chunks array
caching
2018-05-01 10:54:00 +02:00
Tobias Koppers
4dabf3075f
improve FlagIncludedChunksPlugin performance
...
using bitmasks and clever bitwise and/or for a fast "maybe contains" check
2018-05-01 10:41:27 +02:00
Tobias Koppers
4daaf6cd33
improve RemoveParentModulesPlugin performance
2018-05-01 10:41:26 +02:00
Tobias Koppers
7b81a06b83
Merge pull request #7147 from kpdecker/concat-cache
...
Invalidate concatenated module on dep change
2018-04-30 17:40:09 +02:00
Tobias Koppers
81c6041a89
Merge pull request #7102 from alejandroMA/bugfix/runtime-chunk-integration
...
fix bug where sometimes the runtime would not be present on output
2018-04-30 13:52:50 +02:00
Kevin Decker
bd7652823c
Invalidate concatenated module on dep change
...
When the moduleSet for a given concatenated module changed, the source for the embedded modules would not necessarily, which lead to caching mismatch between the source and the modulesWithInfo structure.
Fixes #6168
2018-04-28 15:32:28 -05:00
Tobias Koppers
d91caea860
Pretty files for updated prettier version
2018-04-26 20:14:45 +02:00
Alejandro Madariaga Angeles
22b44463ac
change Chunk.isRuntimeOnly to Chunk.preventIntegration
2018-04-25 12:45:53 -05:00
Alejandro Madariaga Angeles
3b6d7d873e
fix bug where sometimes the runtime would not be present on output
2018-04-23 17:30:14 -05:00
Mohsen Azimi
d677bdd0e9
pretty
2018-04-12 11:42:38 +02:00
Mohsen Azimi
6a9ee8fd4e
more comment types and one actual code change
2018-04-12 11:42:37 +02:00
Florent Cailhol
36d576cc28
Update ChunkModuleIdRangePlugin to webpack 4 API
2018-04-12 10:08:25 +02:00
Florent Cailhol
b8b95cfebc
Use compilation instead of this
2018-04-12 09:47:54 +02:00
Tobias Koppers
2fa104f73a
avoid walking scopes multiple times for performance reasons
2018-04-03 22:21:04 +02:00
Tobias Koppers
8d8da4cdff
Merge branch 'master' into bump_prettier
2018-03-29 11:48:02 +02:00
Tobias Koppers
0f70fcb99f
Merge pull request #6791 from storybooks/spilt-chunks-selector
...
Support selector function as optimization.splitChunks.chunks option
2018-03-29 11:40:07 +02:00
Mohsen Azimi
77afc92c5f
Remove extra argument sent to HarmonyExportExpressionDependencyConcatenatedTemplate
2018-03-28 22:06:44 -07:00
Florent Cailhol
f1092ad516
Update prettier toolchain
2018-03-26 16:56:10 +02:00
Florent Cailhol
3983803d30
Destructure 'require' to improve readability
2018-03-22 12:05:58 +01:00
Hypnosphi
1e2d8ec295
Handle `typeof option === "function"` case
2018-03-20 22:57:02 +03:00
Hypnosphi
3f8a94f1a1
Extract normalizeChunksFilter helper
2018-03-20 15:18:09 +03:00
Hypnosphi
f804ff06be
Support selector function as optimization.splitChunks.chunks option
2018-03-18 16:51:06 +03:00
Manuel Bauer
771bf859a6
Added chunkFilenameDelimiter option for SplitChunksPlugin: Fixed test issue
2018-03-12 10:32:46 +01:00
Manuel Bauer
bda8d52810
Added chunkFilenameDelimiter option for SplitChunksPlugin: Applied requested changes
2018-03-12 10:07:31 +01:00
Manuel Bauer
085d2885e4
Added chunkFilenameDelimiter option for SplitChunksPlugin: Added tests and fixed code style
2018-03-09 14:27:19 +01:00
Manuel Bauer
b803c649ee
Added chunkFilenameDelimiter option for SplitChunksPlugin: Fixed parameter
2018-03-09 10:28:21 +01:00
Manuel Bauer
36db321e9c
Added chunkFilenameDelimiter option for SplitChunksPlugin
2018-03-09 10:12:23 +01:00
Tobias Koppers
4d68350128
fix bug where modules are put into the wrong chunk
...
fixes #6696
2018-03-07 15:39:43 +01:00
Tobias Koppers
800e7f967b
fix #6688
2018-03-06 15:03:33 +01:00
Tobias Koppers
00f70fc65c
Merge pull request #6645 from zacanger/fix/6644
...
Fix #6644
2018-03-03 18:00:15 +01:00
Tobias Koppers
01c18cc301
Merge pull request #6651 from webpack/feature/split-chunks-filename
...
allow to configure filename for splitted chunks
2018-03-03 17:58:05 +01:00
Tobias Koppers
ecb65aa75a
allow to configure filename for splitted chunks
...
#6598
2018-03-02 10:14:25 +01:00
zacanger
3a41ca4ee2
Fix #6644
2018-03-01 18:25:44 -07:00
Brent Wilton
39095efc34
add todo for ModuleConcatenationPlugin for loop bugfix
2018-03-02 14:08:26 +13:00
Brent Wilton
9f37b499bf
improve performance of ModuleConcatenationPlugin for loop
2018-02-28 11:46:12 +13:00
Tobias Koppers
6a5d081f29
Merge pull request #6591 from jsoref/spelling
...
Spelling
2018-02-27 12:50:34 +01:00
Tobias Koppers
e7aba18ed5
fix incorrect optimization bailout messages
...
fixes #6570
2018-02-26 20:22:58 +01:00
Josh Soref
bf7c5af2e9
spelling: fullfil
2018-02-26 02:30:14 +00:00
Josh Soref
676e74660a
spelling: chosen
2018-02-26 02:26:06 +00:00
Tobias Koppers
f32bd41c52
fix linting
2018-02-25 02:15:37 +01:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Tobias Koppers
15ab027a42
Merge pull request #6536 from jevan0307/sideEffects-selectors
...
Add support for more complex sideEffects selectors
2018-02-24 12:17:50 +01:00
Florent Cailhol
40ee8c76d2
Use MD4 for hashing
2018-02-22 11:27:11 +01:00
Jevan Chan
c334d0875b
replace minimatch with micromatch
2018-02-21 00:36:14 +08:00
Jevan Chan
b620a58b40
replace glob-regex with minimatch
2018-02-19 22:50:05 +08:00
Jevan Chan
11c9e736ef
Merge branch 'sideEffects-values' of https://github.com/reergymerej/webpack into sideEffects-selectors
2018-02-19 21:39:45 +08:00
Tobias Koppers
244d27a42d
improve way of getting combinations of chunks
...
we no longer require a complexity limit -> maxComplexity removed
2018-02-17 10:16:32 +01:00
Tobias Koppers
1e73752fb2
improve chunk splitting
...
by also trying to select combinations of module chunks
(limited by complexity)
fix size ordering (was reversed)
add chunk cound ordering
2018-02-17 07:01:00 +01:00
Tobias Koppers
edd8daf1d7
Merge branch 'master' into next
...
# Conflicts:
# lib/optimize/ConcatenatedModule.js
# package.json
# yarn.lock
2018-02-09 17:04:33 +01:00
Tobias Koppers
313944891d
Merge pull request #6432 from webpack/bugfix/split-chunks-duplicate
...
fixes #6413
2018-02-06 09:14:12 +01:00
Tobias Koppers
b50a5b61c4
Merge pull request #6384 from benthemonkey/next
...
Add "single" option to RuntimeChunkPlugin
2018-02-05 17:35:55 +01:00
Tobias Koppers
4dd521f498
fixes #6413
2018-02-05 17:14:31 +01:00
Tobias Koppers
b3f3100259
Merge pull request #6429 from webpack/fix-6426/ENAMETOOLONG
...
Truncate generated chunk name if too long
2018-02-05 09:16:19 +01:00
Florent Cailhol
6ebdc6b309
Truncate generated chunk name if too long
...
Fixes #6426
2018-02-02 09:55:52 +01:00
Tobias Koppers
9fde04d299
handle single option in options defaulter
...
change runtime chunk naming schema
2018-02-01 17:53:15 +01:00
Florent Cailhol
63b4523a15
Pass 'context' as constructor argument
2018-01-30 21:40:44 +01:00
Olivier Combe
2aebfbe48c
fix(ConcatenatedModule): don't throw on arrays with empty values
...
Fixes #6407
Fixes #5415
Ref https://github.com/angular/angular/issues/21809
2018-01-29 15:52:01 +01:00
Ben Rothman
c26c872bb2
add "single" option to RuntimeChunkPlugin
2018-01-26 22:03:56 -06:00
Tobias Koppers
72f904a34b
run splitChunks and runtimeChunk only on main compiliation
2018-01-24 12:00:50 +01:00
Tobias Koppers
7a1b357aad
Merge branch 'next' into for_of_loops
2018-01-24 09:01:31 +01:00
Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +01:00
Florent Cailhol
77bb4c0055
Deprecate forEach* and map* methods
2018-01-23 22:19:59 +01:00
Florent Cailhol
7f303e5260
Use Buffer.from instead of new Buffer
2018-01-22 17:23:34 +01:00
Tobias Koppers
ea609374f7
split Chunk.isInitial into isOnlyInitial and canBeInitial
...
remove includeInitial argument of getChunk(Module)Maps
2018-01-22 12:52:28 +01:00
Florent Cailhol
86e6edf1ab
Refactor how source type is handled by the parser
2018-01-22 09:30:43 +01:00
Tobias Koppers
b28435eb32
make default cache group explicit
...
add priority
using cacheGroups doesn't override default cache groups
2018-01-20 13:13:10 +01:00
Tobias Koppers
18ae73dad4
Refactor chunk graph
...
Chunks are now always in ChunkGroups
ChunkGroups have parents and children, Chunks no longer have this
AsyncDependenciesBlocks point to a ChunkGroup instead of a list of chunks
Entrypoint is now a ChunkGroup (extends from it)
move stuff graph modification methods into GraphHelpers
Change chunk id recording to source-based
Chunks have parents, siblings and children in Stats
rename AutomaticCommonsChunksPlugin to SplitChunksPlugin
add request property to origin (ChunkGroup)
remove moveToParent from AggressiveMergingPlugin
fix issues with AggressiveSplittingPlugin
remove CommonsChunkPlugin
add optimization.runtimeChunk (RuntimeChunkPlugin)
fix a filename bug for initial chunks
remove extract-text-webpack-plugin from test suite
add DebugHash to help debugging hash issues
fix issues with entry modules in different chunk as runtime
redo optimization.splitChunks options
Compilation.entrypoints is now a Map
Compilation.chunkGroups has been added
remove some unittests
update examples
update tests with CommonsChunkPlugin
2018-01-19 19:21:30 +01:00
Jeremy Greer
2ef4b0101e
Add support for sideEffects glob(s)
...
In addition to Booleans, the `sideEffects` value in a package can
identify child modules with side effects by a glob or Array of globs.
2018-01-18 13:29:22 -06:00
Tobias Koppers
114abeeb4d
fix merge issue
2018-01-18 11:31:38 +01:00
Tobias Koppers
af90de826c
Merge pull request #6236 from ooflorent/use_map_set
...
Replace dictionaries by Map or Set
2018-01-18 09:24:36 +01:00
Tobias Koppers
6437964207
Merge pull request #6291 from Iwouldliketobeapig/next
...
feat: CommonsChunkPlugin indexOf -> includes
2018-01-12 10:57:42 +01:00
dutao
9cbe4f19c5
fix: lint miss ;
2018-01-12 09:07:22 +08:00
Tobias Koppers
7112943ca4
Merge pull request #6298 from EugeneHlushko/refactor/indexof-to-includes
...
Refactor/indexof to includes
2018-01-11 22:45:02 +01:00
EugeneHlushko
2aab060f26
Refactor: indexOf >< checks to includes
2018-01-11 18:58:39 +02:00
Tobias Koppers
7baf6aff08
Merge pull request #6281 from webpack/feature/auto-ccp
...
Add AutomaticCommonsChunksPlugin and config options and defaults
2018-01-11 11:15:26 +01:00
dutao
58cacb25a0
feat: indexOf -> includes
2018-01-11 17:25:00 +08:00
Tobias Koppers
d60a9f5288
Merge pull request #6287 from ooflorent/remove_dedupeplugin
...
Remove deprecated DedupePlugin
2018-01-10 23:59:50 +01:00
Tobias Koppers
acdabb1427
linting, comment and minor improvements
2018-01-10 19:22:25 +01:00
Tobias Koppers
85acfeb1c2
allow to use new options minSize, maxRequests
2018-01-10 18:58:27 +01:00
Tobias Koppers
4b81320695
allow limit requests and chunk size
...
with defaults
2018-01-10 18:58:27 +01:00
Tobias Koppers
b34663cb2d
add more config options
...
fix bugs
2018-01-10 18:58:27 +01:00
Tobias Koppers
417044f065
add AutomaticCommonsChunksPlugin
...
enable it by default for async chunks
add options for initial chunks
2018-01-10 18:58:26 +01:00
Tobias Koppers
08cd2f0ffe
introduce ChunkGroup for AND in parents
2018-01-10 17:12:03 +01:00
Florent Cailhol
67f31aeebc
Remove deprecated DedupePlugin
2018-01-09 17:09:18 +01:00
Tobias Koppers
2cbd4685d3
Merge pull request #6250 from webpack/bugfix/json-concat
...
fix a bug with json modules in concatenated modules
2018-01-06 10:37:30 +01:00
Florent Cailhol
1590751da2
Replace dictionaries by Map or Set
2018-01-06 09:45:57 +01:00
Florent Cailhol
9f13bfec6c
Optimize chunk traversal in RemoveParentModulesPlugin
2018-01-05 22:49:55 +01:00
Tobias Koppers
87fdb61c0a
better names for interop properties
2018-01-05 22:35:54 +01:00
Tobias Koppers
bde926605c
fix a bug with json modules in concatenated modules
2018-01-05 22:27:42 +01:00
Florent Cailhol
9f9e730ff3
Use for-of loops instead of forEachModule
2018-01-04 23:15:32 +01:00
Tobias Koppers
53a1d6c7b5
replace harmonyModule flag with exportsType 3-state
...
exportsType falsy: It's non-harmony module
exportsType "namespace": It's a harmony module, the exports is the namespace object
exportsType "default": It's a harmony module, the exports is the default exports, named exports are properties of the default export
2017-12-22 19:42:41 +01:00