Commit Graph

4577 Commits

Author SHA1 Message Date
Tobias Koppers b8f181f57f Merge pull request #5729 from STRML/feature/crossOrigin-hotReload
Also add script.crossOrigin for hot-reloaded chunks
2017-09-30 11:31:07 +02:00
Samuel Reed 6aa3154753
Also add script.crossOrigin for hot-reloaded chunks
Related: #988

Useful especially for hot-reloaded React 16 apps so that the global
onerror handler can render error boundaries properly.
2017-09-27 14:16:34 -05:00
Tobias Koppers 6b5ffa4d70 update tough-cookie for nsp security reasons
This doesn't affect webpack's security
2017-09-22 14:59:18 +02:00
Tobias Koppers bc1525dd84 Merge pull request #5702 from Aladdin-ADD/patch-2
Fix: incorrect comparing to undefined.
2017-09-21 18:07:30 +02:00
薛定谔的猫 5227452aae Fix: incorrect comparing to undefined. 2017-09-20 22:39:22 +08:00
Tobias Koppers f0dcde4800 Merge pull request #5679 from loganfsmyth/concat-static-analysis
Add static analysis for "".concat(obj, "str")
2017-09-19 10:22:10 +02:00
Logan Smyth 08179b3860 Add tests for .concat alongside template literals. 2017-09-18 16:44:50 -07:00
Logan Smyth 817f4f6772 Rename template-string-specific folder to more general name. 2017-09-18 16:21:14 -07:00
Tobias Koppers 1772beb0a8 Merge pull request #5685 from dtinth/bugfix/delegated-modules-hash
Fix #5684 DelegatedModule does not updateHash with its parameters
2017-09-18 10:38:08 +02:00
Thai Pangsakulyanont 77a317c663 assert that an ExternalModule also updateHash with its ID 2017-09-18 14:48:12 +07:00
Thai Pangsakulyanont 79cf75a8b5 update ExternalModule hash with optional flag 2017-09-18 14:48:11 +07:00
Thai Pangsakulyanont fcae4da622 assert delegation type in DelegatedModule test 2017-09-17 23:29:06 +07:00
Thai Pangsakulyanont 47d3b80b2e add updateHash for ExternalModule
otherwise, changing the externalModule’s variable name (request) will not
affect the build hash
2017-09-17 23:29:06 +07:00
Thai Pangsakulyanont 4b284ac1b5 updateHash using this.type and this.request instead
this.request is JSON.stringified because otherwise an error will be thrown:
    TypeError: Data must be a string or a buffer

This is because the target ID may be string or number.
2017-09-17 23:05:38 +07:00
Thai Pangsakulyanont 5cb7bfa81f add test case for DelegatedModule#updateHash
this test case verifies that #5684 is fixed
2017-09-16 03:37:46 +07:00
Thai Pangsakulyanont a0ddd55aa6 fix DelegatedModule does not updateHash with its parameters
fixes #5684
2017-09-16 03:00:45 +07:00
Tobias Koppers 622675993d 3.6.0 2017-09-15 10:45:43 +02:00
Logan Smyth 087b85a3b1 Support evaluating .concat on strings. 2017-09-14 16:12:43 -07:00
Logan Smyth 154c5799f8 Add test for template literal analysis. 2017-09-14 11:36:10 -07:00
Logan Smyth 9f2639a9bb Fix incorrect nesting of template literal eval plugins. 2017-09-14 10:02:34 -07:00
Tobias Koppers 2b1046e0a9 Merge pull request #5671 from webpack/bugfix/child-cache
assign correct cache to child compilation
2017-09-13 22:33:00 +02:00
Tobias Koppers 3d99168a67 remove unused code, add todo comment 2017-09-13 17:21:38 +02:00
Tobias Koppers 46432c4009 add test for notCacheable in CachePlugin 2017-09-13 17:19:15 +02:00
Tobias Koppers 460e6b68e1 remove incorrect tests 2017-09-13 16:51:24 +02:00
Tobias Koppers 0975d13da7 assign correct cache to child compilation
fixes webpack-contrib/extract-text-webpack-plugin#612
2017-09-13 16:29:37 +02:00
Tobias Koppers cc03d8e882 fix sponsors list for opencollective API changes 2017-09-12 12:11:28 +02:00
Tobias Koppers f6285d2217 Merge pull request #5652 from JLHwung/remove-duplicate-eslintrc-configuration-item
chore(eslint): remove duplicate configuration item
2017-09-11 12:13:42 +02:00
Tobias Koppers 5463c1ed9b add next PR label 2017-09-11 12:13:17 +02:00
Tobias Koppers d87c88e490 Merge pull request #5517 from webpack/ci/travis
update to newer travis image
2017-09-11 11:13:53 +02:00
Tobias Koppers 2f428aaf44 CI improvements 2017-09-11 11:02:40 +02:00
Tobias Koppers 9e14196319 update to newer travis image 2017-09-11 10:47:44 +02:00
Huáng Jùnliàng 44df871659 chore(eslint): remove duplicate configuration item 2017-09-09 09:43:30 +08:00
Tobias Koppers 2206ee0e55 Merge pull request #5625 from gyandeeps/issue5576
Fix: Add path separator to avoid file and folder name mixup(fixes #5576)
2017-09-07 00:07:29 +02:00
Tobias Koppers 92d5c20943 3.5.6 2017-09-06 17:41:05 +02:00
Tobias Koppers 978e9f9b17 Merge pull request #5635 from webpack/bugfix/clone-options
clone options and don't modify them
2017-09-06 17:32:19 +02:00
Tobias Koppers 50201047d7 allow boolean values for node and performance 2017-09-06 17:15:03 +02:00
Tobias Koppers a4cf91f23d Merge pull request #5633 from webpack/bugfix/indirect-import
fixes #5624
2017-09-06 15:33:44 +02:00
Tobias Koppers f04cce8278 clone options and don't modify them
fixes #5628
2017-09-06 12:10:16 +02:00
Tobias Koppers 1fb9eb1e47 fixes #5624 2017-09-06 10:33:08 +02:00
Gyandeep Singh 4f5e78bc0f Use statsSync isDirectory to check dir 2017-09-05 21:25:41 -05:00
Gyandeep Singh 877ecc88f3 Adding unit test 2017-09-04 16:09:20 -05:00
Gyandeep Singh cedc09dbe6 Fix: Add path separator to avoid file and folder name mixup(fixes #5576) 2017-09-04 15:23:54 -05:00
Tobias Koppers fb8afe7138 Merge pull request #5623 from webpack/bugfix/concat-require-root
handle inner non-harmony dependencies correctly in ConcatenatedModule
2017-09-04 15:50:50 +02:00
Tobias Koppers 1b85726b8b Merge pull request #5621 from webpack/bugfix/hmr-api
fix typo in HMR API
2017-09-04 14:15:51 +02:00
Tobias Koppers af470a504e handle inner non-harmony dependencies correctly in ConcatenatedModule
add async as keyword

fixes #5604
fixes #5615
2017-09-04 14:09:55 +02:00
Tobias Koppers ccc431756c fix typo in HMR API 2017-09-04 08:45:07 +02:00
Sean Larkin 9d9ac3baae Merge pull request #5608 from xekri/patch-1
typo fix
2017-09-01 05:39:57 -05:00
Fu Xiao 633eac42bb typo fix
`HTT2` seems typo of `HTTP2`
2017-08-31 21:11:06 -05:00
Tobias Koppers b75b20b416 Merge pull request #5595 from filipesilva/fix-deopts
fix: replace for..of to prevent v8 deoptimization
2017-08-31 11:22:12 +02:00
Tobias Koppers c8fd542579 Merge pull request #5599 from donocode/master
Prevent NormalModule contextify from contextifying query parameters
2017-08-30 11:19:02 +02:00