uptime-kuma/babel.config.js

12 lines
206 B
JavaScript
Raw Normal View History

2021-10-08 02:11:50 -05:00
const config = {};
if (process.env.TEST_FRONTEND) {
config.presets = ["@babel/preset-env"];
}
2021-10-12 13:53:59 -05:00
if (process.env.TEST_BACKEND) {
config.plugins = ["babel-plugin-rewire"];
}
2021-10-08 02:11:50 -05:00
module.exports = config;