Skip to content

Commit 0bbd064

Browse files
authored
Uprade microbundle (#74)
1 parent 3f378c5 commit 0bbd064

File tree

6 files changed

+2789
-1767
lines changed

6 files changed

+2789
-1767
lines changed

.changeset/khaki-hotels-fly.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+
Uprade microbundle, the tool used for publishing
File renamed without changes.

babel.config.js renamed to babel.config.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ module.exports = {
44
"@babel/preset-react",
55
"@babel/preset-typescript",
66
],
7-
plugins: [],
87
};

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@
44
"version": "1.0.9",
55
"author": "Daniel O'Connor <[email protected]>",
66
"license": "MIT",
7+
"type": "module",
78
"source": "./src/index.tsx",
8-
"main": "./dist/react-use-clipboard.js",
9+
"exports": {
10+
"require": "./dist/react-use-clipboard.cjs",
11+
"default": "./dist/react-use-clipboard.modern.js"
12+
},
13+
"main": "./dist/react-use-clipboard.cjs",
914
"module": "./dist/react-use-clipboard.module.js",
1015
"unpkg": "./dist/react-use-clipboard.umd.js",
11-
"types": "./dist/index.d.ts",
16+
"types": "./dist/react-use-clipboard.d.ts",
1217
"files": [
1318
"dist"
1419
],
@@ -25,14 +30,16 @@
2530
"copy-to-clipboard": "^3.3.1"
2631
},
2732
"devDependencies": {
28-
"@babel/preset-typescript": "^7.12.7",
33+
"@babel/preset-env": "^7.19.4",
34+
"@babel/preset-react": "^7.18.6",
35+
"@babel/preset-typescript": "^7.18.6",
2936
"@changesets/cli": "^2.25.0",
3037
"@testing-library/react": "^11.1.0",
3138
"@types/jest": "^26.0.15",
3239
"@types/react": "^16.9.55",
3340
"@types/react-dom": "^16.9.9",
3441
"jest": "^26.6.1",
35-
"microbundle": "0.12.4",
42+
"microbundle": "0.15.1",
3643
"prettier": "^2.7.1",
3744
"react": "^17.0.1",
3845
"react-dom": "^17.0.1",

0 commit comments

Comments
 (0)