Commit Graph

90 Commits

Author SHA1 Message Date
alexander.akait 9f63f7013a refactor: more types 2024-02-16 20:39:12 +03:00
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
alexander.akait 4809421990 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait 792ee7e516 refactor(types): more 2023-05-31 14:56:55 +00:00
Burhanuddin Udaipurwala 8d8a0e0e56 refactor: use global constant instead of string literal 2023-05-19 21:25:47 +05:30
Sean Larkin e958ac552b refactor(types): Improve module type strictness and refactor module type string usages in module subclasses 2023-05-04 23:19:11 +00:00
alexander.akait 4f6dc32d38 chore: improve types 2023-04-21 19:22:33 +03:00
alexander.akait 02590bfdc7 chore: improve types 2023-04-21 19:22:33 +03:00
Sean Larkin fa4cbf11a1 add more module type constants, use them across codebase 2023-03-31 10:56:32 -07:00
pengbo43 eec7f623ce chore: lint error 2023-01-16 10:08:24 +08:00
pengbo43 3d227acb6a chore: enabledLibraryTypes push opt 2023-01-13 10:25:28 +08:00
Evan Dower 1492735309 Pass shareScope through to ContainerPlugin & ContainerReferencePlugin 2022-07-08 22:51:16 -07:00
Tom ceed937ef0 fix: pretty-lint error "RuntimeGlobals.moduleFactories" 2022-04-02 09:00:08 +08:00
jinyangwang 5afbaf6857
Update lib/container/RemoteRuntimeModule.js
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2022-04-01 21:01:24 +08:00
jinyangwang 69a0c52008
Update lib/container/RemoteRuntimeModule.js
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2022-04-01 21:01:09 +08:00
Tom d7264d0cb6 fix(container): __webpack_modules__[id] => __webpack_require__.m[id] 2022-03-11 20:43:44 +08: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 94852e07f7 allow to disable runtime chunk per entry via `runtime: false`
and also via `ModuleFederationPlugin`.`runtime`
2021-07-05 11:32:45 +02:00
Tobias Koppers e21b1d46fe precompile schemas for improved startup performance 2021-04-16 16:02:58 +02:00
Tobias Koppers d808d04d26 attach the chunk graph to RuntimeModules 2021-04-14 12:26:35 +02: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 99d7a205c2 prettier 2020-11-28 20:04:11 +01:00
Tobias Koppers e1a405e3c2 prettier 2020-11-26 10:52:55 +01: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
evilebottnawi 8c19efb7fd chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03: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 07d863e14c implement enabledChunkLoadingTypes approach
allow chunkLoading per entry
allow custom library/chunkLoading types
2020-08-28 10:59:37 +02:00
Tobias Koppers 62ccae1abd build errors should be errors even for optional modules
optional modules should only treat "not found" errors as warnings

fixes #9161
2020-08-14 20:03:48 +02:00
Tobias Koppers 630ebfdf47 rename module federation classes for be more specific 2020-06-18 15:11:29 +02:00
Tobias Koppers 2abcfc0058 set dependency categories for all dependencies 2020-06-17 23:04:37 +02: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
Tobias Koppers d558943377 improve runtime requirement 2020-05-27 12:05:10 +02:00
Tobias Koppers cbb7ffc94d test and fix persistent caching 2020-05-26 17:43:08 +02:00
Tobias Koppers e78a76b2e0 remove all overrides and overridables related code 2020-05-26 17:26:28 +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 1b3246361b add consume shared module plugin 2020-05-25 23:14:19 +02:00
Tobias Koppers 264a171a54 change Module Federation API to be more similar to exports field 2020-05-20 20:13:14 +02:00
Tobias Koppers e476168fe7 allow to expose and consume an index module from containers 2020-05-19 17:49:20 +02:00
Tobias Koppers aa750e4bd0 test cases and bugfix 2020-05-14 17:25:14 +02:00
Tobias Koppers 48a6d7f3b2 fix missing request property 2020-05-14 16:20:00 +02:00
Tobias Koppers 4b6f53d04c fix deserialization of RemoteModule and RemoteOverridesModule 2020-05-14 16:06:49 +02:00