alexander.akait
93743d233a
refactor: code
2024-08-02 19:32:31 +03:00
David Michon
2feccc099d
(fix) Correct behavior of __webpack_exports_info__.a.b.canMangle
2024-03-25 15:01:41 -07:00
alexander.akait
be1d35eb02
fix(types): more
2024-03-18 18:50:56 +03:00
ahabhgk
052e1c9502
fix: __webpack_exports_info.xxx.canMangle should not always same as default
2024-02-06 16:19:56 +08:00
alexander.akait
e381884115
refactor(types): more
2023-06-21 19:00:24 +03:00
alexander.akait
13f7bed151
refactor: types
2023-05-22 00:17:19 +03:00
alexander.akait
7cba20d462
refactor: types fix
2023-05-22 00:06:31 +03:00
alexander.akait
055737dc0c
refactor(types): more
2023-05-21 23:31:30 +03:00
alexander.akait
4f6dc32d38
chore: improve types
2023-04-21 19:22:33 +03:00
Ivan Kopeykin
a905ea376e
fix discussions
2022-02-11 11:07:54 +03:00
Ivan Kopeykin
48305033f4
fix ExportsInfo
...
- should mark every export canMangleProvide=false if there are unknown exports
- add __webpack_exports_info__.<name>.canMangle to api
- add test case
2022-02-10 16:20:53 +03:00
Tobias Koppers
97b83161d9
move responsibility of exports info and connected modules hashing from Dependencies to Module
...
fixes a bug where modules are incorrectly cached when exports info of connected modules change
2021-01-24 21:36:36 +01:00
Tobias Koppers
e1a405e3c2
prettier
2020-11-26 10:52:55 +01: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
Tobias Koppers
454bee59e6
disable used exports optimization in development to prevent unexpected changes to module
2020-07-09 08:46:43 +02:00
Tobias Koppers
ce41cdc29e
add `__webpack_exports_info__.usedExports` to get a list of used exports
2019-09-03 14:18:13 +02:00
Tobias Koppers
fb13b76b34
add `__webpack_exports_info__` API to allow export introspection
...
improve usage/provide information for nested exports
improve tests for deep exports
2019-08-22 16:59:37 +02:00