Skip to content

Commit e719b19

Browse files
committed
fix(package): use rollup to build library
1 parent 0f9db6a commit e719b19

File tree

4 files changed

+595
-23
lines changed

4 files changed

+595
-23
lines changed

.babelrc

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
{
2-
"presets": [
3-
"@babel/preset-env"
4-
],
2+
"env": {
3+
"test": {
4+
"presets": [
5+
[
6+
"@babel/preset-env",
7+
{ "modules": "umd" }
8+
]
9+
]
10+
},
11+
"production": {
12+
"presets": [
13+
[
14+
"@babel/preset-env",
15+
{ "modules": false }
16+
]
17+
]
18+
}
19+
},
520
"ignore": [
6-
"node_modules"
7-
],
8-
"plugins": [
9-
"add-module-exports"
21+
"node_modules/**"
1022
]
1123
}

0 commit comments

Comments
 (0)