Tobias Koppers
4178b18196
Merge tag 'v4.25.1' into next
...
4.25.1
2018-11-05 19:54:56 +01:00
Tobias Koppers
eb28697419
move magic property names on __webpack_require__ into RuntimeGlobals file
2018-11-05 15:28:34 +01:00
Tobias Koppers
babe736cfa
replace prefix/postfix even when equal for wrapped context
...
walk inner expressions in wrapped context
add tracking of inner expressions in wrapped BasicEvaluatedExpression
fixes #8293
closes ##8337
2018-11-05 15:17:56 +01:00
Franck Freiburger
dcd0d59d62
test for #8293
2018-11-05 14:02:00 +01:00
Tobias Koppers
cf76e1c0e2
Merge pull request #8333 from webpack/bugfix/follow-up-8109
...
minor fixes for #8109
2018-11-05 10:35:57 +01:00
Tobias Koppers
6e64480e9d
Partial revert of #8250 as this is no longer a limitation
2018-11-05 10:28:51 +01:00
Tobias Koppers
8cf1cdb74f
Merge tag 'v4.25.0' into next
...
4.25.0
2018-11-05 10:27:45 +01:00
Tobias Koppers
7ce04b48b7
update test case
2018-11-05 09:26:33 +01:00
Tobias Koppers
355590e7c4
Merge pull request #8250 from Aladdin-ADD/patch-3
...
fix: disable ProvidePlugin for javascript/esm (fixes #7032 )
2018-11-05 08:59:20 +01:00
Tobias Koppers
0293c3a5ee
Merge pull request #8279 from smelukov/support-entry-progress
...
ProgressPlugin: support progress by entry points
2018-11-05 08:55:30 +01:00
Tobias Koppers
fe66257770
Merge pull request #8276 from smelukov/deterministic-module-ids-in-prod
...
Set deterministic module ids in prod by default
2018-11-05 08:09:57 +01:00
Tobias Koppers
1ea411baad
Merge pull request #8139 from NaviMarella/FormatManifest
...
Adding format option for Dll Plugin to get a formatted manifest json. #7992
2018-11-05 08:08:21 +01:00
Tobias Koppers
4b7263525e
exclude watch test cases
2018-11-05 08:00:26 +01:00
Tobias Koppers
e35d08471f
increase test timeout
2018-11-05 06:47:56 +01:00
Lex Alexander
84bc9bce48
test(Compiler): Promisifed webpack returns errors as a return value
...
Fixes #8298
2018-11-04 09:40:51 +01:00
Tobias Koppers
eb6831673a
Merge pull request #8294 from ljqx/zhbliu/import-parser-plugin-fix-context-return
...
[ImportParserPlugin] fix return value when creating context for `import()`
2018-11-03 23:28:22 +01:00
Tobias Koppers
1027871ead
fix merge issue
2018-11-03 13:04:13 +01:00
Tobias Koppers
f0dfc45b9f
merge parts too when simplifying
...
fix bug which keeps const conditional expression in bundle
remove parsing code from ContextDependencyHelpers
2018-11-03 11:16:16 +01:00
Tobias Koppers
31e189fcde
Merge tag 'v4.24.0' into next
...
4.24.0
2018-11-02 18:02:39 +01:00
Tobias Koppers
770edef742
Update test/configCases/plugins/provide-plugin/index.js
...
Co-Authored-By: Aladdin-ADD <weiran.zsd@outlook.com>
2018-11-01 09:54:51 +08:00
weiran.zsd
f61b4854b8
chore: add a test
...
Signed-off-by: weiran.zsd <weiran.zsd@alibaba-inc.com>
2018-10-31 21:47:42 +08:00
Franck Freiburger
a640cd05b3
- update/enhance the test
2018-10-31 09:28:42 +01:00
Franck Freiburger
a093cfa158
run eslint --fix
2018-10-30 17:31:09 +01:00
Franck Freiburger
979320e519
- add a test for PR#8306
2018-10-30 17:00:45 +01:00
Tobias Koppers
044ad3725b
test memory cache too
2018-10-30 14:29:22 +01:00
Tobias Koppers
ca69e9423d
fix/workaround memory leaks
2018-10-30 13:46:50 +01:00
Zhibin Liu
ff3bfa157d
fix tests
2018-10-30 19:45:16 +08:00
Tobias Koppers
2bf48ca934
Split caching tests into separate suites
2018-10-30 09:54:43 +01:00
Zhibin Liu
84f92abcb9
add tests
2018-10-30 16:22:31 +08:00
hztianxiang
d66cce2601
add test case by this change
2018-10-30 15:49:48 +08:00
Tobias Koppers
c0d53878e4
Merge pull request #8168 from webpack/feature/serialization/errors
...
feat(serialization): serialize errors
2018-10-29 23:23:55 +01:00
Tobias Koppers
ad308f9d5a
increase timeout for StatsTestCases
2018-10-29 22:57:34 +01:00
Tobias Koppers
601824ea1e
be less strict in test case
...
issuer can vary
2018-10-29 21:24:36 +01:00
Zhibin Liu
0cbb36f38f
enhance tests
2018-10-30 00:34:12 +08:00
Zhibin Liu
1d78d91467
add tests
2018-10-29 00:21:58 +08:00
Zhibin Liu
0a0ce8269b
[Test] simplify .wat code for finalize-exports-issue-8261 test
2018-10-26 23:36:24 +08:00
Sergey Melyukov
c7e67b48ca
fix tests
2018-10-25 18:57:23 +03:00
Sergey Melyukov
8b962a61b5
Set deterministic module ids in prod by default
2018-10-25 17:56:59 +03:00
Tobias Koppers
8ddcfb59e5
exclude watch test cases
2018-10-25 10:56:31 +02:00
Tobias Koppers
bfb1e8694f
fix test output message
2018-10-25 10:52:34 +02:00
Tobias Koppers
440be0c53c
Merge tag 'v4.23.1' into next
...
4.23.1
2018-10-25 10:34:31 +02:00
Tobias Koppers
f667e5355a
Merge pull request #8267 from smelukov/define-plugin-reevaluate-runtime-in-watch
...
DefinePlugin: reevaluate runtime values on watch mode
2018-10-25 10:31:42 +02:00
Tobias Koppers
5e5e7b7882
Merge pull request #8270 from ljqx/logical-expression-fix
...
[ConstPlugin] fix bug introduced by evaluation of && and ||
2018-10-25 10:21:10 +02:00
Zhibin Liu
13d1dabd93
[ConstPlugin] fix bug introduced by evaluation of && and ||
2018-10-25 10:43:26 +08:00
Sergey Melyukov
574ccd3c7c
added tests
2018-10-24 23:16:05 +03:00
Tobias Koppers
d9a0d3a139
Merge tag 'v4.23.0' into next
...
4.23.0
2018-10-24 20:10:30 +02:00
Tobias Koppers
298fa4c981
Merge pull request #8266 from ljqx/wasm-finalize-exports-fix
...
[WasmFinalizeExportsPlugin] check if `ref` is null before using it
2018-10-24 17:41:54 +02:00
Zhibin Liu
035ceb6b1b
force travis rerun
2018-10-24 22:55:18 +08:00
Zhibin Liu
6844c7526f
add test
2018-10-24 22:30:37 +08:00
Tobias Koppers
8256249703
longer timeouts for Compiler test
2018-10-24 15:56:50 +02:00
Tobias Koppers
1c44f95b8c
fix bug where module is referenced which is not in the graph
2018-10-24 15:45:10 +02:00
Tobias Koppers
98d077d0b6
order values with different types correctly
2018-10-24 15:45:08 +02:00
Daniel Ehrenberg
b22f027f79
Update tests for new WebAssembly.Global API
...
The current version of the WebAssembly JS API specification [1]
exports globals as WebAssembly.Global, rather than as Numbers. This
version of the API is shipped in Chrome 69 and Firefox 62, and is
also seen in Node 11 nightly builds.
This patch updates webpack's tests to permit either the new API or
the old one, for exports of WebAssembly Globals. One of the affected
tests passes on Node 11 (where it previously failed), and the other
fails for unrelated reasons [2].
Fixes #8145
[1] https://webassembly.github.io/spec/js-api/index.html
[2] https://github.com/webpack/webpack/pull/7467/files#r223454525
2018-10-24 15:45:04 +02:00
Tobias Koppers
523ddd7220
avoid memory leak
2018-10-24 15:30:33 +02:00
Tobias Koppers
af4cb35784
Merge pull request #8175 from cacheflow/add-tracking-of-removed-files
...
feat(Compiler): Add file removal tracking in watch-run
2018-10-24 10:44:40 +02:00
Tobias Koppers
7654a1cefe
fix behavior and add test case
2018-10-24 10:02:12 +02:00
Tobias Koppers
a262b83580
remove globalPath and useChunkHash feature
...
It's no longer needed, because we hash the runtime how
2018-10-24 09:39:51 +02:00
renatoagds
5e112dbfbe
update watchMode tests
2018-10-23 15:12:36 -03:00
Tobias Koppers
071062422e
Merge tag 'v4.22.0' into next
...
4.22.0
2018-10-23 16:41:31 +02:00
Tobias Koppers
0ae4a58918
make AggressiveSplittingPlugin stable
2018-10-23 11:32:41 +02:00
Tobias Koppers
94eb554dc0
fix byId sorting
2018-10-23 11:32:39 +02:00
Tobias Koppers
60b06472f5
make LimitChunkCountPlugin stable
...
fix integrating non-runtime with runtime chunk
move entry modules when integrating two chunks
2018-10-23 11:32:36 +02:00
Tobias Koppers
1e29c44df3
move natural chunk comparator to comparators
...
add name order to natural chunk order
2018-10-23 11:32:34 +02:00
Tobias Koppers
83866b0dac
use stable sorting for sorting dependencies
2018-10-23 11:32:32 +02:00
Tobias Koppers
ad8f8910e2
make origins sorting deterministic
...
remove duplicate origins
2018-10-23 11:32:30 +02:00
Tobias Koppers
8955561952
Run additional tests to ensure compilation stablility
2018-10-23 11:32:28 +02:00
renatoagds
22553427d4
fix prettier lint
2018-10-22 20:12:42 -03:00
renatoagds
b6dda49add
check if watch mode is trigger when use watch
2018-10-22 20:01:07 -03:00
Tobias Koppers
5e4a6a4f5d
fix byId sorting
2018-10-19 13:20:48 +02:00
Tobias Koppers
c04747f17d
make LimitChunkCountPlugin stable
2018-10-19 12:57:27 +02:00
Tobias Koppers
a7db689306
make chunk compare stable
2018-10-19 12:57:26 +02:00
Tobias Koppers
3217d02aab
make stats assets order stable by providing a default order
2018-10-19 12:57:25 +02:00
Tobias Koppers
98b482efd7
make dependency order stable
2018-10-19 12:57:24 +02:00
Tobias Koppers
8a8111b637
make sorting in Stats stable
2018-10-19 12:57:23 +02:00
Tobias Koppers
511d15bbc4
make origins sorting deterministic
...
remove duplicate origins
2018-10-19 12:57:22 +02:00
Tobias Koppers
c8252e6e4d
Run additional tests to ensure compilation stablility
2018-10-19 12:57:19 +02:00
Lex Alexander
2cdf04e14b
feat(Compiler): Add file removal tracking in watch-run
...
-Closes 5072.
2018-10-18 15:58:58 -07:00
Tobias Koppers
1d9f8a332f
Merge pull request #8233 from ljqx/const-plugin-logical-operator
...
[ConstPlugin] add support for logical expressions (&& and ||)
2018-10-18 09:57:23 +02:00
Zhibin Liu
dcd38348e5
fix comments
2018-10-18 14:21:12 +08:00
Tobias Koppers
6b0da68ed9
run all test cases with caching
2018-10-17 22:15:46 +02:00
Tobias Koppers
5b7987abf4
remove console.log
2018-10-17 21:25:46 +02:00
Tobias Koppers
1500a9da5c
refactor LocalModule to remove module reference to allow serializing
2018-10-17 21:25:46 +02:00
Tobias Koppers
0d980a75ba
improve example build and test
...
improve cache print of references
2018-10-17 21:25:40 +02:00
Tobias Koppers
a852828279
add persistent caching prototype
2018-10-17 21:25:39 +02:00
Tobias Koppers
518104b3fb
Merge tag 'v4.21.0' into next
...
4.21.0
2018-10-17 20:38:00 +02:00
Zhibin Liu
257e6ec8d6
[ConstPlugin] add support for logical expressions (&& and ||)
2018-10-17 23:12:07 +08:00
Tobias Koppers
15b6f8bb7f
make afterEach async
2018-10-17 16:17:23 +02:00
Tobias Koppers
7bc5c98171
Merge branch 'master' into marcusdarmstrong-external-module-fix
2018-10-17 16:13:55 +02:00
Tobias Koppers
83538ebc54
Merge pull request #8178 from webpack/feature/moduleIds
...
Remove moduleIds=total-size and deprecate moduleIds=hashed
2018-10-17 10:04:11 +02:00
Florent Cailhol
7db1d0ce4b
Remove IgnorePlugin compat layer
2018-10-12 18:10:12 +02:00
Florent Cailhol
7669104f71
Deprecate moduleIds=hashed in favor of moduleIds=deterministic
...
Also remove moduleIds=total-size
2018-10-12 17:14:16 +02:00
Naveen Marella
78e64b6cc5
Added unit test to generate formatted manifest json
2018-10-03 13:16:07 -06:00
Tobias Koppers
9fe42e7c40
Merge pull request #8118 from webpack/bugfix/issue-8110
...
fixes #8110
2018-10-02 16:43:33 +02:00
Tobias Koppers
9da00cdb42
fixes #8110
2018-10-02 14:52:52 +02:00
Michael Ciniawsky
7f746a955a
chore(JavascriptParser): update `acorn` dependencies
...
package: update `acorn` v5.6.2...v6.0.0
package: update `acorn-dynamic-import` v3.0.0...v4.0.0
2018-10-02 14:20:20 +02:00
Sergey Vershinin
8a939328f9
fix output for 'output.library: string[]' configuration
2018-10-01 22:31:26 +03:00
Tobias Koppers
7ed8b97091
add testcase for context dependencies in module
2018-09-27 21:36:41 +02:00
Evyatar
5edea62e35
fix_contains_typo
2018-09-27 19:02:34 +03:00
Tobias Koppers
7340fbb547
refactor Cache
...
add a new hookable Cache class
removed CachePlugin
add MemoryCachePlugin
refactor timestamps
create FileSystemInfo class
2018-09-27 13:20:19 +02:00
Tobias Koppers
bf0d0d8f91
Merge pull request #8093 from eemeli/amd-require
...
Add "amd-require" libraryTarget, resulting in a require() wrapper
2018-09-27 12:40:05 +02:00
Tobias Koppers
4eab41bd5f
refactor Module.needBuild to be async
2018-09-27 11:20:54 +02:00
Eemeli Aro
d250ba1776
Fix the "should name define" test in configCases/target/amd-unnamed
2018-09-26 21:52:52 +03:00
Eemeli Aro
b624d167a5
Add "amd-require" libraryTarget, resulting in a require() wrapper
2018-09-26 21:46:16 +03:00
Tobias Koppers
4f1905aa5a
Merge tag 'v4.20.2' into next
...
4.20.2
2018-09-25 23:13:58 +02:00
Tobias Koppers
aab3afbef8
fixes #8085
2018-09-25 21:52:03 +02:00
Tobias Koppers
dece2e69e3
Merge tag 'v4.20.1' into next
...
4.20.1
2018-09-25 16:21:39 +02:00
Tobias Koppers
17044bf9c6
Merge tag 'v4.20.0' into next
...
4.20.0
2018-09-25 16:20:42 +02:00
Tobias Koppers
d836bcb027
fixes #8081
2018-09-25 14:45:30 +02:00
Chuck Dumont
f8877e0819
Uncaught exception from renderers
2018-09-21 14:42:25 -04:00
Tobias Koppers
39ef8f67e4
fix Validation test
2018-09-21 12:25:30 +02:00
Tobias Koppers
19ff6f8171
fix issues with absolutePath, allOf and anyOf
...
make DllReferencePlugin schema more expressive
typing fixes
2018-09-21 12:25:25 +02:00
Tobias Koppers
72c63ba91c
fixes for RegExp in schema
2018-09-21 12:25:09 +02:00
Tobias Koppers
c76f7ec2f4
add support for title in schema
2018-09-21 12:25:06 +02:00
Tobias Koppers
53c2f82de7
improve schema to be able to use it
2018-09-21 12:24:58 +02:00
Tobias Koppers
62b6142609
fix Validation test
2018-09-21 11:26:16 +02:00
Tobias Koppers
c7681825f8
fix issues with absolutePath, allOf and anyOf
...
make DllReferencePlugin schema more expressive
typing fixes
2018-09-21 11:04:36 +02:00
Tobias Koppers
8c31f2a708
fixes for RegExp in schema
2018-09-21 11:04:33 +02:00
Tobias Koppers
d064fbe79f
add support for title in schema
2018-09-21 11:04:24 +02:00
Tobias Koppers
6023bb7a11
fix Validation test
2018-09-21 11:04:21 +02:00
Tobias Koppers
64b27537da
improve schema to be able to use it
2018-09-21 11:04:10 +02:00
Tobias Koppers
56c613a669
add moduleIds deterministic for simpler long term caching
2018-09-18 17:49:19 +02:00
Tobias Koppers
19d60ba0cd
Merge tag 'v4.19.1' into next
...
4.19.1
2018-09-18 10:13:54 +02:00
Tobias Koppers
ab284977c3
Merge pull request #8043 from RubenVerborgh/externals-object-array
...
Allow array as value in externals object
2018-09-18 09:42:43 +02:00
Tobias Koppers
9bda6295ca
remove bad unit test
2018-09-18 09:16:26 +02:00
Tobias Koppers
f0271d93c6
fix ExternalModule and test case
2018-09-18 09:10:14 +02:00
Ruben Verborgh
3aef0e5844
Allow array as value in externals object.
...
Fixes https://github.com/webpack/webpack/issues/8041 .
2018-09-17 19:30:11 +02:00
Tobias Koppers
e08f71c0ef
keep/restore comments in export default
...
fixes #8039
2018-09-17 14:58:55 +02:00
Tobias Koppers
a94d0434a9
fix for changed API in terser plugin warningsFilter
2018-09-16 11:04:43 +02:00
Tobias Koppers
5ade574510
Merge pull request #7947 from philipwalton/mjs-sourcemap-support
...
Add sourcemap support for .mjs output files
2018-09-15 21:45:31 +02:00
Ed Morley
dd19dc09ae
Rename test directories too
2018-09-15 12:30:25 +01:00
Ed Morley
79910c6ba5
Switch from uglifyjs-webpack-plugin to terser-webpack-plugin
...
Some history:
* `uglifyjs-webpack-plugin` < v1.0 used the minifier `uglify-js`
* however `uglify-js` does not support ES6, which resulted in a fork
called `uglify-es` that was developed in the `uglify-js` repository,
but under the `harmony` branch
* `uglifyjs-webpack-plugin` v1.x switched to `uglify-es` for ES6 support
* however `uglify-es` stopped being maintained:
https://github.com/mishoo/UglifyJS2/issues/3156#issuecomment-392943058
* which led to a fork called `terser` that has incorporated all of
the unmerged PRs and will be where all new development occurs:
https://github.com/fabiosantoscode/terser
* `terser-webpack-plugin` was created, which is the `terser` equivalent
of `uglifyjs-webpack-plugin`:
https://github.com/webpack-contrib/terser-webpack-plugin
* `uglifyjs-webpack-plugin` v2.x will be switching back to `uglify-js`,
so any project that needs to support ES6 now needs to switch to
`terser-webpack-plugin`.
Fixes #7923 .
2018-09-15 12:29:14 +01:00
Tobias Koppers
97ed999aad
Merge tag 'v4.19.0' into next
...
4.19.0
* Separate context for renderBoostrap and hooks
* Remove ModuleTemplate from MainTemplate.bootstrap hook
2018-09-15 13:10:58 +02:00
Tobias Koppers
13b2cdd5ae
hash content of bootstrap code
...
instead of trying to calculate it
from inputs
fixes #8027
fixes #7984
2018-09-13 23:25:26 +02:00
Tobias Koppers
37046a7315
Add windows to azure
2018-09-13 10:06:28 +02:00
Tobias Koppers
5b4cbb5ee0
add queues to Compilation
...
remove Semaphore and use AsyncQueue instead
deprecate Module.needRebuild, add Module.needBuild
remove Module.unbuild
add Module.invalidateBuild
2018-09-12 13:17:03 +02:00
Tobias Koppers
d48a331642
Split Compilation process in multiple methods
2018-09-12 13:17:02 +02:00
Tobias Koppers
3c244d9fc9
Optimize error origin handling and module trace
...
Improve warnings and errors sorting
2018-09-12 13:16:59 +02:00
Tobias Koppers
6ca7ae1c48
make Compilation.modules a Set
2018-09-06 17:03:24 +02:00
Tobias Koppers
9da6003362
Make usedIds in records an array
...
Make emitted JSON for records stable
2018-09-06 16:05:29 +02:00
Philip Walton
17fafd3432
Fix lint errors
2018-09-05 20:00:48 -07:00
Philip Walton
a2cc0313ab
Add tests for default source map extensions
2018-09-05 18:41:39 -07:00
Tobias Koppers
b4860ccebb
refactor chunk id plugins
2018-09-05 14:28:52 +02:00
Tobias Koppers
4a7a85ca84
rename index/index2 to pre/postOrderIndex
2018-09-04 09:27:25 +02:00
Tobias Koppers
4d7b5b3b5e
Refactor module id plugins to be independent
2018-09-03 20:45:44 +02:00
Tobias Koppers
e979f1534e
use optimization.moduleIds instead of plugins directly
2018-09-03 20:12:55 +02:00
Tobias Koppers
888ad3d684
insert concatenated module at correct position
...
fixes bug where ids are incorrectly assigned
2018-09-03 20:12:55 +02:00
Tobias Koppers
51a13926ad
Merge tag 'v4.17.2' into next
...
4.17.2
2018-09-03 20:06:19 +02:00
Tobias Koppers
8c8719bd4a
Merge pull request #7954 from webpack/feature/split-chunk-type
...
add moduleType option to cacheGroup to select by module type
2018-09-03 19:13:26 +02:00
Tobias Koppers
41e59235df
emit error when splitChunks.name points to existing chunk name
2018-09-03 10:37:43 +02:00
Tobias Koppers
b87e93221b
add type option to cacheGroup to select by module type
2018-09-03 10:36:24 +02:00
Tobias Koppers
cd9525ad4c
Upgrade some dependencies
2018-08-29 20:06:15 +02:00
Tobias Koppers
02b15a1b46
pass chunkGraph to updateHash instead of moduleGraph
...
pass chunkGraph to compareModulesById instead of moduleGraph
pass chunkGraph to methods of RuntimeTemplate
use comparators from module at some places
2018-08-28 12:06:53 +02:00
Tobias Koppers
1b886ee342
improve prettier and lint config and performance
2018-08-24 16:57:16 +02:00
Tobias Koppers
670502fc81
Move AsyncDependenciesBlock.chunkGroup into ChunkGraph
2018-08-22 20:17:49 +02:00
Tobias Koppers
e0f84652c0
remove Module.prefetched
...
remove prefeteched from Stats
make Compilation.addModuleChain public and remove onModule argument
remove Compilation.prefetch
2018-08-22 15:19:05 +02:00
Tobias Koppers
b20556c1ff
move profile to ModuleGraph
2018-08-22 14:54:28 +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
4f65deb7dd
Merge tag 'v4.17.1' into next
...
4.17.1
2018-08-22 12:43:12 +02:00
Tobias Koppers
a92c23ef76
fixes #7930
2018-08-22 11:11:37 +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
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