From 97ae6a2e93f857f1be012546943df18bce980761 Mon Sep 17 00:00:00 2001 From: Roderick Hsiao Date: Wed, 30 Mar 2022 13:37:52 -0700 Subject: [PATCH] Library should publish commonjs (#106) --- package.json | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2e55e0c..834e8c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-in-viewport", - "version": "1.0.0-alpha.25", + "version": "1.0.0-alpha.26", "description": "Track React component in viewport using Intersection Observer API", "author": "Roderick Hsiao ", "license": "MIT", diff --git a/tsconfig.json b/tsconfig.json index ecd74b5..27bc70b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "esModuleInterop": true, "isolatedModules": true, "jsx": "react-jsx", - "module": "ESNext", + "module": "commonjs", "moduleResolution": "node", "noEmit": false, "outDir": "dist/types",