aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json8
-rw-r--r--rollup.config.js4
2 files changed, 7 insertions, 5 deletions
diff --git a/package.json b/package.json
index df9ce7ea..68c9a7e2 100644
--- a/package.json
+++ b/package.json
@@ -6,8 +6,10 @@
"url": "git+https://github.com/tabler/tabler-icons.git"
},
"main": "./icons-react/dist/index.cjs.js",
+ "exports": "./icons-react/dist/index.esm.js",
"module": "./icons-react/dist/index.esm.js",
- "browser": "./icons-react/dist/index.umd.js",
+ "unpkg": "./icons-react/dist/index.umd.js",
+ "umd:main": "./icons-react/dist/index.umd.js",
"types": "./icons-react/index.d.ts",
"sideEffects": false,
"author": "codecalm",
@@ -99,7 +101,7 @@
}
},
"peerDependencies": {
- "react": "^16.13.1",
- "react-dom": "^16.13.1"
+ "react": "^16.x || 17.x",
+ "react-dom": "^16.x || 17.x"
}
}
diff --git a/rollup.config.js b/rollup.config.js
index bfcf4f3e..2b1b9845 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -68,7 +68,7 @@ export default [
{
input,
output: {
- file: pkg.browser,
+ file: pkg['umd:main'],
format: "umd",
sourcemap: true,
name: "tablerIcons",
@@ -83,7 +83,7 @@ export default [
{
input,
output: {
- file: minifyExtension(pkg.browser),
+ file: minifyExtension(pkg['umd:main']),
format: "umd",
sourcemap: true,
name: "tablerIcons",