Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/views/TreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function TreeCanvas({ source, tree, src, toast }: {

// Autosave the view document.
const firstSave = useRef(true)
const saveTimer = useRef<number>()
const saveTimer = useRef<number | undefined>(undefined)
const saveNow = useCallback(() => {
const doc: TreeViewDoc = {
version: 1,
Expand Down Expand Up @@ -228,7 +228,7 @@ function TreeCanvas({ source, tree, src, toast }: {
el.addEventListener('wheel', onWheel, { passive: false })
return () => el.removeEventListener('wheel', onWheel)
}, [])
const scrollTimer = useRef<number>()
const scrollTimer = useRef<number | undefined>(undefined)
const onScroll = () => {
const el = scrollRef.current
if (!el) return
Expand Down
7 changes: 4 additions & 3 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ export default defineConfig({
sourcemap: false,
rollupOptions: {
output: {
manualChunks: {
plotly: ['plotly.js-dist-min'],
},
// Vite 8 (rolldown) accepts manualChunks only as a function; the
// object form it replaces listed plotly.js-dist-min by package name.
manualChunks: (id: string) =>
id.includes('plotly.js-dist-min') ? 'plotly' : undefined,
},
},
},
Expand Down
Loading