Skip to content

Commit 670e76c

Browse files
authored
Upgrade microbundle, remove babel packages (#26)
1 parent a76b586 commit 670e76c

File tree

3 files changed

+680
-1882
lines changed

3 files changed

+680
-1882
lines changed

.changeset/spotty-beers-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-use-clipboard": patch
3+
---
4+
5+
Upgrade microbundle, remove unecessary babel packages, and ship a modern version of the dist code with `exports` in package.json

package.json

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
"version": "1.0.4",
55
"author": "Daniel O'Connor <[email protected]>",
66
"license": "MIT",
7-
"main": "dist/react-use-clipboard.js",
8-
"umd:main": "dist/react-use-clipboard.umd.js",
9-
"module": "dist/react-use-clipboard.m.js",
10-
"types": "dist/index.d.ts",
11-
"source": "src/index.tsx",
7+
"source": "./src/index.tsx",
8+
"main": "./dist/react-use-clipboard.js",
9+
"exports": "./dist/react-use-clipboard.modern.js",
10+
"module": "./dist/react-use-clipboard.module.js",
11+
"unpkg": "./dist/react-use-clipboard.umd.js",
12+
"types": "./dist/react-use-clipboard.d.ts",
1213
"files": [
1314
"dist"
1415
],
@@ -24,20 +25,14 @@
2425
"copy-to-clipboard": "^3.3.1"
2526
},
2627
"devDependencies": {
27-
"@babel/core": "^7.12.3",
28-
"@babel/preset-env": "^7.12.1",
29-
"@babel/preset-react": "^7.12.1",
30-
"@babel/preset-typescript": "^7.12.1",
28+
"@babel/preset-typescript": "^7.12.7",
3129
"@changesets/cli": "^2.12.0",
3230
"@testing-library/react": "^11.1.0",
3331
"@types/jest": "^26.0.15",
3432
"@types/react": "^16.9.55",
3533
"@types/react-dom": "^16.9.9",
36-
"babel-core": "^7.0.0-bridge.0",
37-
"babel-jest": "^26.6.1",
38-
"babel-loader": "^8.1.0",
3934
"jest": "^26.6.1",
40-
"microbundle": "0.11.0",
35+
"microbundle": "0.12.4",
4136
"prettier": "^2.2.1",
4237
"react": "^17.0.1",
4338
"react-dom": "^17.0.1",

0 commit comments

Comments
 (0)