diff --git a/src/inc/ParsedRule.ts b/src/inc/ParsedRule.ts index e239d5c..a96ac91 100644 --- a/src/inc/ParsedRule.ts +++ b/src/inc/ParsedRule.ts @@ -1,5 +1,5 @@ -import Swup, { matchPath, classify, Location } from 'swup'; -import type { Path } from 'swup'; +import { matchPath, classify, Location } from 'swup'; +import type { Swup, Path } from 'swup'; import type { Route } from './defs.js'; import { dedupe, queryFragmentElement } from './functions.js'; import Logger, { highlight } from './Logger.js'; diff --git a/src/inc/functions.ts b/src/inc/functions.ts index 32a0763..d997504 100644 --- a/src/inc/functions.ts +++ b/src/inc/functions.ts @@ -1,5 +1,5 @@ -import Swup, { Location } from 'swup'; -import type { Visit, VisitScroll } from 'swup'; +import { Location } from 'swup'; +import type { Swup, Visit, VisitScroll } from 'swup'; import type { default as FragmentPlugin } from '../SwupFragmentPlugin.js'; import type { Route, FragmentVisit, FragmentElement } from './defs.js'; import type ParsedRule from './ParsedRule.js'; diff --git a/src/inc/handlers.ts b/src/inc/handlers.ts index ab14247..fa77692 100644 --- a/src/inc/handlers.ts +++ b/src/inc/handlers.ts @@ -35,7 +35,7 @@ export const onVisitStart: Handler<'visit:start'> = async function (this: Fragme const route = getRoute(visit); if (!route) return; - const fragmentVisit = this.getFragmentVisit(route, visit); + const fragmentVisit = this.getFragmentVisit(route); /** * Bail early if the current route doesn't match