mirror of https://gitee.com/antv-l7/antv-l7
fix: site 启动
This commit is contained in:
parent
e0fb9d8ac8
commit
3290d4713d
|
@ -6,13 +6,21 @@ module.exports = api => {
|
||||||
const isCommonJS = api.env('cjs');
|
const isCommonJS = api.env('cjs');
|
||||||
const isESModule = api.env('esm');
|
const isESModule = api.env('esm');
|
||||||
const isTest = api.env('test');
|
const isTest = api.env('test');
|
||||||
|
|
||||||
if (isSite) {
|
if (isSite) {
|
||||||
|
console.log('-------------->')
|
||||||
return {
|
return {
|
||||||
presets: [
|
presets: [
|
||||||
'babel-preset-gatsby', {
|
'@babel/preset-env',
|
||||||
silence: true
|
// 'babel-preset-gatsby', {
|
||||||
}
|
// silence: true
|
||||||
|
// },
|
||||||
|
[
|
||||||
|
'@babel/preset-react',
|
||||||
|
{
|
||||||
|
development: isCommonJS
|
||||||
|
}
|
||||||
|
]
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
'@babel/plugin-proposal-optional-chaining',
|
'@babel/plugin-proposal-optional-chaining',
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
|
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
|
||||||
"babel-plugin-transform-node-env-inline": "^0.4.3",
|
"babel-plugin-transform-node-env-inline": "^0.4.3",
|
||||||
"babel-plugin-transform-postcss": "^0.3.0",
|
"babel-plugin-transform-postcss": "^0.3.0",
|
||||||
"babel-preset-gatsby": "^0.5.8",
|
"babel-preset-gatsby": "^1.12.0",
|
||||||
"babel-template": "^6.26.0",
|
"babel-template": "^6.26.0",
|
||||||
"clean-webpack-plugin": "^3.0.0",
|
"clean-webpack-plugin": "^3.0.0",
|
||||||
"commitizen": "^4.0.3",
|
"commitizen": "^4.0.3",
|
||||||
|
|
Loading…
Reference in New Issue