Commit Graph

7124 Commits

Author SHA1 Message Date
Tobias Koppers 6f1f18f84d 4.17.0 2018-08-21 10:41:50 +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 ed9691585e
Merge pull request #7907 from Connormiha/simplify-context-replacmnet-plugin
Get rid of typeof for checking undefined
2018-08-21 10:21:29 +02:00
Mihail Bodrov 1f954b4f12 Get rid typeof undef in all lib 2018-08-21 03:26:50 +03: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 0e60343dca
Merge pull request #7921 from webpack/bugfix/contenhash-id
chunk ids contribute to contenthash for javascript
2018-08-20 10:36:02 +02:00
Tobias Koppers c253b4b130 chunk ids contribute to contenthash for javascript
fixes #7915
2018-08-20 10:04:33 +02:00
Mihail Bodrov efa69cd628 Get rid of typeof for checking undefined 2018-08-17 00:49:30 +03: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 a02bf9960d
Merge pull request #7886 from Sibiraj-S/patch-1
[Docs] Update README.md
2018-08-14 15:33:45 +02:00
Tobias Koppers aba6dbf3c6
Merge pull request #7888 from webpack/bugfix/issue-7887
fixes #7887
2018-08-14 12:12:30 +02:00
Tobias Koppers 1345ab252d fixes #7887 2018-08-14 11:25:59 +02:00
Sibiraj a9a4f1c8d7
docs: update README.md 2018-08-13 23:04:22 +05:30
Tobias Koppers 34ff480a92
Merge pull request #7881 from oygen87/patch-8
refactor
2018-08-13 07:53:23 +02:00
Tobias Koppers 58802facb8
Merge pull request #7882 from Connormiha/minor-optimize-chunk-compare
Avoid needless sort in Chunk compare
2018-08-13 07:53:00 +02:00
Mihail Bodrov fb9b61b72f Avoid needless sort in Chunk compare 2018-08-13 01:08:30 +03:00
Eugen Cazacu 1cd8b8ba07
refactor
change var to const for consitency in file
2018-08-12 12:33:43 +02:00
Tobias Koppers 09b6eaed8a
Merge pull request #7866 from webpack/feature/type-unsupported-feature-warning
chore(types): add jsdoc types for UnsupportedFeatureWarning class
2018-08-09 00:39:02 +02:00
Tobias Koppers 177dcf5c73
Merge pull request #7865 from tsangint/master
Update Jest URL
2018-08-09 00:25:12 +02:00
Sean Larkin 7dc00dbc09
chore(types): add jsdoc types for UnsupportedFeatureWarning class 2018-08-08 11:25:56 -07:00
tsangint 1d95e524b3 Update Jest URL 2018-08-09 01:27:40 +08:00
Tobias Koppers 025338cc91 4.16.5 2018-08-06 09:12:53 +02:00
Tobias Koppers 4972fd8bd6
Merge pull request #7842 from webpack/bugfix/override-entry
fix #7829
2018-08-03 12:24:21 +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
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 1e9d98cb4e 4.16.4 2018-08-02 15:46:54 +02:00
Tobias Koppers e16349590b
Merge pull request #7838 from webpack/test/jest-exported-tests
improve way of adding exported tests to test tree
2018-08-02 15:40:54 +02:00
Tobias Koppers 01cfe5b67a improve way of adding exported tests to test tree 2018-08-02 14:45:50 +02:00
Tobias Koppers 5f1852a82e
Merge pull request #7831 from EECOLOR/patch-1
Fix chunkAsset hook call in HotModuleReplacementPlugin - fixes #7828
2018-08-01 19:11:24 +02:00
Tobias Koppers afe3182a8d
Merge pull request #7836 from rzhe97/master
Update CONTRIBUTING.md
2018-08-01 19:10:43 +02:00
rzhe97 c893bbc735
Update CONTRIBUTING.md
Typo and grammatical error fixed
2018-08-01 23:53:18 +08:00
EECOLOR 2348c3cdc1
Formatting - move arguments to the same line 2018-08-01 10:44:39 +02:00
EECOLOR 7473ed4902
Fix chunkAsset hook call
The `compilation.hook.chunkAsset` hook expects 2 parameters, not three.
2018-08-01 10:19:11 +02:00
ryota-murakami cdf042c251
Update Jest homepage URL 2018-08-01 15:47:00 +09:00
Tobias Koppers 32fdca23bf
Merge pull request #7823 from flyyang/refactor/define-before-use-class
Refactor define before use class
2018-07-31 12:04:55 +02:00
Tobias Koppers e4ae6463c1
Merge pull request #7825 from webpack/deps/update_linters
Update linters
2018-07-31 12:04:08 +02:00
Florent Cailhol 64e301c33b Update Prettier 2018-07-31 11:44:32 +02:00
Florent Cailhol 20406a4295 Update ESLint 2018-07-31 11:43:07 +02:00
flyyang 5234abe7b6 Refactor define before use class 2018-07-31 14:17:44 +08:00
Tobias Koppers 61ce43443c
Merge pull request #7819 from webpack/refactor/template_es6
Convert Template to ES6
2018-07-30 22:50:30 +02:00
Florent Cailhol 3992ba3af6 Convert Template to ES6 2018-07-30 19:40:09 +02:00
Tobias Koppers 482ff20030 4.16.3 2018-07-27 12:14:29 +02:00