alexander.akait
be1d35eb02
fix(types): more
2024-03-18 18:50:56 +03:00
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
34c3fba92c
fix: consume shared runtime module logic
2024-01-04 16:05:31 +03:00
Felipe Plets
02bddf66ac
chore: apply linting rules and improve docs
2023-09-09 13:40:18 -04:00
Felipe Plets
a6618bde3c
chore: refactor getRequiredVersionFromDescriptionFile in utils.js
2023-09-09 13:27:12 -04:00
alexander.akait
4809421990
refactor(types): more
2023-06-21 19:00:24 +03:00
alexander.akait
9894226149
refactor(types): more
2023-06-14 19:46:53 +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
0575f843b7
revert readable id change in ConsumeSharedModule
2023-05-04 23:25:06 +00:00
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
Sean Larkin
4fb73da284
Merge pull request #16945 from snitin315/feat/url-deps-mf
...
feat: add URL dependencies support to consume shared module via module federation
2023-05-03 09:21:45 -07:00
Nitin Kumar
e4fcce4541
feat: make RexExps case-insensitive
2023-05-01 10:35:31 +00:00
Sean Larkin
2c6dc778ab
Merge pull request #16388 from indeediansbrett/feat/issue-16374
...
feat: ignoreBrowserWarnings option to ignore browser console warnings
2023-04-25 20:51:46 -07: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
Sam Brett
f5d368efa6
feat: ignoreBrowserWarnings option to ignore browser console warnings
2023-04-20 10:51:37 -07:00
Nitin Kumar
cc3149b38c
refactor: hoist VERSION_PATTERN_REGEXP to top
2023-04-19 14:56:18 +00:00
Nitin Kumar
7323f01054
feat: add URL dependencies support for module federation
2023-04-18 03:45:47 +00:00
weareoutman
e559f1512b
fix: handle package self-referencing in shared module
...
closes #16683
2023-01-31 09:56:58 +08:00
AndreyGladkov
fc3746e741
Add a check to start the initialization of the shared module
2023-01-19 16:11:09 +03:00
AndreyGladkov
dd7d0ca863
Fix consumes function
2023-01-09 18:42:32 +03:00
Ivan Kopeykin
e71d3b49fe
more informative error in ProvideSharedPlugin
2022-05-30 14:56:08 +03: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
Ben Harris
bbe72b3eae
Added testing for new singleton logic (and caught a typo in the process!)
2021-12-02 11:44:23 -05:00
Ben Harris
92e373028d
Proposed fix to module federation to stop ignoring the singleton flag when requiredVersion is false
2021-12-01 21:07:29 -05:00
Tobias Koppers
6fbcd415d4
improve runtime code
2021-11-25 09:57:48 +01:00
tanhauhau
0e2337dfb7
feat: show which singleton loaded version
2021-11-21 10:59:30 +08:00
Aleen
ab34ffb2ae
Revert to use ['catch'] directly
2021-11-02 12:52:00 +08:00
Aleen
4c50786098
use propertyAccess to generate .catch code
2021-11-02 12:51:59 +08: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
7f4ce2cf1a
add expressionFunction helper to choose shortest variant when return value is not relevant
2021-03-15 15:40:30 +01:00
Seth Benjamin
9fa45137d8
fix: use runtime globals in shared plugin
...
- Fixes a bug that caused HMR to fail when using Module Federation (__webpack_modules__ is not defined).
2021-03-07 16:03:05 -08:00
Tobias Koppers
495cabb94d
improve TLA consistency
2021-01-29 13:51:32 +01:00
Tobias Koppers
a08eca78ff
Merge pull request #12132 from jakenorthey/feature/prioritize-eager-shared-modules
2021-01-18 17:00:21 +01:00
Tobias Koppers
58d459bff1
accept truthy/falsy values for eager
...
save 2 chars for each provided shared module
prettify test cases
2021-01-14 14:24:34 +01:00
Tobias Koppers
48571c663f
add selective runtime requirements from startup logic which doesn't prevent inlining modules
...
avoid using startup function for grab data from preexecuted chunks
2020-12-11 14:36:48 +01:00
Jake Northey
8f7fac5fa2
fix: fix syntax error and add tests for comparing eager to eager modules and non-eager to non-eager modules
2020-12-08 18:54:40 -05:00
Jake
60183bd220
fix: handle eager === activeVersion.eager === true
...
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2020-12-07 08:30:51 -05:00
Jake Northey
3fe999a621
fix: remove unnecessary default parameter value
2020-12-05 14:59:37 -05:00
Jake Northey
19d6f52ca7
check if existing dependency is eagerly loaded
2020-12-03 12:24:14 -05:00
Jake Northey
1d9b77c060
prioritize eager shared module dependencies in dependency registration
2020-12-03 12:07:14 -05:00
evilebottnawi
8c19efb7fd
chore(deps): update `schema-utils`
2020-10-05 21:58:54 +03:00
Tobias Koppers
a8542d3317
fix circular references between containers and modules in containers
2020-09-17 10:44:52 +02:00
Tobias Koppers
2d842c0508
pass on shareScope in SharePlugin
2020-08-03 14:32:42 +02:00
Tobias Koppers
e16bdfda6c
refactor used exports analysis, hashing, code generation, optimizations
...
to keep track of runtimes, used exports depending on runtime
modules can have different hashes and generated code depending on runtime
chunks are only considered as equal for MergeDuplicateChunks and SplitChunks when exports used in contained modules are equal
added `optimization.usedExports: "global"` to opt-out from used exports analysis per runtime
added `splitChunks.usedExports` and `splitChunks.cacheGroups[x].usedExports` to enable/disable used exports comparing for modules
`splitChunks.usedExports` defaults to `true` in production
2020-07-27 22:40:44 +02:00