From 0de4f51420813f5a932176717f2a7fc502180a7e Mon Sep 17 00:00:00 2001 From: Nisharg Shah Date: Mon, 12 Jul 2021 23:23:25 +0530 Subject: [PATCH] Compatible with Next.js --- README.md | 3 ++- package.json | 4 ++-- tsconfig.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5b28eeb..58d3ca1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ React Component to highlight interactive zones in images 5. Selected area will stay highlighted ( Single & Multiple ) with toggle and reset feature 6. New Properties: Natural Dimensions, RerenderProps 7. Image Reference in Width, Height and onLoad function to access image properties -8. Responsive image mapper +8. Responsive Image Mapper +9. Compatible with Next.js ``` ## Installation diff --git a/package.json b/package.json index fcea412..8b20efe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-img-mapper", - "version": "1.1.10", + "version": "1.2.0", "description": "React Component to highlight interactive zones in images", "keywords": [ "react", @@ -21,9 +21,9 @@ }, "license": "MIT", "author": "Nisharg Shah", + "type": "commonjs", "main": "dist/ImageMapper.js", "types": "dist/ImageMapper.d.ts", - "type": "commonjs", "scripts": { "build": "tsc", "lint": "eslint . --ext .tsx", diff --git a/tsconfig.json b/tsconfig.json index 8b58aef..2b358cd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "es5", - "module": "commonjs", + "module": "CommonJS", "lib": [ "dom", "dom.iterable",