diff --git a/scripts/build-copy.cjs b/scripts/build-copy.cjs index c980040e..fc95c8df 100644 --- a/scripts/build-copy.cjs +++ b/scripts/build-copy.cjs @@ -1,5 +1,5 @@ -const fs = require("fs"); -const path = require("path"); +const fs = require("node:fs"); +const path = require("node:path"); const pck = require("../package"); const rootDir = path.resolve(__dirname, "../"); const distDir = path.resolve(__dirname, "../dist"); diff --git a/src/__tests__/hooks.test.tsx b/src/__tests__/hooks.test.tsx index ddcc5607..6c3c5107 100644 --- a/src/__tests__/hooks.test.tsx +++ b/src/__tests__/hooks.test.tsx @@ -1,6 +1,6 @@ import { render, screen } from "@testing-library/react"; import React, { useCallback } from "react"; -import { IntersectionOptions, defaultFallbackInView } from "../index"; +import { type IntersectionOptions, defaultFallbackInView } from "../index"; import { intersectionMockInstance, mockAllIsIntersecting, diff --git a/src/index.tsx b/src/index.tsx index ae5d7807..f65e6cfc 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,6 +1,6 @@ "use client"; -import * as React from "react"; +import type * as React from "react"; export { InView } from "./InView"; export { useInView } from "./useInView"; export { observe, defaultFallbackInView } from "./observe";