Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = {
  2.     compact: true,
  3.     presets: [
  4.         [
  5.             '@babel/preset-env',
  6.             {
  7.                 useBuiltIns: 'entry',
  8.                 corejs: '3',
  9.                 targets: '> 0.25%, not dead',
  10.             },
  11.         ],
  12.         '@babel/preset-typescript',
  13.     ],
  14.     plugins: [
  15.         '@babel/proposal-object-rest-spread',
  16.         '@babel/proposal-class-properties',
  17.         '@babel/proposal-optional-chaining',
  18.         '@babel/syntax-dynamic-import',
  19.         'macros',
  20.     ],
  21.     env: {
  22.         test: {
  23.             plugins: [
  24.                 '@babel/transform-modules-commonjs',
  25.                 '@babel/syntax-dynamic-import',
  26.                 '@babel/plugin-transform-runtime',
  27.                 {
  28.                     regenerator: true,
  29.                 },
  30.             ],
  31.         },
  32.     },
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement