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
Tobias Koppers
a27ef326d5
Upgrade tapable in ModuleFactories
2017-11-28 09:54:24 +01:00
Tobias Koppers
5a4f0aca67
change imports of tapable to old version
...
prepare to migrate to new tapable version
2017-11-27 20:56:42 +01:00
Tobias Koppers
5e39ec46ee
Allow to override resolve configuration
2017-11-18 08:12:35 +01:00
Anuraag Agrawal
ce266cb6f6
Support resourceQuery in context dependencies.
2017-11-16 15:20:50 +09:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +01:00
Tobias Koppers
f024687067
Refactor ContextDependency to take an options object
...
merged with options object from async info
2017-10-16 13:19:53 +02:00
Tobias Koppers
9075637b39
Refactor contextOptions
2017-10-16 12:59:36 +02:00
Landon Crapo
0a141f21c8
fixed failing tests
2017-10-13 17:51:01 -06:00
Landon Crapo
bc6c1be90c
refactoring filter to include and other requested changes
2017-10-13 15:41:44 -06:00
Landon Crapo
5d1759fd4c
modified import context filtering logic to filter on file names.
2017-10-13 15:41:02 -06:00
Tobias Koppers
33818bcbe4
Merge pull request #5812 from simon-paris/ignore-enoent-in-contextmodulefactory-resolvedependencies
...
Fix #5794 by ignoring ENOENT errors in ContextModuleFactory.addDependencies
2017-10-13 11:06:11 +02:00
Simon Paris
5e3039d5c9
Fix #5794 by ignoring ENOENT errors in ContextModuleFactory.addDependencies
2017-10-11 16:52:48 +08:00
Tim Sebastian
c8794261e9
Introduce new plugin hook for contextmodulefactory to allow filtering files
2017-09-25 21:27:51 +10:00
Tim Sebastian
7f3237f45a
just use "this" to refer to own context in lib/ContextModuleFactory.js
2017-09-25 21:23:08 +10:00
Adam Thomann
15f4894ebe
Convert bind(this) to arrow functions
2017-08-11 01:52:25 -04:00
Orlando Wenzinger
36659f54aa
ES6 refactor of ContextModuleFactory
2017-05-10 21:36:20 +02:00
Ma Cheng
1fdf800f09
Merge branch 'master' into feature/import-chunk-name
2017-04-06 11:35:40 +08:00
SendilKumar N
26456f96d4
Changing async to asyncLib
2017-04-05 21:05:00 +08:00
mc-zone
0b1b9265fb
Fix indentation.
2017-03-28 10:42:18 +08:00
mc-zone
b65432a2f1
Add specify chunk name feature for `import()`
...
Add specify chunk name feature for `import()` by following special comment block after the param:
import('./foo' /* webpackChunkName = "myChunkName" */)
Thus we can use chunk name like `requre.ensure` and avoid conflicts with the specification.
2017-03-26 17:18:30 +08:00
Tobias Koppers
8e69a80847
code linting
2017-01-11 12:29:01 +01:00
Tobias Koppers
711a3822fa
refactor ModuleFactory to take an object instead of multiple arguments
2016-07-20 12:51:03 +02:00
Tobias Koppers
a4cc54e759
added manual context map option to ContextReplacementPlugin
2016-01-06 19:56:17 +01:00
Tobias Koppers
461c49ab66
updated partly to new enhanced-resolve API
2016-01-02 00:21:54 +01:00
Tobias Koppers
ded70aef28
moves stuff from webpack-core to webpack-sources
2015-12-29 17:44:55 +01:00