Skip to content

Commit e36b06b

Browse files
committedDec 17, 2021
fix(website): fix React runtime issue with Gatsby
1 parent 222de05 commit e36b06b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
 

‎conf/rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const babelConfig = {
2222

2323
const externals = [
2424
'prop-types',
25+
'joi',
2526
]
2627

2728
const mapGlobal = name => {

‎website/babel.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', { loose: true }],
4+
['@babel/preset-react', {
5+
development: process.env.BABEL_ENV === "development",
6+
runtime: 'automatic'
7+
}],
8+
'@babel/preset-typescript',
9+
],
10+
}

0 commit comments

Comments
 (0)
Please sign in to comment.