Ivan Kopeykin
ddc83b0d70
feat: url assets
2020-08-05 00:55:38 +03:00
Nitin Kumar
ddaa68e198
fix: optimization.emitOnErrors description
2020-08-03 15:11:54 +05:30
Tobias Koppers
d0ef2ce43f
display assets in stats in a list instead of a table
...
group related assets below the parent asset
2020-08-02 08:07:32 +02:00
Tobias Koppers
f5bd6216aa
add related info to asset info
2020-08-02 07:36:05 +02:00
Tobias Koppers
ca369f23c5
do cache related tasks after calling handler in watching
...
improve progress output
2020-08-01 09:00:17 +02:00
Tobias Koppers
4c3216efad
add size optimization mode to `optimization.mangleExports`
2020-07-31 12:54:38 +02:00
Tobias Koppers
a4f17775b1
fix dependOn behavior with runtimes, fix runtime passing by entry
2020-07-30 11:18:09 +02:00
Tobias Koppers
77cdce7393
remove unused methods, improve code coverage
2020-07-29 11:14:26 +02:00
Tobias Koppers
8948263db8
avoid using getChunkModuleMaps as it doesn't support different modules per runtime
2020-07-28 17:16:32 +02:00
Tobias Koppers
1265765141
polish, types
2020-07-27 22:41:04 +02:00
Tobias Koppers
e16bdfda6c
refactor used exports analysis, hashing, code generation, optimizations
...
to keep track of runtimes, used exports depending on runtime
modules can have different hashes and generated code depending on runtime
chunks are only considered as equal for MergeDuplicateChunks and SplitChunks when exports used in contained modules are equal
added `optimization.usedExports: "global"` to opt-out from used exports analysis per runtime
added `splitChunks.usedExports` and `splitChunks.cacheGroups[x].usedExports` to enable/disable used exports comparing for modules
`splitChunks.usedExports` defaults to `true` in production
2020-07-27 22:40:44 +02:00
Tobias Koppers
b3466e996b
add entry[x].runtime option to allow runtime chunk per entry
2020-07-27 22:40:40 +02:00
Ivan Kopeykin
60619d2a41
fix lint
2020-07-22 23:05:26 +03:00
Ivan Kopeykin
bd858f0d30
add more types
2020-07-22 19:58:08 +03:00
Tobias Koppers
c8aff62228
improve handling of side effects with evaluation
2020-07-21 13:00:25 +02:00
Tobias Koppers
bc1c5a8f23
refactor evaluation logic
2020-07-21 10:30:12 +02:00
Ivan Kopeykin
5ec7dfd6ac
refactor equality comparison, support nullish coalescing in ConstPlugin
...
- add handleStrictEqualityComparison callback
- add handleAbstractEqualityComparison callback
- rework evaluateIdentifier interface
- add tests
2020-07-21 10:30:10 +02:00
Ivan Kopeykin
3ecc87889c
add nullish coalescing support
2020-07-21 10:30:08 +02:00
Tobias Koppers
1179a3eaab
Merge pull request #11188 from webpack/feature/mjs
...
improve compatibly with node.js ESM
2020-07-20 12:18:21 +02:00
Tobias Koppers
4786a7ec61
Merge pull request #11191 from webpack/bugfix/asset-hash
...
use content hashes for assets
2020-07-20 10:18:54 +02:00
Tobias Koppers
36cf3039aa
use content hashes for assets
2020-07-20 08:45:27 +02:00
Tobias Koppers
f65adade96
deprecate optimization.noEmitOnErrors in favor of optimization.emitOnErrors
2020-07-20 08:40:31 +02:00
Tobias Koppers
205bbb4c0d
improve compatibly with node.js ESM
...
improve experiments.mjs to be more compatibly with node.js ESM
- add support for `type: "module"` in package.json
- add support for `*.cjs`
- enable strict ESM for data uris with `text/javascript` or `application/javascript`
- disallow not fully specified requests in imports `*.mjs` or `type: "module"`
add `descriptionData` rule condition to match package.json info
fix passing resolveOptions along context modules
2020-07-17 13:58:29 +02:00
Tobias Koppers
8c00696660
Merge pull request #11177 from webpack/bugfix/watching-invalid
...
call invalid hook also when manually invalidating watching
2020-07-16 08:13:11 +02:00
Tobias Koppers
5a2fa99055
call invalid hook also when manually invalidating watching
2020-07-15 19:34:23 +02:00
Tobias Koppers
b1eac4ab29
Use computed resolve options in context alternatives
...
deprecate ContextModuleFactory.hooks.alternatives because we need the options in the hook
2020-07-15 14:13:35 +02:00
Tobias Koppers
0d857e3942
Improve cleverMerge to respect byDependency order correctly
...
Allow to use "..." in `option.resolve` too
Add "..." to schema when needed
Apply dependency specific mainFields, aliasFields and conditionNames only
for cjs and esm dependencies or when none is specified for backward-compat.
2020-07-15 14:13:31 +02:00
Tobias Koppers
fd9b399ae9
Create Cache facade to make it easier to use
...
add missing serializers for classes used in test suite
2020-07-15 11:14:28 +02:00
Tobias Koppers
6014ca7e86
splitChunks improvements
...
add new splitChunks.enforceSizeThreshold option
enforces splitting on certain size (ignoring maxRequests and minRemainingSize)
reduce default for splitChunks.minSize to 20k
set default for splitChunks.enforceSizeThreshold to 50k
fix bug where sorting didn't work for minSize: 0
2020-07-13 10:12:17 +02:00
Tobias Koppers
3d36f75f88
Merge pull request #11143 from vankop/add-roots
...
add roots option
2020-07-09 13:15:30 +02:00
Tobias Koppers
49e5ce2812
Merge pull request #11131 from webpack/bugfix/ignore-linking-errors-on-error
...
ignore linking errors when the imported module has errors
2020-07-09 10:22:35 +02:00
Tobias Koppers
f874ac290d
Merge pull request #11140 from webpack/bugfix/avoid-modify-hash
...
fix HMR bugs with hashing
2020-07-09 10:06:49 +02:00
Tobias Koppers
71ec6adf3b
Improve description in config schema
2020-07-09 09:41:31 +02:00
Tobias Koppers
555db6a547
remove Compilation.modifyHash
...
refactor HMR Plugin to better support module hashes
fixes bug that causes empty HMR manifest
remove HotModuleReplacementPlugin multiStep
2020-07-09 09:02:38 +02:00
Ivan Kopeykin
38779b85ee
add roots option
2020-07-09 00:17:57 +03:00
Tobias Koppers
392ff5cf76
Merge pull request #11136 from webpack/improvement/exports-type-unknown
...
Avoid tracking/printing detailed usage info for modules without exportsType
2020-07-08 18:25:34 +02:00
Tobias Koppers
6c425546df
Avoid using real watchers in MultiWatching test case
...
add watchFileSystem to MultiCompiler and typings
2020-07-08 11:17:00 +02:00
Tobias Koppers
5068909499
Avoid tracking/printing detailed usage info for modules without exportsType
...
Make ContextModule a static default exporting module
fix provided exports info for ExternalModule
2020-07-08 11:07:03 +02:00
Tobias Koppers
78920aa689
ignore linking errors when the imported module has errors
2020-07-07 17:54:15 +02:00
Tobias Koppers
e27eb830f7
Merge pull request #11105 from webpack/mf/semver
...
add full Semantic Versioning for Shared Modules
2020-07-06 23:18:00 +02:00
Tobias Koppers
e8ed3d8d3b
Merge pull request #11117 from vankop/add-export-as-from
...
add export * as namespace from "module"
2020-07-06 22:31:07 +02:00
Tobias Koppers
d9435e0e3e
Merge pull request #11075 from vankop/import-meta
...
add import.meta support
2020-07-06 20:19:23 +02:00
Tobias Koppers
1bb02df61e
Merge pull request #11095 from vankop/support-url-requests
...
Support url requests
2020-07-06 20:03:52 +02:00
Tobias Koppers
7bbc2aa3ce
split HttpUrlPlugin into two plugins for http and https
2020-07-06 17:45:45 +02:00
Tobias Koppers
85edc5c7fa
improve code design of ImportMetaPlugin
...
add missing evaluation for compare operations
refactor duplicate code
add unhandledExpressionMemberChain hook to parser
add evaluateToNumber and types to JavascriptParserHelpers
add undefined to BasicEvaluatedExpression
add import.meta.webpack as webpack major version
2020-07-06 17:13:09 +02:00
Tobias Koppers
7442a211b9
add support for resource fragments
2020-07-03 17:03:15 +02:00
Tobias Koppers
7dad1c1c30
refactor scheme handling into plugins
2020-07-03 17:01:02 +02:00
Ivan Kopeykin
85715ba2c9
add export * as namespace from "module"
2020-07-03 13:12:58 +03:00
Tobias Koppers
115aa13577
improve compat for MainTemplate jsonp hooks
...
improve compat for MainTemplate runtime hooks
fixes #10826
2020-07-03 09:44:55 +02:00
Tobias Koppers
3fcd5f9bc5
add full Semantic Versioning for Shared Modules
...
change storage format in the share scope
choose shared module deterministic from the same origin
remove array syntax from version and requiredVersion in schema
2020-07-02 16:09:39 +02:00