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
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
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
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
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
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
ac09ae1418
add more test cases
...
improve harmony-duplicate-export test cases to allow scope-hoisting
2018-08-09 15:45:49 +02:00
Tobias Koppers
3347700225
improve optimization bailout message usefulness
2018-08-09 15:45:30 +02:00
tsangint
1d95e524b3
Update Jest URL
2018-08-09 01:27:40 +08: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
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
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
5539f57ba8
Merge pull request #7839 from skingston91/master
...
fixes 7778: query string in dynamic import()
2018-08-03 09:40:21 +02:00
Tobias Koppers
1138d32bfb
Merge pull request #7840 from webpack/test/watch-cases
...
update watch test cases for new jest integration
2018-08-03 09:21:58 +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
795cc352c5
Improve error reporting while recompilation in HotCases
2018-08-03 08:10:53 +02:00
Tobias Koppers
3e30c70d39
Merge pull request #7830 from ryota-murakami/patch-1
...
Update Jest Homepage URL
2018-08-02 20:25:00 +02:00
Tobias Koppers
975f33df68
remove invalid unittests
2018-08-02 17:54:45 +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
skingston91
73dff6cbd5
Update index.js
...
Remove name from test
2018-08-02 16:04:47 +01:00
Tobias Koppers
f5be9a62d4
update watch test cases for new jest integration
2018-08-02 16:58:41 +02:00
Steven
ea5c68bc37
Adds test cases for issue 7778
2018-08-02 15:44:19 +01:00
Tobias Koppers
c9eb4c8e01
Merge tag 'v4.16.4' into next
...
4.16.4
2018-08-02 16:00:39 +02:00
Tobias Koppers
fb2236f734
Merge pull request #7818 from webpack/test/browsertest
...
Remove outdated/unused test suites
2018-08-02 15:13:17 +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
Tobias Koppers
01cfe5b67a
improve way of adding exported tests to test tree
2018-08-02 14:45:50 +02:00
ryota-murakami
cdf042c251
Update Jest homepage URL
2018-08-01 15:47:00 +09:00
Florent Cailhol
367b02a0f0
Use RuntimeTemplate to generate error code
2018-07-31 09:01:06 +02:00
Tobias Koppers
b2dca34043
some properties of dependencies should contribute to hash
2018-07-30 23:07:25 +02:00
Tobias Koppers
a02862e10f
remove injected-vars from test case, because it no longer bails-out
2018-07-30 22:39:43 +02:00
Tobias Koppers
07380569bb
update snapshots
2018-07-30 22:38:53 +02:00
Florent Cailhol
43c905553e
Update snapshots
2018-07-30 22:37:23 +02:00
Florent Cailhol
51a6dcba58
Remove outdated/unused test suite
2018-07-30 19:24:12 +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
f63c9b8e43
Use natural ids in most stats cases to make them more stable
2018-07-27 12:28:02 +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
41dd5a9ed1
Convert LocalModulesHelpers
2018-07-26 22:37:36 +02:00
Florent Cailhol
dad4a4c539
Convert SizeFormatHelpers
2018-07-26 22:37:21 +02:00