Skip to content

Commit 703cd57

Browse files
authored
Merge pull request #118 from inokawa/nodenext
Set `"moduleResolution": "nodenext"` to tsconfig
2 parents 53b68cc + 73773ff commit 703cd57

20 files changed

+54
-54
lines changed

src/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export type {
66
AnimatableCSSProperties,
77
PlayOptions,
88
WaitingAnimationEventName,
9-
} from "./waapi";
9+
} from "./waapi.js";

src/core/utils.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from "vitest";
2-
import { isSameObject, isSameObjectArray } from "./utils";
2+
import { isSameObject, isSameObjectArray } from "./utils.js";
33

44
describe("isSameObject", () => {
55
it("should return true if the objects are same", () => {

src/core/waapi.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from "vitest";
2-
import { getKeyframeKeys } from "./waapi";
2+
import { getKeyframeKeys } from "./waapi.js";
33

44
describe("getKeyframeKeys", () => {
55
it("normal", () => {

src/core/waapi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { CSSProperties } from "react";
2-
import { getKeys, uniq } from "./utils";
2+
import { getKeys, uniq } from "./utils.js";
33

44
export type AnimatableCSSProperties = Omit<
55
CSSProperties,

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from "./core";
2-
export * from "./react";
1+
export * from "./core/index.js";
2+
export * from "./react/index.js";

src/react/components/TransitionGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
ReactElement,
99
useCallback,
1010
} from "react";
11-
import { noop } from "../../core/utils";
11+
import { noop } from "../../core/utils.js";
1212

1313
const toMap = (elements: ReactElement[]) =>
1414
elements.reduce((acc, e, i) => {

src/react/components/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { TransitionGroup } from "./TransitionGroup";
2-
export type { TransitionGroupProps } from "./TransitionGroup";
1+
export { TransitionGroup } from "./TransitionGroup.js";
2+
export type { TransitionGroupProps } from "./TransitionGroup.js";

src/react/hooks/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export * from "./useAnimation";
2-
export * from "./useAnimationFunction";
3-
export * from "./useTransitionAnimation";
4-
export * from "./useScrollTimeline";
5-
export * from "./useViewTimeline";
1+
export * from "./useAnimation.js";
2+
export * from "./useAnimationFunction.js";
3+
export * from "./useTransitionAnimation.js";
4+
export * from "./useScrollTimeline.js";
5+
export * from "./useViewTimeline.js";

src/react/hooks/state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { isSameObject, isSameObjectArray } from "../../core/utils";
2-
import { createAnimation } from "../../core/waapi";
1+
import { isSameObject, isSameObjectArray } from "../../core/utils.js";
2+
import { createAnimation } from "../../core/waapi.js";
33

44
/**
55
* @internal

src/react/hooks/useAnimation.ssr.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { it, describe, expect } from "vitest";
55
import { useEffect } from "react";
66
import { renderToString, renderToStaticMarkup } from "react-dom/server";
7-
import { useAnimation } from "./useAnimation";
7+
import { useAnimation } from "./useAnimation.js";
88

99
describe("SSR", () => {
1010
const Comp = () => {

0 commit comments

Comments
 (0)