Skip to content

Commit 0de4f51

Browse files
committed
Compatible with Next.js
1 parent acd2d1b commit 0de4f51

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ React Component to highlight interactive zones in images
1212
5. Selected area will stay highlighted ( Single & Multiple ) with toggle and reset feature
1313
6. New Properties: Natural Dimensions, RerenderProps
1414
7. Image Reference in Width, Height and onLoad function to access image properties
15-
8. Responsive image mapper
15+
8. Responsive Image Mapper
16+
9. Compatible with Next.js
1617
```
1718

1819
## Installation

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-img-mapper",
3-
"version": "1.1.10",
3+
"version": "1.2.0",
44
"description": "React Component to highlight interactive zones in images",
55
"keywords": [
66
"react",
@@ -21,9 +21,9 @@
2121
},
2222
"license": "MIT",
2323
"author": "Nisharg Shah",
24+
"type": "commonjs",
2425
"main": "dist/ImageMapper.js",
2526
"types": "dist/ImageMapper.d.ts",
26-
"type": "commonjs",
2727
"scripts": {
2828
"build": "tsc",
2929
"lint": "eslint . --ext .tsx",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"module": "commonjs",
4+
"module": "CommonJS",
55
"lib": [
66
"dom",
77
"dom.iterable",

0 commit comments

Comments
 (0)