From a0f70b303812906446736e771f8285aae1533b92 Mon Sep 17 00:00:00 2001 From: Bob Fanger Date: Thu, 9 Jun 2022 23:53:23 +0200 Subject: [PATCH] fix: Primary export + peerDeps --- package.json | 8 +++++--- src/lib/index.ts | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e916ab8..7d9a3ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svelte-preprocess-react", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "type": "module", "scripts": { @@ -59,8 +59,6 @@ "postcss": "^8.4.14", "prettier": "^2.6.2", "prettier-plugin-svelte": "^2.7.0", - "react": "^18.1.0", - "react-dom": "^18.1.0", "sass": "^1.52.2", "svelte": "^3.48.0", "svelte-check": "^2.7.2", @@ -73,5 +71,9 @@ }, "dependencies": { "magic-string": "^0.26.2" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" } } diff --git a/src/lib/index.ts b/src/lib/index.ts index 3cb2f1f..9776261 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,3 +1,3 @@ -import type preprocessReact from "./svelte-preprocess-react"; +import preprocessReact from "./svelte-preprocess-react"; export default preprocessReact;