default-options.js 530 B

1234567891011121314151617181920212223
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. 'use strict';
  8. const assign = require('object-assign');
  9. module.exports = function(options) {
  10. return {
  11. presets: [
  12. require('babel-preset-fbjs/configure')({
  13. rewriteModules: assign({
  14. map: require('../third-party-module-map'),
  15. }, options.moduleOpts),
  16. }),
  17. ],
  18. plugins: options.plugins || [],
  19. };
  20. };