From c5b52b8adf5174eb4eed552ec96c59c0e45fbc85 Mon Sep 17 00:00:00 2001 From: dlguswo333 Date: Tue, 25 Jul 2023 22:12:31 +0900 Subject: [PATCH] Fix absolute path in declaration file bug This bug is related to rollup-plugin-typescript2 plugin. https://github.com/ezolenko/rollup-plugin-typescript2/issues/201 --- package/src/index.ts | 2 +- package/tsconfig.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package/src/index.ts b/package/src/index.ts index 8a17f68..429f44b 100644 --- a/package/src/index.ts +++ b/package/src/index.ts @@ -1,3 +1,3 @@ -import InfiniteScroll from '@/InfiniteScroll'; +import InfiniteScroll from './InfiniteScroll'; export default InfiniteScroll; diff --git a/package/tsconfig.json b/package/tsconfig.json index 80b1aef..33279a0 100644 --- a/package/tsconfig.json +++ b/package/tsconfig.json @@ -10,9 +10,6 @@ "strict": true, "jsx": "react-jsx", "noImplicitAny": true, - "paths": { - "@/*": ["./src/*"], - }, "declaration": true, }, "include": ["src/**/*"],