Compare commits

...

2 Commits

Author SHA1 Message Date
Aakansha Doshi 43200a2844 build: optimize bundle size by updating split strategy 2023-09-05 16:13:28 +05:30
zsviczian 188921c247 fix: grid jittery after partition PR (#6935) 2023-08-27 19:30:47 +02:00
2 changed files with 12 additions and 6 deletions
+10 -2
View File
@@ -89,11 +89,19 @@ module.exports = {
}),
],
splitChunks: {
chunks: "async",
chunks: "all",
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/]/,
name: "vendor",
// cacheGroupKey here is `commons` as the key of the cacheGroup
name(module, chunks, cacheGroupKey) {
const moduleFileName = module
.identifier()
.split("/")
.reduceRight((item) => item);
const allChunksNames = chunks.map((item) => item.name).join("~");
return `${cacheGroupKey}-${allChunksNames}-${moduleFileName}`;
},
},
},
},
+2 -4
View File
@@ -934,10 +934,8 @@ const _renderStaticScene = ({
strokeGrid(
context,
appState.gridSize,
-Math.ceil(appState.zoom.value / appState.gridSize) * appState.gridSize +
(appState.scrollX % appState.gridSize),
-Math.ceil(appState.zoom.value / appState.gridSize) * appState.gridSize +
(appState.scrollY % appState.gridSize),
appState.scrollX,
appState.scrollY,
appState.zoom,
normalizedWidth / appState.zoom.value,
normalizedHeight / appState.zoom.value,