NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/.babelrc.js
2023-09-14 14:47:11 +08:00

25 lines
369 B
JavaScript

module.exports = api => {
api.cache(() => process.env.NODE_ENV);
if (process.env.GATSBY === 'true') {
return {
presets: [
'@babel/preset-env',
'babel-preset-gatsby'
]
};
}
return {
presets: [
[
'@babel/preset-env',
{
loose: true,
modules: false
}
]
]
};
};