Tobias Koppers
8988dc8fed
Merge pull request #6144 from jaketodaro/templated-string-functions
...
support functions for templated string config properties
2017-12-23 08:15:04 +01:00
Tobias Koppers
b500de2c99
Merge pull request #6186 from ev1stensberg/remove-nsp
...
remove nsp dep & commands in favor for snyk hook
2017-12-22 21:54:28 +01:00
Even Stensberg
70d23ca413
remove nsp dep & commands
2017-12-22 20:00:16 +01:00
jaketodaro
fb4070442a
support functions for templated string config properties
...
Any config property that accepts a templated string (e.g. '[name].js')
can now accept a function that returns a templated string.
```
{
output: {
filename: () => '[name].js'
}
}
```
Closes #6098
2017-12-22 07:28:16 -08:00
Tobias Koppers
f352436a0f
Merge pull request #6173 from timkendrick/patch-1
...
Maintain ident when chaining pitching loaders
2017-12-22 08:19:23 +01:00
Mike Greiling
e06b0f509d
add tests for hasErrors and hasWarnings with children taken into account
2017-12-22 00:18:47 -06:00
Mike Greiling
a9c0bfdb1b
ensure hasErrors() and hasWarnings() check child compilations as well
2017-12-22 00:10:47 -06:00
Tim Kendrick
b48d5d99f6
Maintain ident when chaining pitching loaders
2017-12-21 18:20:24 +00:00
Tobias Koppers
c26d1f0d22
Merge pull request #6119 from ArfatSalman/patch-1
...
Fixing typos in Readme.md
2017-12-13 18:36:38 +01:00
Arfat Salman
25901c44c5
Fixing typos in Readme.md
...
Regarding line 265 - The possessive should be on webpack and not on repos. The simplified sentence will be 'one of the many repositories of webpack'.
Other changes only enhance the readability of the readme.
2017-12-13 18:53:59 +05:30
Tobias Koppers
6ff0fbd576
Merge pull request #6106 from rowanoulton/fix-ident-test
...
Fix ident config position
2017-12-11 20:37:16 +01:00
Rowan Oulton
9c392ae397
Fix ident config position
2017-12-11 08:37:15 -08:00
Tobias Koppers
3dc9716b49
Merge pull request #6089 from rowanoulton/add-ident-to-rule-schema
...
Add ident to the list of permissible properties for Rule.use
2017-12-08 08:43:31 +01:00
Rowan Oulton
6f85f9b386
Add ident propertry to list of permissible properties of Rule.use
...
As per https://webpack.js.org/configuration/module/#useentry
2017-12-07 09:47:55 -08:00
Tobias Koppers
725fff2829
Merge pull request #6071 from ooflorent/parser_eval
...
Add static analysis for bitwise operations and exponential operator
2017-12-06 08:45:28 +01:00
Florent Cailhol
da08376fd9
Evaluate bitwise and exponential operations
2017-12-05 17:16:45 +01:00
Tobias Koppers
e03a227182
Merge pull request #6055 from nikhilgaba/parserFix
...
Improve Parser to recognize 'new Foo(...)' type expressions
2017-12-05 07:55:41 +01:00
Nikhil Gaba
1083deabdd
Fixed styling issues
2017-12-04 18:40:23 -08:00
Nikhil Gaba
3c53df78c7
Added unit tests for new Foo (...) parser feature
2017-12-04 18:03:50 -08:00
Tobias Koppers
c71fd05f98
3.10.0
2017-12-04 19:02:49 +01:00
Tobias Koppers
2c244d2dda
Merge pull request #6061 from webpack/bugfix/require-include-exports
...
allow tree-shaking for require.include
2017-12-04 18:56:50 +01:00
Tobias Koppers
00cd8b4eee
allow tree-shaking for require.include
...
#6023
2017-12-04 16:24:40 +01:00
Tobias Koppers
905a8f163c
Merge pull request #5986 from EugeneHlushko/feature-sourcemap-use-filename-in-url
...
SourceMapDevToolPlugin: Enable path stripping from source map filenam…
2017-12-04 12:27:27 +01:00
Nikhil Gaba
5ab6972634
Improve Parser to recognize 'new Foo(...)' type expressions
2017-12-01 16:43:39 -08:00
Tobias Koppers
5acbe2f72e
3.9.1
2017-11-30 18:10:03 +01:00
Tobias Koppers
7cca6bb266
Merge pull request #6044 from webpack/bugfix/schema-watch-options
...
Add missing watchOptions properties to schema
2017-11-30 18:09:12 +01:00
Tobias Koppers
a71284eb79
Add missing watchOptions properties to schema
2017-11-30 15:55:37 +01:00
Tobias Koppers
73e34a7306
3.9.0
2017-11-30 14:53:37 +01:00
Tobias Koppers
05c5479b95
Merge pull request #5849 from cdata/fix-5843
...
Fixes #5843
2017-11-28 10:14:38 +01:00
Tobias Koppers
801a25392d
Merge pull request #5862 from Slashgear/fix-hmr-es6-bundles
...
[fix] error on HMR with es6 bundles
2017-11-27 08:07:01 +01:00
Tobias Koppers
471e1a28f4
make url only relative when no publicPath has been provided
2017-11-27 07:53:38 +01:00
Tobias Koppers
9c1f9fea2c
Merge pull request #6018 from webpack/ci/webpack-sources-upgrade
...
upgrade webpack-sources in lockfile
2017-11-27 07:45:18 +01:00
Tobias Koppers
c23cf31120
upgrade webpack-sources in lockfile
2017-11-26 12:48:19 +01:00
EugeneHlushko
a539f24bca
SourceMapDevToolPlugin: update test config with example from change request
2017-11-25 17:11:26 +02:00
EugeneHlushko
612111ae63
SourceMapDevToolPlugin: Second test case, make sure sourcemap file is written to expected directory considering the fileContext was provided
2017-11-25 16:53:02 +02:00
EugeneHlushko
840b43f16a
SourceMapDevToolPlugin: add fileContext and publicPath options. Add a configCase test
2017-11-25 16:38:30 +02:00
Tobias Koppers
2525466d6b
Merge pull request #6001 from lencioni/concatenation-efficiency
...
Simplify identifier creation in ConcatenatedModules
2017-11-24 18:27:43 +01:00
Joe Lencioni
37d70bd0c6
Avoid calling hash.update multiple times in ConcatenatedModules
...
@sokra did some profiling and it seems that calling crypto.update
multiple times is slower than calling it once with a large string.
> As explanation I would guess update calls into node.js C++ + OpenSSL
> while concatenating strings is very optimized in JIT.
To take better advantage of this information, I have rewritten this
performance-sensitive code to build up a concatenated string and then
hash it at the end.
Since we are thinking about performance here, I opted for a regular for
loop instead of using the forEach iterator. I also did some basic
benchmarking of string concatenation strategies and discovered that
separating out the addition of the extra space into its own
concatenation line instead of tacking it on to the end of a single
concatenation might just barely have the edge in terms of performance. I
think it is also very readable this way, so it seems like a good
tradeoff to make: a little lost conciseness for speed.
2017-11-23 08:31:16 -08:00
Joe Lencioni
8fdf411b84
Simplify identifier creation in ConcatenatedModules
...
This was implemented in #5997 to fix some memory issues, but I think we
can make this a little more efficient. By using a single forEach instead
of a map, filter, and join, we avoid unnecessary array creations and
iterations.
2017-11-23 07:47:18 -08:00
Tobias Koppers
7bbf31e8f4
Merge pull request #6007 from webpack/bugfix/multi-step-hmr
...
fix increasing delay with multiStep HMR
2017-11-23 14:27:24 +01:00
Tobias Koppers
78d6ba8c3c
Merge pull request #6005 from madeinfree/fix-parser-apply
...
fix: Compiler parser.apply.apply misssing bug
2017-11-23 11:46:20 +01:00
Tobias Koppers
991ec20881
fix increasing delay with multiStep HMR
2017-11-23 11:11:32 +01:00
Whien
f9d797fb93
fix: Compiler parser.apply bug
...
fix parser.apply.apply instead of parser.apply in lib/Compiler.js
2017-11-23 16:28:12 +08:00
Tobias Koppers
885e9eebb6
Merge pull request #5985 from EugeneHlushko/respect-no-deprecation-flag
...
Improvement: Ensure respect for --no-deprecation flag when adding non…
2017-11-23 08:59:18 +01:00
Tobias Koppers
20759bb603
Merge pull request #5997 from filipesilva/concatenated-module-identifier
...
Use shorter identifier for ConcatenatedModules
2017-11-22 21:27:16 +01:00
Filipe Silva
aef6f19a60
Use shorter identifier for ConcatenatedModules
...
See https://github.com/webpack/webpack/issues/5992#issuecomment-346384896 for rationale.
Fixes #5992
2017-11-22 16:33:36 +00:00
Tobias Koppers
46a6c349fb
Merge pull request #5987 from webpack/bugfix/dll
...
use type from manifest
2017-11-20 14:43:09 +01:00
Tobias Koppers
0f42fc1e0a
Merge pull request #5871 from shreyas-a/patch-1
...
Update README.md
2017-11-20 13:14:00 +01:00
EugeneHlushko
6a1f4242be
Improvement: Ensure util.depracation use for deprecation warnings: revert NoErrors plugin
2017-11-20 13:55:21 +02:00
Tobias Koppers
56a4af04f5
use type from manifest
2017-11-20 12:45:49 +01:00