about summary refs log tree commit diff
path: root/config/webpack/loaders
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-08-04 00:46:49 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-03 17:46:49 +0200
commitfae71b653a7481a5f06d071e74d4a9e4b7f9952a (patch)
treecf17f1c1101500b9fbbc2fb5e23b9992f7dfbc8a /config/webpack/loaders
parentdfcd2834f9589bda573eb133057588f351f570b5 (diff)
Enable cache for babel-loader (#4505)
Diffstat (limited to 'config/webpack/loaders')
-rw-r--r--config/webpack/loaders/babel.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/webpack/loaders/babel.js b/config/webpack/loaders/babel.js
index a1992a450..3177d964a 100644
--- a/config/webpack/loaders/babel.js
+++ b/config/webpack/loaders/babel.js
@@ -1,3 +1,5 @@
+const { resolve } = require('path');
+
 module.exports = {
   test: /\.js$/,
   // include react-intl because transform-react-remove-prop-types needs to apply to it
@@ -8,5 +10,6 @@ module.exports = {
   loader: 'babel-loader',
   options: {
     forceEnv: process.env.NODE_ENV || 'development',
+    cacheDirectory: resolve(__dirname, '..', '..', '..', 'tmp', 'cache', 'babel-loader'),
   },
 };