Tobias Koppers
573d2da1d9
Merge pull request #8511 from isiahmeadows/fix-erroneous-injection
...
Remove a broken hook
2018-12-19 09:19:50 +01:00
Isiah Meadows
6b54a46842
Fix failing test.
2018-12-18 16:55:56 -05:00
Isiah Meadows
14ef010886
Fix nits, block `require` to prevent false positive
2018-12-18 16:48:56 -05:00
Tobias Koppers
f2f62c7608
Merge pull request #8516 from iliakan/master
...
IgnorePlugin: merge checkResource with checkContext, now single function
2018-12-18 18:00:52 +01:00
Ilya Kantor
a9d465f183
IgnorePlugin: add context argument to checkResource, deprecate checkContext
2018-12-18 11:27:06 +03:00
Isiah Meadows
31de55386a
Add test
2018-12-18 02:44:15 -05:00
Isiah Meadows
18d7396835
Remove a broken hook
2018-12-17 01:23:03 -05:00
Tobias Koppers
d5e26f728a
Merge pull request #8467 from Connormiha/simplify-append-head
...
Use document.head instead of getElementsByTagName('head')
2018-12-07 08:46:22 +01:00
Mihail Bodrov
6f5c5ef33c
Use document.head instead of getElementsByTagName
...
Update snapshot
2018-12-06 03:00:23 +03: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
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
Tobias Koppers
f47bf8b64f
4.27.0
2018-12-04 10:30:57 +01:00
Tobias Koppers
a67ffcda1c
Merge pull request #8452 from webpack/feature/resolveWithOptions
...
add getResolve method to loader context
2018-12-04 10:18:52 +01:00
Tobias Koppers
96f625c5e3
Merge pull request #8457 from webpack/bugfix/rebuild-provided-exports
...
fix a bug which causes incorrect providedExports for cached modules
2018-12-04 10:18:35 +01:00
Tobias Koppers
56feccc369
convert test case to normal function for node.js 6 support
2018-12-04 09:55:24 +01:00
Tobias Koppers
2f4296e8d9
fix a bug which causes incorrect providedExports for cached modules
...
Always update providedExports when they have dependencies
fixes #8455
2018-12-04 09:51:54 +01:00
Tobias Koppers
f944002bcd
Merge pull request #8451 from webpack/bugfix/split-chunks
...
enforce doesn't affect minSize for maxSize
2018-12-03 12:42:50 +01:00
Tobias Koppers
162da1c509
add getResolve method to loader context
...
with allows to pass options
2018-12-03 12:42:28 +01:00
Tobias Koppers
3b46b48fa7
enforce doesn't affect minSize for maxSize
...
enforce now works as documented
emit warning for minSize > maxSize configuration
performance improvements
bugfix when multiple cacheGroups have the same name
fixes #8407
2018-12-03 11:57:33 +01:00
Tobias Koppers
72a8a1f97e
Merge pull request #8440 from Connormiha/oprimize-chunk-can-be-integrated
...
Cache hasRunstime in chunk
2018-11-30 14:30:26 +01:00
Mihail Bodrov
537d3e482f
Cache hasRunstime in chunk
2018-11-30 02:59:26 +03:00
Tobias Koppers
e3e8a68dab
Merge pull request #8405 from xiaoxiaojx/fix-function-plugin-apply
...
fix parameter missing when plugin type is a funtion
2018-11-29 15:52:00 +01:00
shaw
70b9a1b0b7
fix parameter missing when plugin type is a funtion
2018-11-26 22:37:08 +08:00
Tobias Koppers
8e841feda3
4.26.1
2018-11-25 21:25:21 +01:00
Tobias Koppers
11afdbd3b4
Merge pull request #8417 from webpack/bugfix/split-chunks-min-size
...
prevent groups with size < minSize
2018-11-25 12:50:53 +01:00
Tobias Koppers
cbeaf70dfd
prevent groups with size < minSize
...
fixes #8407
2018-11-25 11:41:30 +01:00
Tobias Koppers
a1d4802275
Merge pull request #8416 from webpack/bugfix/split-chunks-zero-min
...
while grouping nodes include at least one node on each side
2018-11-25 11:34:15 +01:00
Tobias Koppers
32961f2aac
while grouping nodes include at least one node on each side
...
fixes #8407
2018-11-24 08:01:59 +01:00
Tobias Koppers
fa56ec880f
Merge pull request #8410 from webpack/bugfix/max-size-lt-min-size
...
handle case when minSize > maxSize
2018-11-23 15:52:02 +01:00
Tobias Koppers
fd2133bc5b
handle case when minSize > maxSize
...
fixes #8407
2018-11-23 09:01:53 +01:00
Tobias Koppers
614a6fc010
Merge pull request #8385 from hax/patch-1
...
Drop unuseful `eval` call
2018-11-19 10:30:06 +01:00
Tobias Koppers
04f90c53ee
4.26.0
2018-11-19 09:39:41 +01:00
Tobias Koppers
e1df721fd7
Merge pull request #8392 from vkrol/cherry-pick-terser-to-webpack-4
...
Cherry-pick terser to webpack 4
2018-11-19 09:24:47 +01:00
Tobias Koppers
a818deff0f
fix for changed API in terser plugin warningsFilter
2018-11-18 23:03:53 +03:00
Ed Morley
b39abf49de
Rename test directories too
2018-11-18 23:03:38 +03:00
Ed Morley
311a7285d3
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-11-18 22:56:10 +03:00
HE Shi-Jun
48f06041d1
Drop unuseful `eval` call
...
If use CSP (without `unsafe-eval`), both `new Function` and `eval` will be forbidden, so `eval` part is just dead code.
The only possibility `eval` part would run was `new Function('return this')()` return a falsy value, but it never possible as the spec (Is there any old engine violate this? Never heard about that.)
This pr also add `new` keyword to make the code a little bit explicit.
2018-11-16 17:20:53 +08:00
Tobias Koppers
a2301484a5
Merge pull request #8351 from DeTeam/chunk-jsdoc-typo
...
Fix a typo in Chunk#split jsdoc comment
2018-11-14 13:17:44 +01:00
Timur Amirov
7a0af76dac
Fix a typo in Chunk#split jsdoc comment
2018-11-07 22:07:51 +01:00
Tobias Koppers
2361995a42
4.25.1
2018-11-05 19:12:52 +01:00
Tobias Koppers
e2a20160df
Merge pull request #8338 from webpack/bugfix/issue-8293
...
Bugfix for #8293
2018-11-05 18:23:31 +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
af123a81ee
Merge pull request #8334 from webpack/bugfix/lint
...
move azure specific commands to azure-pipelines.yml
2018-11-05 10:37:39 +01:00
Tobias Koppers
36eb0bb1da
move azure specific commands to azure-pipelines.yml
2018-11-05 09:52:10 +01:00
Tobias Koppers
290094e10a
4.25.0
2018-11-05 09:37:20 +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
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