Tobias Koppers
eb63cf80d6
move built flag into Compilation
2018-08-22 15:33:16 +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
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
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
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
9315ce29aa
fix exporting globals in scope-hoisted modules
...
fixes #7905
2018-08-20 10:54:05 +02:00
Florent Cailhol
7b02084bc5
Replace Basic and Advanced optimzation hooks by stages
2018-08-16 14:10:51 +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
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
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
Tobias Koppers
3618cc1b3c
remove originModule from Dependencies and add parent module to ModuleGraph
2018-08-07 14:20:53 +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
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
f68c1f7ab6
add additional arguments to updateHash
2018-08-02 16:04:10 +02: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
c5c4f6bdd3
remove DependencyTemplate.getInitFragments.source
2018-07-30 22:42:01 +02:00
Florent Cailhol
71016b1433
Remove DependencyBlockVariable
2018-07-30 22:38:13 +02:00
Florent Cailhol
6ea5a4ad22
Add types
2018-07-30 22:37:10 +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
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
29c99b1787
Convert GraphHelpers
2018-07-26 22:43:20 +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
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
bc10939096
add types for Module and subclasses
...
better way to handle "optional" methods
2018-07-25 12:12:17 +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
8614c75f11
run inherit types tool on existing code
2018-07-21 13:50:18 +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
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