.babelrc 476 B

12345678910111213
  1. {
  2. // babelHelpers: 'bundled', // doesn't work, even though complies to documentation. Moved to rollup configuration instead in `tasks/scripts.js
  3. // see https://github.com/storybookjs/storybook/issues/1320#issuecomment-310777396
  4. presets: [
  5. '@babel/preset-react',
  6. '@babel/preset-env'
  7. ],
  8. exclude: [ 'node_modules/**', '**/*.json' ],
  9. plugins: [
  10. ['@babel/plugin-transform-react-jsx', { pragma: 'h' }],
  11. '@babel/plugin-proposal-object-rest-spread'
  12. ]
  13. }