Commit Graph

989 Commits

Author SHA1 Message Date
alexander.akait ab3e93b19e style: fix 2024-06-11 16:09:50 +03:00
alexander.akait 81f2e865a6 chore: update eslint to v9 2024-06-11 15:32:02 +03:00
fi3ework 551c3721cf feat: root module is less prone to be wrapped in IIFE 2024-04-24 15:54:06 +08:00
alexander.akait be1d35eb02 fix(types): more 2024-03-18 18:50:56 +03:00
alexander.akait 662a0e77bb fix: more types 2024-03-14 18:50:52 +03:00
alexander.akait 33cd20a180 fix(types): watching and more 2024-03-14 18:15:13 +03:00
Alexander Akait a53721e1dd
refactor: fix typos 2024-03-12 18:38:34 +03:00
alexander.akait 6ab9bdaa73 fix: types 2024-02-22 17:20:17 +03:00
Viktor Szépe 10014b85d4 Fix typos 2024-02-19 16:46:07 +00:00
alexander.akait 9f63f7013a refactor: more types 2024-02-16 20:39:12 +03:00
alexander.akait 1c4bcfa36c chore(types): more 2024-01-26 17:53:40 +03:00
alexander.akait 28948dd1d1 fix: inner graph 2024-01-24 14:04:06 +03:00
alexander.akait 5a9ed6dc8b fix: inner graph 2024-01-24 13:05:09 +03:00
alexander.akait c8d9d979fb fix: inner graph for classes 2024-01-23 21:42:56 +03:00
alexander.akait 3022995f10 fix: inner graph for classes 2024-01-23 21:28:43 +03:00
David Michon a4e994b12a Remove lib directive 2024-01-22 17:29:52 -08:00
David Michon fd4c36dab2 Remove wrapper objects 2024-01-22 17:12:47 -08:00
David Michon b187e2f515 Optimize RemoveParentModulePlugin via bigint arithmetic 2024-01-22 17:03:07 -08:00
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
Peter Goldberg d22c6f3bf6
origin module must always be optimized first, even for unnamed re-exports 2023-08-21 00:41:23 -04:00
Peter Goldberg 47564af25a
tweak 2023-08-21 00:41:23 -04:00
Peter Goldberg c0fde48909
fix bug in `SideEffectsFlagPlugin` with namespace re-exports 2023-08-21 00:41:22 -04:00
alexander.akait e381884115 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait 4809421990 refactor(types): more 2023-06-21 19:00:24 +03:00
YunfeiHe 03fd7dca11 feat: support passing `RegExp` to `splitChunks.chunks` 2023-06-06 11:33:34 +08:00
alexander.akait a27db31048 refactor: types fix 2023-06-05 03:14:09 +03:00
alexander.akait ab47c696a4 refactor(types): more 2023-06-03 20:52:25 +03:00
Sean Larkin 80284ceb5d
Merge pull request #17233 from webpack/fix-16763
fix: handle class name in properties and methods
2023-05-24 07:18:13 -07:00
alexander.akait 4474dc4307 fix: inner graph 2023-05-24 00:29:08 +03:00
alexander.akait d1c4e61022 fix: inner graph 2023-05-24 00:29:06 +03:00
Burhanuddin Udaipurwala 8d8a0e0e56 refactor: use global constant instead of string literal 2023-05-19 21:25:47 +05:30
Ben Worline 19b46355fc fix import ordering 2023-05-04 21:36:03 -07:00
Ben Worline 2b2fed5880 Initial take 2023-05-04 20:41:15 -07: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
Ryan Wilson-Perkin 52b1b0e4ad
Revert "Improve performance of hashRegExp lookup" 2023-03-10 10:04:26 -05:00
Sean Larkin 710eaf4dda
Merge pull request #16789 from dmichon-msft/contenthash-hashsalt
Respect output.hashSalt in RealContentHashPlugin
2023-03-08 10:59:00 -08:00
David Michon 07283fabc4 Respect output.hashSalt in RealContentHashPlugin
Fix #16788

Update RealContentHashPlugin to initialize hash instances with
the value of `output.hashSalt`, if provided.
2023-03-07 16:15:36 -08:00
Ryan Wilson-Perkin cfdb1dfe59
Improve performance of hashRegExp lookup
For applications with a very large number of assets, the cost of
invoking a single regular expression with many many values in a group
becomes very high.

By changing to a list of regular expressions (with helper methods for
maintaining the original design) we can get a large performance
improvement.
2023-02-24 16:17:15 -05:00
Yehor Lvivski d4b1d69ef0 Initialize hash conditionally 2022-11-19 12:48:50 +01:00
Ivan Kopeykin 647faec2bf make imports order deterministic 2022-05-27 14:22:05 +03:00
Ivan Kopeykin 0d408d1c7f fix modules concatenation with importModule usage 2022-04-19 14:34:00 +03:00
Tobias Koppers cb639b3efc
Merge pull request #15624 from webpack/add-warning-when-cache-unaffected-and-concat-modules
throw error when using module concatenation and cacheUnaffected
2022-04-05 08:02:40 +02:00
Ivan Kopeykin 99a5793ca8 throw error when using module concatenation and cacheUnaffected
optimization.concatenateModules can't be used with cacheUnaffected as module concatenation is a global effect
2022-04-04 15:37:32 +03:00
Ivan Kopeykin 3f1715f8d8 generate only needed source types
- in ConcatenatedModule generate only js
- in NormalModule generate only used sources
2022-03-17 13:00:39 +03:00
Ivan Kopeykin 3ec8a60f67 add ability to set module source types in chunk 2022-03-16 09:23:33 +03:00
Tobias Koppers 4951965bb1 do not inherit existing top level declarations 2022-02-14 11:53:55 +01:00
Ivan Kopeykin 58a2fd01c4 refactor top level declarations
- add topLevelDeclarations to code generation results
- set topLevelDeclarations=undefined if any child topLevelDeclarations=undefined
2022-02-07 17:21:36 +03:00
Ivan Kopeykin fee6837cc7 update topLevelDeclarations for ConcatenatedModule
update top level declarations for ConcatenatedModule in code generation step
2022-02-04 16:05:10 +03:00
Tobias Koppers 313e416bd2 Merge branch 'main' into cspell-globs 2022-01-18 10:40:25 +01:00