static-cms/babel.config.js

34 lines
662 B
JavaScript
Raw Normal View History

2018-07-17 19:13:52 -04:00
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: [
2018-07-23 12:30:15 -04:00
['emotion', { hoist: true }],
2018-07-17 19:13:52 -04:00
],
},
development: {
plugins: [
2018-07-23 12:30:15 -04:00
['emotion', {
sourceMap: true,
autoLabel: true,
}],
2018-07-17 19:13:52 -04:00
],
},
},
};