Skip to content

Commit

Permalink
Merge pull request #60 from barnabasJ/feature/tree-shaking-support
Browse files Browse the repository at this point in the history
support webpack treeshaking
  • Loading branch information
lucaburgio committed Jul 3, 2021
2 parents d71e76e + f7c58c9 commit 4933711
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/iconoir-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dist"
],
"scripts": {
"dist": "tsup"
"dist": "tsup && tsc"
},
"repository": {
"type": "git",
Expand All @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/iconoir-react-native/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"outDir": "./dist/esm"
}
}
2 changes: 1 addition & 1 deletion packages/iconoir-react-native/tsup.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"entryPoints": ["src/index.tsx"],
"format": ["cjs", "esm"],
"format": ["cjs"],
"legacyOutput": true,
"sourcemap": true,
"minify": true,
Expand Down
3 changes: 2 additions & 1 deletion packages/iconoir-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dist"
],
"scripts": {
"dist": "tsup"
"dist": "tsup && tsc"
},
"repository": {
"type": "git",
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion packages/iconoir-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"outDir": "./dist/esm"
}
}
2 changes: 1 addition & 1 deletion packages/iconoir-react/tsup.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"entryPoints": ["src/index.tsx"],
"format": ["cjs", "esm"],
"format": ["cjs"],
"legacyOutput": true,
"sourcemap": true,
"minify": true,
Expand Down

0 comments on commit 4933711

Please sign in to comment.