fix: error

This commit is contained in:
象数 2021-08-23 19:04:29 +08:00
parent 3290d4713d
commit 740983f85a
1 changed files with 0 additions and 7 deletions

View File

@ -8,19 +8,12 @@ module.exports = api => {
const isTest = api.env('test');
if (isSite) {
console.log('-------------->')
return {
presets: [
'@babel/preset-env',
// 'babel-preset-gatsby', {
// silence: true
// },
[
'@babel/preset-react',
{
development: isCommonJS
}
]
],
plugins: [
'@babel/plugin-proposal-optional-chaining',