Skip to content

Commit 66f902f

Browse files
chore(tinybench-plugin): make tinybench-plugin an es module
1 parent 4c4e380 commit 66f902f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/tinybench-plugin/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88
"tinybench",
99
"performance"
1010
],
11-
"main": "dist/index.cjs.js",
11+
"main": "dist/index.cjs",
1212
"module": "dist/index.es5.js",
1313
"types": "dist/index.d.ts",
14+
"type": "module",
15+
"exports": {
16+
"import": "./dist/index.es5.js",
17+
"require": "./dist/index.cjs",
18+
"types": "./dist/index.d.ts"
19+
},
1420
"files": [
1521
"dist"
1622
],

0 commit comments

Comments
 (0)