static-cms/babel.config.js
2018-07-25 21:17:57 -04:00

34 lines
662 B
JavaScript

module.exports = {
presets: [
'@babel/preset-react',
['@babel/preset-env', {
modules: false,
}],
],
plugins: [
'lodash',
['babel-plugin-transform-builtin-extend', {
globals: ['Error']
}],
'transform-export-extensions',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-export-default-from',
],
env: {
production: {
plugins: [
['emotion', { hoist: true }],
],
},
development: {
plugins: [
['emotion', {
sourceMap: true,
autoLabel: true,
}],
],
},
},
};