0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-28 02:17:11 +01:00
uptime-kuma/babel.config.js

12 lines
210 B
JavaScript
Raw Normal View History

2021-10-08 09:11:50 +02:00
const config = {};
if (process.env.TEST_FRONTEND) {
2022-04-17 09:27:35 +02:00
config.presets = [ "@babel/preset-env" ];
2021-10-08 09:11:50 +02:00
}
2021-10-12 20:53:59 +02:00
if (process.env.TEST_BACKEND) {
2022-04-17 09:27:35 +02:00
config.plugins = [ "babel-plugin-rewire" ];
2021-10-12 20:53:59 +02:00
}
2021-10-08 09:11:50 +02:00
module.exports = config;