Skip to content

Commit be0ba57

Browse files
committed
fix missing test and data import extensions
Add explicit .js extensions to ESM imports so the test helpers and createAsync build resolve correctly. Made-with: Cursor
1 parent e2bdbad commit be0ba57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/data/createAsync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "solid-js";
1212
import { createStore, reconcile, type ReconcileOptions, unwrap } from "solid-js/store";
1313
import { isServer } from "solid-js/web";
14-
import { setFunctionName } from "../utils";
14+
import { setFunctionName } from "../utils.js";
1515

1616
/**
1717
* As `createAsync` and `createAsyncStore` are wrappers for `createResource`,

test/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createEffect, createMemo, createRoot, createSignal } from "solid-js";
2-
import { RouterContext } from "../src/types";
2+
import { RouterContext } from "../src/types.js";
33
import { vi } from "vitest";
44

55
export function createCounter(fn: () => void, start: number = -1) {

0 commit comments

Comments
 (0)