logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

babel.js (341B)


  1. const { resolve } = require('path');
  2. const env = process.env.NODE_ENV || 'development';
  3. module.exports = {
  4. test: /\.js$/,
  5. exclude: /node_modules/,
  6. loader: 'babel-loader',
  7. options: {
  8. forceEnv: env,
  9. cacheDirectory: env === 'development' ? false : resolve(__dirname, '..', '..', '..', 'tmp', 'cache', 'babel-loader'),
  10. },
  11. };