mirror of https://gitee.com/antv-l7/antv-l7
chore: revert some unneccessary changes
This commit is contained in:
parent
b9f273a469
commit
5782c02405
|
@ -1,7 +1,7 @@
|
||||||
// @see https://babeljs.io/docs/en/next/config-files#project-wide-configuration
|
// @see https://babeljs.io/docs/en/next/config-files#project-wide-configuration
|
||||||
module.exports = (api) => {
|
module.exports = (api) => {
|
||||||
const env = api.cache(() => process.env.NODE_ENV);
|
api.cache(() => process.env.NODE_ENV);
|
||||||
if(env === 'site') {
|
if(api.env('site')) {
|
||||||
return {
|
return {
|
||||||
"presets": [
|
"presets": [
|
||||||
"babel-preset-gatsby"
|
"babel-preset-gatsby"
|
||||||
|
@ -38,7 +38,12 @@ module.exports = (api) => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'@babel/preset-react',
|
[
|
||||||
|
'@babel/preset-react',
|
||||||
|
{
|
||||||
|
development: process.env.BABEL_ENV !== 'build',
|
||||||
|
},
|
||||||
|
],
|
||||||
'@babel/preset-typescript',
|
'@babel/preset-typescript',
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
Loading…
Reference in New Issue