pleroma/webpack/rules/babel-git.js

17 lines
387 B
JavaScript
Raw Normal View History

2021-03-30 13:24:02 -07:00
const { resolve } = require('path');
const { env } = require('../configuration');
module.exports = {
test: resolve(__dirname, '../../app/soapbox/utils/code.js'),
use: [
{
loader: 'babel-loader',
options: {
cacheDirectory: false,
cacheCompression: env.NODE_ENV === 'production',
compact: env.NODE_ENV === 'production',
},
},
],
};