babel.dev.js 937 Bytes
Newer Older
1
// @remove-on-eject-begin
2
3
4
5
6
7
8
9
/**
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */
10
// @remove-on-eject-end
11

12
var findCacheDir = require('find-cache-dir');
13

14
module.exports = {
15
  // Don't try to find .babelrc because we want to force this configuration.
Dan Abramov's avatar
Dan Abramov committed
16
  babelrc: false,
17
  // This is a feature of `babel-loader` for webpack (not Babel itself).
18
  // It enables caching results in ./node_modules/.cache/react-scripts/
19
20
21
22
23
  // directory for faster rebuilds. We use findCacheDir() because of:
  // https://github.com/facebookincubator/create-react-app/issues/483
  cacheDirectory: findCacheDir({
    name: 'react-scripts'
  }),
24
  presets: [
25
    require.resolve('babel-preset-react-app')
Dan Abramov's avatar
Dan Abramov committed
26
  ]
27
};