support webpack treeshaking

This commit is contained in:
Barnabas Jovanovics 2021-06-29 15:41:41 +02:00
parent e76acc7517
commit 79d5322a96
3 changed files with 5 additions and 3 deletions

View file

@ -9,7 +9,7 @@
"dist"
],
"scripts": {
"dist": "tsup"
"dist": "tsup && tsc"
},
"repository": {
"type": "git",
@ -24,6 +24,7 @@
"bugs": {
"url": "https://github.com/lucaburgio/iconoir/issues"
},
"sideEffects": false,
"homepage": "https://github.com/lucaburgio/iconoir#readme",
"peerDependencies": {
"react": "^16.8.6 || ^17"

View file

@ -8,6 +8,7 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"outDir": "./dist/esm"
}
}

View file

@ -1,6 +1,6 @@
{
"entryPoints": ["src/index.tsx"],
"format": ["cjs", "esm"],
"format": ["cjs"],
"legacyOutput": true,
"sourcemap": true,
"minify": true,