Commit Graph

7325 Commits

Author SHA1 Message Date
Tobias Koppers c21d59f783 Merge tag 'v4.17.0' into next
4.17.0
2018-08-21 11:02:16 +02:00
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
Tobias Koppers 7d56a6067b
Merge pull request #7824 from webpack/refactor/stage_optim
Replace Basic and Advanced optimzation hooks by stages
2018-08-16 16:07:41 +02:00
Florent Cailhol a61778aad4 Change stage values 2018-08-16 14:10:55 +02:00
Florent Cailhol 7b02084bc5 Replace Basic and Advanced optimzation hooks by stages 2018-08-16 14:10:51 +02:00
Tobias Koppers a6e1c0693c add TODOs 2018-08-16 14:10:39 +02:00
Tobias Koppers abbb6bb634
Merge pull request #7896 from webpack/refactor/entry-modules
allow multiple entryModules per chunk
2018-08-16 10:43:13 +02:00
Tobias Koppers 2dc22d0db0 add SingleEntryPlugin as deprecated export 2018-08-15 21:10:35 +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 655d57f2d7
Merge pull request #7889 from webpack/refactor/chunk-graph
add ChunkGraph
2018-08-14 16:24:32 +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 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 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
Tobias Koppers f72d36b9cb add support for generics to tooling 2018-08-14 11:20:20 +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 d12e283ba1
Merge pull request #7812 from webpack/feature/orphan_modules
Hide orphan modules in Stats
2018-08-09 21:12:20 +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 aa1c12056c
Merge pull request #7870 from webpack/refactor/issuer-module-graph
move Module.issuer into Module.getIssuer(moduleGraph)
2018-08-09 17:27:27 +02:00
Tobias Koppers d35e42a14d move Module.issuer into Module.getIssuer(moduleGraph) 2018-08-09 16:44:28 +02:00
Tobias Koppers e7757a53c4
Merge pull request #7869 from webpack/bugfix/reexport-position
ConcatenatedModule and reexport optimizations
2018-08-09 16:43:25 +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 34427c1845 migrate to init fragments in ConcatenatedModule 2018-08-09 15:45:45 +02:00
Tobias Koppers 3347700225 improve optimization bailout message usefulness 2018-08-09 15:45:30 +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 227952c914 put reexports into the correct init section when possible
fixes #7857
2018-08-08 14:12:54 +02:00
Tobias Koppers 979b6b2ea5
Merge pull request #7861 from webpack/refactor/use-origin-module
remove originModule from Dependencies and add parent module to ModuleGraph
2018-08-07 14:51:52 +02:00
Tobias Koppers 3618cc1b3c remove originModule from Dependencies and add parent module to ModuleGraph 2018-08-07 14:20:53 +02:00
Tobias Koppers bff959901d
Merge pull request #7852 from webpack/refactor/used-exports
Move Module.used and Module.usedExports into ModuleGraph
2018-08-06 21:33:23 +02:00
Tobias Koppers 038d056aed add some hints for breaking changes 2018-08-06 21:05:13 +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 b63af4de40
Merge pull request #7850 from webpack/refactor/optimization-bailout
Move optimizationBailout into ModuleGraph meta information
2018-08-06 13:23:29 +02:00