Skip to content

Commit 738364d

Browse files
committed
chore: enhance build configuration
Use a symlink from babel.config.json to .babelrc.json because bob requires .babelrc.x while jest requires babel.config.x. Moreover, use the same presets that bob uses to have an easier to read output.
1 parent 75cf1e5 commit 738364d

File tree

6 files changed

+1194
-1143
lines changed

6 files changed

+1194
-1143
lines changed

.babelrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.babelrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"presets": ["@babel/typescript", "@babel/env", "@babel/react", "@babel/flow"],
3+
"plugins": [
4+
[
5+
"babel-plugin-inline-import",
6+
{
7+
"extensions": ["webjs"]
8+
}
9+
],
10+
"@babel/plugin-proposal-class-properties"
11+
]
12+
}

babel.config.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

babel.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.babelrc.json

0 commit comments

Comments
 (0)