This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-08-03 17:46:49 +02:00
|
|
|
const { resolve } = require('path');
|
|
|
|
|
2017-08-24 19:27:52 +02:00
|
|
|
const env = process.env.NODE_ENV || 'development';
|
|
|
|
|
2017-05-03 02:04:16 +02:00
|
|
|
module.exports = {
|
2017-06-01 17:27:35 +02:00
|
|
|
test: /\.js$/,
|
2017-10-10 18:44:51 +02:00
|
|
|
exclude: /node_modules/,
|
2017-05-06 04:18:23 +02:00
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
2017-08-24 19:27:52 +02:00
|
|
|
cacheDirectory: env === 'development' ? false : resolve(__dirname, '..', '..', '..', 'tmp', 'cache', 'babel-loader'),
|
2017-05-20 17:31:47 +02:00
|
|
|
},
|
|
|
|
};
|