Skip to content

Commit

Permalink
fix: adjusted module resolution for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Aug 17, 2023
1 parent fbfce28 commit 9c58f0b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/lib/adapters/nextjs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { HistoryManagement, StoreContext, useGeschichte } from '../../store.js'
import type { UrlObject } from 'url'
// tslint:disable-next-line:no-submodule-imports
import nextRouter, { Router as Router$ } from 'next/router.js'
// @ts-ignore
const { useRouter, default: NextRouter } = nextRouter

const split = (url?: string) => url?.split('?') || []
Expand Down
2 changes: 1 addition & 1 deletion src/lib/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
applyDiffWithCreateQueriesFromPatch,
applyFlatConfigToState,
} from './utils.js'
// @ts-ignore

const memoizeOne = memoizeOneImport.default || memoizeOneImport

export enum HistoryEventType {
Expand Down
1 change: 0 additions & 1 deletion src/lib/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { devtools, subscribeWithSelector } from 'zustand/middleware'
// tslint:disable-next-line:no-submodule-imports
import { createWithEqualityFn } from 'zustand/traditional'

// @ts-ignore
const memoizeOne = memoizeOneImport.default || memoizeOneImport

// tslint:disable-next-line:no-submodule-imports
Expand Down
1 change: 0 additions & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"moduleResolution": "node",
"outDir": "build/cjs",
"module": "CommonJS"
},
Expand Down

0 comments on commit 9c58f0b

Please sign in to comment.