package/rules/babel.js in webpacker-3.2.2 vs package/rules/babel.js in webpacker-3.3.0

- old
+ new

@@ -1,13 +1,15 @@ const { join } = require('path') -const { cache_path } = require('../config') +const { cache_path: cachePath } = require('../config') module.exports = { test: /\.(js|jsx)?(\.erb)?$/, exclude: /node_modules/, - use: [{ - loader: 'babel-loader', - options: { - cacheDirectory: join(cache_path, 'babel-loader') + use: [ + { + loader: 'babel-loader', + options: { + cacheDirectory: join(cachePath, 'babel-loader') + } } - }] + ] }