Commit Graph

26 Commits

Author SHA1 Message Date
Sean Larkin fa4cbf11a1 add more module type constants, use them across codebase 2023-03-31 10:56:32 -07:00
Tobias Koppers c41eb368f2
Merge pull request #15182 from webpack/bugfix/lib-ident-includes-layer
Module.libIdent is scoped by the module layer if there is one
2022-01-18 09:59:01 +01:00
Tobias Koppers 6b83f85141 Module.libIdent is scoped by the module layer if there is one 2022-01-14 12:05:28 +01:00
Asriel Yu 136b723023 fix callback err type should include null 2021-12-24 20:27:31 +08:00
Tobias Koppers b854db4db8
Merge pull request #14774 from tanhauhau/tanhauhau/reuse-name-variable-in-shared-scope
reuse name variable in share scope
2021-11-26 09:22:49 +01:00
Tobias Koppers d91248711b fix and test module federation with ESM 2021-11-25 12:09:03 +01:00
Tan Li Hau 4ed2ecfcff reuse name variable in share scope 2021-11-21 09:38:19 +08:00
Tobias Koppers 9f3950e571 add support for libraries combined with iife: false
fix missing runtime requirement for system.js context
fix inlining of modules when conflicting symbols are defined on top-level
2021-02-11 11:19:24 +01:00
Art Chen cd0310f6d6 feat: support custom chunk name in container expose options
Module federation generates async chunks for exposed modules, which by
default named after the internal module id. This change allows users to
assign a custom name so that the file can be statically referenced.
2021-01-28 09:00:05 -08:00
Tobias Koppers 11a7cac537 add useSimpleSourceMap flag to enable/disable OriginalSource for generated code
pass reduced options object to Source.map() function
2020-10-26 16:33:38 +01:00
骗你是小猫咪 4e1ed1f6d1
Merge branch 'master' into #11419 2020-09-17 20:33:48 +08:00
Tobias Koppers a8542d3317 fix circular references between containers and modules in containers 2020-09-17 10:44:52 +02:00
shaodahong e29e3cdc0d return if undefined 2020-09-03 23:14:11 +08:00
shaodahong d76f72e0c7 fix: if Container shard undefined fixes #11419 2020-09-03 20:36:23 +08: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 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 7343b2a89c improve error handling and reporting 2020-05-05 21:51:20 +02:00
Tobias Koppers 24d1ca50b7 generate useful module ids for container-related modules 2020-05-05 21:51:17 +02:00
Tobias Koppers 6b13cafa20 dedupe remote overrides
fix transitive overriding
fix missing overriables for empty overridables
2020-05-04 15:01:50 +02:00
Tobias Koppers 004a24760a make ContainerEntryModule serializable 2020-04-29 12:45:54 +02:00
Tobias Koppers b178bfc55a Fix merge issues 2020-03-18 10:01:20 +01:00
Tobias Koppers ab3bff29df show container entry and remove override in SourceMap 2020-02-28 17:16:44 +01:00
Tobias Koppers 3ac31e3eee update formating of container entry 2020-02-28 17:12:36 +01:00
Tobias Koppers 25cd520012 add overridables to ContainerPlugin 2020-02-26 22:38:05 +01:00
Tobias Koppers 1b46705499 fixes and test 2020-02-26 18:31:48 +01:00
Marais Rossouw 905f2475ff feat: Adds ContainerPlugin
Co-authored-by: Zack Jackson <zackary.l.jackson@gmail.com>
2020-02-26 17:47:15 +01:00