Skip to content

Commit b7baf11

Browse files
author
Kent C. Dodds
committed
feat(esm): add bundled export for esm
1 parent aa0aab7 commit b7baf11

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

.size-snapshot.json

+27-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
11
{
2+
"dist/dom-testing-library.cjs.js": {
3+
"bundled": 137666,
4+
"minified": 59811,
5+
"gzipped": 16554
6+
},
7+
"dist/dom-testing-library.umd.min.js": {
8+
"bundled": 146462,
9+
"minified": 53705,
10+
"gzipped": 15876
11+
},
212
"dist/dom-testing-library.umd.js": {
3-
"bundled": 146393,
4-
"minified": 53662,
5-
"gzipped": 15855
13+
"bundled": 146462,
14+
"minified": 53705,
15+
"gzipped": 15876
16+
},
17+
"dist/dom-testing-library.esm.js": {
18+
"bundled": 136297,
19+
"minified": 58558,
20+
"gzipped": 16321,
21+
"treeshaked": {
22+
"rollup": {
23+
"code": 41502,
24+
"import_statements": 0
25+
},
26+
"webpack": {
27+
"code": 44070
28+
}
29+
}
630
}
731
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.0-semantically-released",
44
"description": "Simple and complete DOM testing utilities that encourage good testing practices.",
55
"main": "dist/index.js",
6+
"module": "dist/dom-testing-library.esm.js",
67
"umd:main": "dist/dom-testing-library.umd.js",
78
"source": "src/index.js",
89
"typings": "typings",
@@ -24,7 +25,7 @@
2425
},
2526
"scripts": {
2627
"add-contributor": "kcd-scripts contributors add",
27-
"build": "kcd-scripts build && kcd-scripts build --bundle umd --no-clean",
28+
"build": "kcd-scripts build && kcd-scripts build --bundle --no-clean",
2829
"lint": "kcd-scripts lint",
2930
"test": "kcd-scripts test",
3031
"test:update": "npm test -- --updateSnapshot --coverage",

0 commit comments

Comments
 (0)