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
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
Scott CAMERON
c8b3ed701e
Remove temporary logging
2023-04-11 07:32:33 +02:00
Scott CAMERON
9ea8630cde
Add temporary logging to see if repro case already exists in tests
2023-04-10 21:33:21 +02:00
Scott CAMERON
bf7c6d16cf
Fix lint error (that I disagree with :-) )
2023-04-07 08:59:19 +02:00
Scott CAMERON
86f3da458c
Fix non-deterministic moduleId generation
...
The module sort was encountering NaN values, causing the sort to be non-deterministic, resulting in a different moduleId assignment being used in each build run when moduleIds: "size" is configured. This causes the build to be slightly different in size each time it's run.
2023-04-07 07:15:46 +02: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
8828dfa394
add experimental SyncModuleIdsPlugin
2022-01-20 13:37:28 +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
b0fa9ccada
pretty files
2021-05-11 09:31:46 +02:00
Tobias Koppers
e21b1d46fe
precompile schemas for improved startup performance
2021-04-16 16:02:58 +02:00
Tobias Koppers
5c42b918b4
further optimizations
2021-02-23 12:03:26 +01: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
18c20d6327
Merge pull request #11582 from webpack/update-schema-utils
...
chore(deps): update `schema-utils`
2020-10-07 10:30:11 +02:00
Tobias Koppers
8e562aa260
fix some nitpicks with active state
2020-10-07 09:36:41 +02: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
8c19efb7fd
chore(deps): update `schema-utils`
2020-10-05 21:58:54 +03: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
b9c50fdb09
fix jsdoc documentations
2020-04-28 19:42:58 +02:00
evilebottnawi
dafa4cd69a
chore: setup cspell
2020-03-12 19:51:26 +03:00
Tobias Koppers
131e4177ff
remove Array.prototype.reduce calls to simplify code
2020-01-18 19:56:19 +01:00
Tobias Koppers
efe0c2e610
avoid creating arrays in getConnections
2019-11-10 21:05:05 +01:00
Tobias Koppers
36bac0df8b
hoist compiler.root
2019-11-10 21:04:41 +01:00
Tobias Koppers
8d46b21fad
add Dependency.getCondition and conditional ModuleGraphConnections
...
getDependencyReference is no longer used to check of connection
2019-10-30 07:48:32 +01: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
b80174a069
Improve backward-compat for various things
...
to enable mini-css-extract-plugin
2019-09-26 22:06:54 +02:00
evilebottnawi
6a99b5316d
refactor: migrate on `schema-utils`
2019-08-07 18:10:40 +03:00
Tobias Koppers
1d72a05fed
Merge tag 'v4.36.0' into next
...
4.36.0
2019-07-17 16:02:33 +02:00
Tobias Koppers
b2e7837288
replace Object.assign with object spread
2019-06-19 13:16:05 +02:00
Tobias Koppers
6db94536ad
Merge tag 'v4.34.0' into next
...
4.34.0
2019-06-13 10:51:12 +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
ca46218787
add defaults for deterministic id plugins
2018-12-07 14:47:25 +01:00
Tobias Koppers
fe80339d71
use - instead of ~ as default for better compat
...
fix automaticNameDelimiter in splitChunks
fix test cases
2018-12-07 14:46:49 +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
Tobias Koppers
48a18948f2
revert id generation changes for runtime modules
...
They no longer have ids
2018-11-29 17:08:44 +01:00
Tobias Koppers
c1e89c0543
Runtime requirement support in NormalModule, Generators and DependencyTemplate
2018-11-29 16:06:12 +01:00
Florent Cailhol
8a10ea3c92
Type 'apply' method of plugins
2018-11-12 14:26:31 +01:00