Commit Graph

7337 Commits

Author SHA1 Message Date
Tobias Koppers fe54d717a2 refactor sorting in Stats 2018-08-22 12:45:08 +02:00
Tobias Koppers 4f65deb7dd Merge tag 'v4.17.1' into next
4.17.1
2018-08-22 12:43:12 +02:00
Tobias Koppers ff3ef5eb28 4.17.1 2018-08-22 11:50:11 +02:00
Tobias Koppers 58773adf0b
Merge pull request #7931 from webpack/bugfix/concatenated-star-export
fixes #7930
2018-08-22 11:48:44 +02:00
Tobias Koppers a92c23ef76 fixes #7930 2018-08-22 11:11:37 +02:00
Tobias Koppers 8fff814298
Merge pull request #7926 from webpack/refactor/module-graph
Refactor/module graph
2018-08-21 19:12:02 +02:00
Tobias Koppers 5a78e96dc9 add backward-compat layer for ModuleGraph and ChunkGraph 2018-08-21 16:17:02 +02:00
Tobias Koppers 42167db4af move Module.index and index2 into ModuleGraph 2018-08-21 16:16:51 +02:00
Tobias Koppers 4dfe88edb0 add moduleGraph argument to comparators 2018-08-21 11:08:07 +02:00
Tobias Koppers 0f1f69a9d6 hide id overriding in HarmonyImportSpecifierDependency 2018-08-21 11:06:59 +02:00
Tobias Koppers a875ddba5b refactor ModuleGraph to use internal dependency 2018-08-21 11:06:00 +02:00
Tobias Koppers 3bb5263bfd move methods from Module into ModuleGraph 2018-08-21 11:04:40 +02:00
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