Commit Graph

91 Commits

Author SHA1 Message Date
alexander.akait 93743d233a refactor: code 2024-08-02 19:32:31 +03:00
alexander.akait b9d9a5d9ff style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 0a68cb16a4 style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 5725254415 style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait a592b62686 style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 423e89b2c7 style: improve style of code 2024-08-02 19:32:13 +03:00
alexander.akait 9ed9d06c05 test: more 2024-03-15 19:59:30 +03:00
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
Jiachi Liu e2c80ea974 Fix layer is missing in dynamic import with dynamic resource 2023-06-03 15:38:37 +02:00
alexander.akait 792ee7e516 refactor(types): more 2023-05-31 14:56:55 +00:00
Ivan Kopeykin cf5fc90082 support context in Dependency 2022-03-25 17:01:48 +03:00
Tobias Speicher 8f56fcba72
Replace deprecated String.prototype.substr()
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-13 22:54:18 +01:00
Ivan Kopeykin 8d1e46e523 handle error/callback result in ResolverCachePlugin with yield 2022-02-22 21:21:39 +03:00
Ivan Kopeykin 93d44847bd Revert "Revert "Merge pull request #15332 from webpack/fix/context-resolve-issue-11335""
This reverts commit dd53923cd0.
2022-02-21 11:58:44 +03:00
Tobias Koppers dd53923cd0 Revert "Merge pull request #15332 from webpack/fix/context-resolve-issue-11335"
This reverts commit 89c92bf0d3, reversing
changes made to a28af55ca1.
2022-02-17 14:43:51 +01:00
Ivan Kopeykin 02a7a9e90c fix discussions. add/update test cases 2022-02-08 14:16:16 +03:00
Ivan Kopeykin 9951d9d4d9 handle several resources in ContextModule 2022-02-08 11:12:32 +03:00
Juho Vepsäläinen 189a8863cd chore: Allow passing a typePrefix to ContextElementDependency
This is needed to tell different usages apart. The added information is
used by the lazy compilation feature.
2021-05-31 14:46:38 +03:00
Tobias Koppers 88d90bea14 Use LazySets for ContextModuleFactory 2021-04-23 14:51:25 +02:00
Tobias Koppers a2e326129c make filesystem types compatible with memfs and normal fs
fixes #12400
2021-01-13 10:14:58 +01:00
Tobias Koppers 99d7a205c2 prettier 2020-11-28 20:04:11 +01:00
Tobias Koppers e1a405e3c2 prettier 2020-11-26 10:52:55 +01:00
Aditya 2a2001dcbb fix bug for maxCallStack in ContextModuleFactory 2020-09-13 18:13:52 +05:30
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 7442a211b9 add support for resource fragments 2020-07-03 17:03:15 +02:00
Tobias Koppers 2abcfc0058 set dependency categories for all dependencies 2020-06-17 23:04:37 +02:00
Ivan Kopeykin 198e51a485 Merge branch 'master' into exports-field
# Conflicts:
#	lib/dependencies/ImportDependency.js
#	lib/sharing/ConsumeSharedPlugin.js
#	lib/sharing/ProvideSharedPlugin.js
#	types.d.ts
2020-06-16 21:16:41 +03:00
Ivan Kopeykin 3f8def8185 fix discussions
- add module condition
- rename EnhancedResolveOptions
- fix applyByDependency util function
- use EMPTY_RESOLVE_OPTIONS when resolveOptions are undefined
2020-06-16 21:02:31 +03:00
Tobias Koppers a4ac8f0328 Cleanup 2020-06-10 14:01:24 +02:00
Ivan Kopeykin d2a08e3cc8 rework how byDependency applied
remove dependencyType parameter for resolver factory
add dependencyType option in enhanced resolve options
2020-06-09 01:32:24 +03:00
Ivan Kopeykin ca95eccbe6 use resolverFactory.get with dep category option 2020-06-01 15:13:17 +03:00
evilebottnawi dafa4cd69a chore: setup cspell 2020-03-12 19:51:26 +03:00
Tobias Koppers 1070ce925b remove Array.prototype.reduce calls to simplify code 2020-01-17 18:31:29 +01:00
Tobias Koppers c94073b31c update enhanced-resolve 2019-07-05 00:45:41 +02:00
Tobias Koppers b2e7837288 replace Object.assign with object spread 2019-06-19 13:16:05 +02:00
Tobias Koppers e9c0d068dd refactor filesystem interfaces
add Compiler.intermediateFileSystem
avoid using `path` and `fs` module when possible
move `join`, `mkdirp` and `dirname` into utils
join and dirname is optional in FileSystem interface
remove mkdirp from Filesystem interface
2019-06-11 17:32:58 +02:00
Florent Cailhol b12f24d20c Update hook types 2019-05-10 09:52:22 +02:00
Tobias Koppers ef9e25d8ea report dependencies from resolver to the compilation
refactor NormalModuleFactory
2019-01-08 15:14:25 +01:00
Tobias Koppers 2e82dbb63c
Merge pull request #7813 from webpack/refactor/freeze_hooks
Freeze hooks to prevent deopts
2018-07-30 22:47:13 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Florent Cailhol fc4f30329d Freeze hooks to prevent deopts 2018-07-30 14:25:40 +02:00
Tobias Koppers 66d3f319a6 Merge tag 'v4.16.2' into next
4.16.2
2018-07-23 12:19:16 +02:00
Mohsen Azimi 57f21c0d20 Add JSDoc types for ContextExclusionPlugin 2018-07-05 08:20:24 +03:00
Florent Cailhol c68d0d2171 Remove Tapable compatibility 2018-06-26 08:31:08 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Josh Soref af3431d399 spelling: segment 2018-02-26 02:43:37 +00:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Suguru Motegi 864e563173 replace Async with Neo-Async 2018-02-11 14:31:08 -08:00
Florent Cailhol 202e399fff Do not use deprecated features of enhanced-resolve
- First argument of `Resolver#doResolve` is now a Hook
- Fourth argument of `Resolver#resolve` is now `resolveContext`. `callback` is the fifth.
2017-12-22 19:54:57 +01:00