Commit Graph

6292 Commits

Author SHA1 Message Date
Tobias Koppers 35c7801b5e fix bug where cacheGroup index was inverted 2021-01-07 21:47:08 +01:00
Tobias Koppers 3554793b4b fix bug where module size is added multiple times to the split chunk info
fixes #12307
2021-01-07 16:51:08 +01:00
Tobias Koppers e4a0cde49a
Merge pull request #12348 from webpack/refactor/resolve-by-property
byProperty functions, allow function for externals.byLayer
2021-01-06 15:49:44 +01:00
Tobias Koppers 7db04904ea fix types in resolveByProperty and removeOperations 2021-01-06 14:44:32 +01:00
Tobias Koppers 80c5041fe1
Merge pull request #12347 from webpack/feature/chunk-id-for-script
re-add chunkId to script loading when available
2021-01-06 11:14:42 +01:00
Tobias Koppers dcf6449393 allow function for externals.byLayer 2021-01-06 11:14:23 +01:00
Tobias Koppers 6107ab8cca improve handling of non-object values in clever merge
improve caching
2021-01-06 10:51:44 +01:00
Tobias Koppers b067bad545 allow function in byProperty configurations 2021-01-06 10:14:20 +01:00
Tobias Koppers 67d2e227f4 add resolveByProperty to cleverMerge 2021-01-06 10:14:20 +01:00
Tobias Koppers 957013f557
Merge pull request #12327 from webpack/feature/layer
add experiments.layers
2021-01-06 10:13:22 +01:00
Tobias Koppers d64227af29 re-add chunkId to script loading when available 2021-01-06 10:08:40 +01:00
Tobias Koppers ae15a701a4 fix handling of MetaProperty
fixes #12339
2021-01-05 21:26:28 +01:00
Tobias Koppers 10aa3daede add experiments.layers
add layers to define different module layers
support module layers in stats

add layer support for NormalModules

fixes #11466
2021-01-05 20:50:59 +01:00
Tobias Koppers ab961bf23a
Merge pull request #12326 from webpack/feature/global-parser-generator
allow to configure parsers and generators globally
2021-01-05 20:42:07 +01:00
Tobias Koppers aac7f2e619 allow to configure parsers and generators globally
get plugin schemas from root schema
normalize module.parser/generator
add test case
2021-01-05 12:08:30 +01:00
Tobias Koppers 0179d88d4b improve checkEnabled error messages 2021-01-05 11:34:57 +01:00
Tobias Koppers ea9834389e
Merge pull request #12301 from happyhappyyay/burranch
fix eval-source-map typo
2021-01-05 10:37:25 +01:00
Tobias Koppers 450a1ee5e8
Merge pull request #12321 from webpack/bugfix/webpack-require-in-eval
fix problems with using nested bundles with eval devtools
2021-01-05 10:36:53 +01:00
happyhappyyay 0916ae4997 Merge remote-tracking branch 'upstream/master' into burranch 2021-01-04 18:24:24 -06:00
Tobias Koppers 9395dcd27c
Merge pull request #12304 from webpack/dependabot/npm_and_yarn/types/node-14.14.19
chore(deps-dev): bump @types/node from 14.14.14 to 14.14.19
2021-01-04 15:38:36 +01:00
Tobias Koppers 9fafa503cb add caching to eval-source-map 2021-01-04 15:35:30 +01:00
Tobias Koppers a874c81f46 avoid unnecessary replacement of `__webpack_require__` when nesting bundles
avoid wrapping externals in the eval() as this breaks nesting bundles

fixes #11277
fixes #12300
2021-01-04 15:33:25 +01:00
Tobias Koppers 263c950952 typings has been fixed 2021-01-04 12:04:42 +01:00
Tobias Koppers 7412e71ba5
Merge pull request #11471 from Adityaperiwal/bugfix/ContextModuleRegex
refactor regex
2021-01-04 11:51:54 +01:00
happyhappyyay de3576aaa2 fix eval-source-map typo 2021-01-01 00:07:17 -06:00
highonweb bc1911bf78 Changed name of memorize function to memoize 2020-12-27 03:02:57 +05:30
Tobias Koppers 2fcb50cf0f
Merge pull request #12266 from webpack/bugfix/flanky-hash
ignore cloned ExportInfo during hashing
2020-12-23 23:19:46 +01:00
Tobias Koppers 63856cc017 get only readonly version of ExportInfo when determining module export type 2020-12-23 20:39:54 +01:00
Tobias Koppers 07fc323684 ignore cloned ExportInfo during hashing 2020-12-23 20:39:54 +01:00
Tobias Koppers 8b685637e1
slice instead of substring 2020-12-22 14:24:32 +01:00
Iván Zaera Avellón 39adecf568
fix #12255
When looking for common suffixes, strip the common prefix (if any) from
the items, so that the method doesn't fail when they overlap.
2020-12-22 12:29:08 +01:00
Tobias Koppers 4387e4d972 fix #12232 2020-12-18 21:54:18 +01:00
Tobias Koppers b5b1f25ad2 improve typings for stats related hooks and classes 2020-12-17 18:51:55 +01:00
Tobias Koppers ed4694dd9b
Merge pull request #12225 from webpack/bugfix/undefined-conditions
treat `undefined` equal to not existing in rules
2020-12-17 13:31:36 +01:00
Tobias Koppers 8acebd2ff5 treat `undefined` equal to not existing in rules
both are treated as empty string
2020-12-17 11:20:11 +01:00
Tobias Koppers 16d5c35b1e reexport the schema validation function from schema-utils 2020-12-17 10:41:28 +01:00
Tobias Koppers 745a583040 export WebpackError 2020-12-17 10:27:18 +01:00
Tobias Koppers 63dda151a2 expose Asset and AssetInfo types
allow custom properties in AssetInfo
2020-12-17 10:27:18 +01:00
Tobias Koppers 4c288fead3 compile typings in strict mode to include undefined and null in types 2020-12-16 18:28:49 +01:00
Tobias Koppers b6f58036fe
Merge pull request #12207 from webpack/bugfix/cache-without-build-deps
errors in initial cache no longer cause build dependencies to be ignored
2020-12-15 20:14:35 +01:00
Tobias Koppers c75a9ef87f errors in initial cache no longer cause build dependencies to be ignored 2020-12-15 17:06:33 +01:00
Tobias Koppers 06fcc0ad12 flag modules in dlls without entryOnly with side-effects to keep them 2020-12-15 16:38:20 +01:00
Tobias Koppers 1e2634fdd8 manual side effects flagging should override automatic analysis 2020-12-15 14:40:54 +01:00
Tobias Koppers adb4553baf
Merge pull request #12191 from webpack/bugfix/cache-size
allow to store large caches
2020-12-15 07:43:51 +01:00
Tobias Koppers e500ad0714 nitpicks 2020-12-14 23:05:40 +01:00
Daniel Nalborczyk 16833c33a0 fix spell checker (wasi) 2020-12-14 13:30:18 -05:00
Daniel Nalborczyk 56f42f13a0 feat: add support for additional node.js builtin modules 2020-12-14 13:17:39 -05:00
Tobias Koppers 3db039a183 improve serialization of lazy elements 2020-12-14 16:43:29 +01:00
Tobias Koppers 9563338d90 improve reading of cache file 2020-12-14 13:16:20 +01:00
Tobias Koppers 005bdbbefd fix memory leak when using createReadStream 2020-12-14 11:06:15 +01:00