github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/.storybook/babel.config.js (about) 1 /* eslint-env node */ 2 module.exports = { 3 presets: [ 4 [ 5 '@babel/preset-env', 6 { 7 shippedProposals: true, 8 useBuiltIns: 'usage', 9 corejs: '3', 10 targets: ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions'], 11 }, 12 ], 13 ], 14 plugins: [ 15 [ 16 '@babel/plugin-proposal-decorators', 17 { 18 legacy: true, 19 }, 20 ], 21 ['@babel/plugin-proposal-class-properties', { loose: true }], 22 '@babel/plugin-syntax-dynamic-import', 23 ['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }], 24 'babel-plugin-macros', 25 ['emotion', { sourceMap: true, autoLabel: true }], 26 ], 27 };