mirror of https://gitee.com/antv-l7/antv-l7
fix: error
This commit is contained in:
parent
3290d4713d
commit
740983f85a
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue