Commit Graph

208 Commits

Author SHA1 Message Date
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
Tobias Koppers ad56d8abb1 improve handling of relative/absolute requests in the ProvideSharedPlugin 2020-06-15 16:20:34 +02:00
Tobias Koppers 1c42f71250 allow to provide and consume multiple versions of shared modules 2020-06-13 14:45:37 +02:00
Tobias Koppers 42e14d6a42 provide shared based on used modules and used version 2020-06-10 16:30:08 +02:00
Ivan Kopeykin 2f7510abd2 add restrictions option 2020-06-08 23:54:59 +03:00
Tobias Koppers 3df380e2d7 add script external
change defaults of ModuleFederationPlugin to var library and script remoteType
allow using empty entry in config
2020-06-04 03:18:07 +02:00
Ivan Kopeykin 57bd6ed348 Merge branch 'master' into exports-field
# Conflicts:
#	lib/container/OverridablesPlugin.js
2020-06-01 15:14:47 +03:00
Ivan Kopeykin d4b1819749 add ability to set resolve options per dependency category
- byDependency option
- create resolver per dependency category
2020-05-28 02:30:29 +03:00
Ivan Kopeykin 52f3d60d44 fix typo 2020-05-27 22:47:37 +03:00
Tobias Koppers 4b61de7b14 strictVersion defaults to false for singleton modules 2020-05-27 15:16:44 +02:00
Tobias Koppers 6f5d229661 add singleton shared modules 2020-05-27 15:10:57 +02:00
Tobias Koppers bb30ea2216 automatically determine version of shared module from package.json 2020-05-27 11:53:59 +02:00
Tobias Koppers e78a76b2e0 remove all overrides and overridables related code 2020-05-26 17:26:28 +02:00
Tobias Koppers 32217e95fb add missing descriptions 2020-05-26 17:17:44 +02:00
Tobias Koppers edf03440ba add SharePlugin
let ModuleFederationPlugin use the SharePlugin
update container test cases to new behavior
2020-05-26 17:11:21 +02:00
Tobias Koppers 2fc44c2343 add share plugin 2020-05-26 00:46:09 +02:00
Tobias Koppers 1b3246361b add consume shared module plugin 2020-05-25 23:14:19 +02:00
Ivan Kopeykin bf3633ee1b add exportsFields and conditionNames options 2020-05-25 14:44:50 +03:00
Tobias Koppers 83cdba368f add provide shared module plugin 2020-05-25 10:50:37 +02:00
Tobias Koppers a468cbbd2e add provide shared module plugin 2020-05-23 16:08:51 +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 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 15eefadcea
Merge pull request #10838 from webpack/dev-1
Merge Module Federation into webpack 5 beta
2020-05-05 23:57:00 +02:00
chenxsan 0a53c7ed43 fix typos 2020-05-02 19:10:55 +08: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 5887c20ab0 Merge tag 'v5.0.0-beta.15' into dev-1
5.0.0-beta.15
2020-04-22 07:37:49 +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
Tobias Koppers e982708a51 fixes for stricter linting 2020-04-14 14:51:08 +02:00
Tobias Koppers d5c31ab864 Merge branch 'master' into dev-1 2020-04-14 12:48:38 +02:00
Tobias Koppers c754951781
Merge pull request #10701 from strayiker/bugfix/10699
Fix DllReferencePlugin schema
2020-04-14 10:59:30 +02:00
Kirill Mesnyankin e28bf3ae13 Fix DllReferencePlugin schema 2020-04-12 01:28:49 +03:00
Nitin Kumar 47436bb784
fix: update WebpackOptions.d.ts declaration 2020-04-10 08:40:14 +05:30
Tobias Koppers 505183833b process numbers and booleans before strings 2020-03-26 16:46:58 +01:00
Tobias Koppers 9eb1cd0ac5 test and fix reset flag
exclude some deprecated options
improve reference support in compile-to-definitions
stricter schema linting
2020-03-26 11:39:00 +01:00
Tobias Koppers 25f2b4aabf get rid of helpers in schema
handle array + single items by default in cli args
sort schema one/any/allOf array by type
2020-03-26 09:48:21 +01:00
Tobias Koppers 43aed43222 add path handling, dedupe, fix schema issue 2020-03-25 23:38:42 +01:00
Tobias Koppers 575d6aa4f0 Merge branch 'master' into dev-1 2020-03-20 09:58:13 +01:00
Tobias Koppers b178bfc55a Fix merge issues 2020-03-18 10:01:20 +01:00
Tobias Koppers 498bb0841b
Merge pull request #10548 from webpack/setup-cspell
chore: setup cspell
2020-03-18 09:51:54 +01:00
Ivan Kopeykin 5ba64ab46b fix(#10552) remove test/include/exclude from schema for rule set conditions 2020-03-15 21:21:52 +03:00
evilebottnawi 793977d273 chore: setup cspell 2020-03-13 12:03:17 +03:00
Tobias Koppers 3bc5a9e0b7 Merge branch 'master' into dev-1 2020-03-12 15:44:02 +01:00
Tobias Koppers df81e14447 little schema fixes 2020-03-10 18:19:49 +01:00
Tobias Koppers 87e6f58786 Ensure strict format of descriptions in schemas 2020-03-10 18:19:33 +01:00
Tobias Koppers 95347e17d5
Merge pull request #10445 from ScriptedAlchemy/container-reference-schema-validation
ContainerReferencePlugin options validation
2020-02-26 22:37:26 +01:00
Tobias Koppers d33c0d144e use new library system in ContainerPlugin 2020-02-26 21:52:58 +01:00