alexander.akait
792ee7e516
refactor(types): more
2023-05-31 14:56:55 +00:00
alexzhang1030
61dee6e6fa
perf(ids): remove assignDeterministic verbose code to improve performance
2022-09-16 11:21:59 +08:00
Tobias Speicher
8f56fcba72
Replace deprecated String.prototype.substr()
...
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr ) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-13 22:54:18 +01:00
Tobias Koppers
1489b91a98
allow to generate only exports for css in node
...
add more options to the DeterministicModuleIdsPlugin to allow to opt-in into a fixed mode
optimize module iterations for module id assignment
2022-01-19 15:17:01 +01:00
Tobias Koppers
4a8bf4c084
allow to configure all hash functions used
...
fix default hash function for HttpUriPlugin to sha512
2021-09-23 14:55:13 +02:00
Tobias Koppers
916bf69cae
compute chunk roots correctly when using transitive connections
...
also use module.nameForCondition() to compute module ids
fixes https://github.com/webpack-contrib/mini-css-extract-plugin/issues/676
2021-01-11 18:14:24 +01:00
Tobias Koppers
fcca1d649d
analyse source code for side effects
...
mark the module as side effects free in such cases
allow 3rd state TRANSITIVE_ONLY to be side-effect-free but dependencies should still be included (for mini-css-extract-plugin)
2020-10-06 14:10:29 +02:00
evilebottnawi
dafa4cd69a
chore: setup cspell
2020-03-12 19:51:26 +03:00
Tobias Koppers
07999faa68
return early in `avoidNumber` when string can't be a number
2019-10-28 14:10:58 +01:00
Tobias Koppers
65bdb43180
fix badly chosen max fill rate for deterministic
...
sort modules by identifier in output file, that's better for gzip
2019-10-16 16:38:04 +02:00
Tobias Koppers
1d72a05fed
Merge tag 'v4.36.0' into next
...
4.36.0
2019-07-17 16:02:33 +02:00
Tobias Koppers
924daa105b
Use simpler/faster hash function to get a hash number
...
Use deterministic mangled names for exports
refactor assignDeterministicIds
rename __webpack_init__ function in wasm to ""
fix bug with incorrectly cached StaticExportsDependency
fix bug in hash logic of Module
2019-02-20 22:41:07 +01:00
Tobias Koppers
d40f7b2642
cache contextify and pass associatedObjectForCache to all calls
2019-01-19 12:40:00 +01:00
Mihail Bodrov
ca80248f9c
Minor optimization
2018-12-19 02:59:54 +03:00
Mihail Bodrov
1b3d0f6c27
Get rid of string
2018-12-19 02:59:53 +03:00
Mihail Bodrov
12dea1af24
Optimize getHashNumber
2018-12-19 02:59:53 +03:00
Florent Cailhol
5f26040786
Add types to SplitChunksPlugin
2018-12-10 22:09:27 +01:00
Tobias Koppers
5563ee9e58
use makePathsRelative instead of contextify
...
unify contextify and makePathsRelative
separate NormalModuleFactory ignored, ContextModule and ConcatenatedModule identifier with "|"
2018-12-07 18:12:04 +01:00
Tobias Koppers
a83e0daca6
replace RequestShortener with contextify in id generation
2018-12-07 16:07:40 +01:00
Tobias Koppers
f60c8d8f0e
bugfixes and optimizations
...
optimize name map for name equals id
bugfixes in named ids assigning
assign name before automatic ids
2018-12-07 15:14:14 +01:00
Tobias Koppers
8281667668
improve ids for Long Term Caching
...
add deterministic chunk ids and make it default
StatsTestCases no longer need to explicitly use natural ids as the defaults are deterministic now too
add concept of id name hints for chunks
add `idHint` option to splitChunks to provide a hint
deduplicated code from different id plugins to IdHelpers
improve behavior of named ids in case of conflicts
remove `name: true` and `automaticNamePrefix` from splitChunks it's not as good as expected
improve named chunk ids to show root modules
2018-12-07 12:26:35 +01:00