Commit Graph

35 Commits

Author SHA1 Message Date
Ivan Kopeykin b7098ae52b define dependency category as string instead of enum 2020-05-27 22:57:45 +03:00
Ivan Kopeykin 52f3d60d44 fix typo 2020-05-27 22:47:37 +03:00
Ivan Kopeykin dea031475e add dependency category property 2020-05-26 23:56:24 +03:00
Ivan Kopeykin bf3633ee1b add exportsFields and conditionNames options 2020-05-25 14:44:50 +03:00
Tobias Koppers 49752a06a8 cleanup asset processing
deprecate writing to compilation.assets after sealing.
merge all asset processing into single hook with stages.
Deprecate additionalChunkAssets and optimizeChunkAssets.
Redirect additionalAssets, optimizeAssets to processAssets for backward-compat.
Remove finishAssets hook without deprecation as it was not in v4.
2020-05-22 10:39:21 +02:00
Tobias Koppers a66290a15f add support for async externals
add `promise` external
add `import` external (uses import())

add `output.importFunctionName` option to change the `import()` function name

allow for inline external type when using arrays

fix some typings

fix namespace object behavior when using system external and accessing nested property
fix interop behavior for async dynamic modules
2020-05-19 17:25:43 +02:00
Tobias Koppers fde5b3df11 allow to concatenate modules when used exports are known 2020-05-19 14:42:21 +02:00
Tobias Koppers fdf43eab16 Connect more info about exports when using export * 2020-05-19 03:16:21 +02:00
Tobias Koppers 4f194f0748 advanced configs for container plugins
refactor options parsing to allow advanced config options
  automatic scoping has been removed and a scope method is offered instead
move shared schema definitions into a shared schema to allow to sync them
allow to pass multiple modules to a single exposed name
  they are all executed and the last one is exported
allow to pass multiple container locations to remotes
  they are tried in order, falling back to the next one when one fails
allow remotes to be promises as preparation of async externals
2020-05-14 15:50:35 +02:00
Tobias Koppers 020cedf383 remove weird types
remove SKIP_OVER_NAME
update tooling for fixed "to not edit" comments
2020-05-12 15:58:43 +02:00
Tobias Koppers c76090f18e improve StatsPrinter types 2020-05-12 14:37:12 +02:00
Nathan Shively-Sanders 8603fd75a6 fix 3.9 build errors 2020-05-12 14:37:02 +02:00
Tobias Koppers 952bc11510 fixes typing in ModuleGraph 2020-05-12 14:34:26 +02:00
Mohsen Azimi 1e0ad4ccd2 Upgrade to TypeScript 3.9 2020-05-12 14:34:24 +02:00
Tobias Koppers 15eefadcea
Merge pull request #10838 from webpack/dev-1
Merge Module Federation into webpack 5 beta
2020-05-05 23:57:00 +02:00
Tobias Koppers 93fddc0680 remove logic to finish modules in module graph 2020-05-05 22:12:27 +02:00
Tobias Koppers 24d1ca50b7 generate useful module ids for container-related modules 2020-05-05 21:51:17 +02:00
chenxsan 0a53c7ed43 fix typos 2020-05-02 19:10:55 +08:00
Tobias Koppers c5a53b0b87 updates typings 2020-04-30 23:43:53 +02:00
Tobias Koppers 5ad346ec98 validate options for container-related plugins
expose options types via declarations
hide private properties in plugins
move container-related schemas into container folder
2020-04-30 18:07:17 +02:00
Tobias Koppers e9ae850d66 support overridables in initial chunks 2020-04-30 00:40:38 +02:00
Tobias Koppers a432c3ff18 Merge branch 'master' into dev-1 2020-04-29 12:39:07 +02:00
Tobias Koppers 87bced2591 upgrade tooling, expose container plugins, fix typings tests 2020-04-28 23:06:04 +02:00
Tobias Koppers 6ce465b234 upgrade tooling for fixes and improvements 2020-04-28 21:58:09 +02:00
Tobias Koppers efec709884 update tooling, some fixes in types
fixes #10757
2020-04-28 19:42:55 +02:00
Ivan Kopeykin 69c7afa4c4 test for #10725 2020-04-26 19:14:34 +03:00
Tobias Koppers a643278726 refactor exports info logic always represent exports object instead of namespace object
improve test case
2020-04-22 21:01:29 +02:00
Tobias Koppers 5887c20ab0 Merge tag 'v5.0.0-beta.15' into dev-1
5.0.0-beta.15
2020-04-22 07:37:49 +02:00
Anix f9eb7f5028 fix: exporting deterministicChinkIdPlugin as ids (fixes #10608) 2020-04-21 10:19:41 +02:00
Tobias Koppers 67d4132534 improve top level types 2020-04-21 09:26:07 +02:00
Tobias Koppers ad55eb7233 improve the code generation of the typings 2020-04-21 09:26:05 +02:00
Tobias Koppers c7a962604f fix splitChunks typings 2020-04-21 09:25:58 +02:00
Tobias Koppers cbb6ee6809 test more test cases for typings and fix typing bug 2020-04-21 09:25:55 +02:00
Tobias Koppers 6178aea763 improve typings and test them in CI
lazy load all webpack exports
2020-04-21 09:25:43 +02:00
Tobias Koppers 3f9e6d5ec6 move tooling into separate repo, add type generation and test types 2020-04-21 09:25:38 +02:00