use webpack for all builds
This commit is contained in:
54
babel.config.js
Normal file
54
babel.config.js
Normal file
@ -0,0 +1,54 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@babel/preset-react',
|
||||
['@babel/preset-env', {
|
||||
modules: false,
|
||||
}],
|
||||
],
|
||||
plugins: [
|
||||
'lodash',
|
||||
['babel-plugin-transform-builtin-extend', {
|
||||
globals: ['Error']
|
||||
}],
|
||||
['module-resolver', {
|
||||
root: [
|
||||
'./src/components'
|
||||
],
|
||||
alias: {
|
||||
Actions: './src/actions/',
|
||||
Backends: './src/backends/',
|
||||
Constants: './src/constants/',
|
||||
Formats: './src/formats/',
|
||||
Integrations: './src/integrations/',
|
||||
Lib: './src/lib/',
|
||||
Reducers: './src/reducers/',
|
||||
Redux: './src/redux/',
|
||||
Routing: './src/routing/',
|
||||
ValueObjects: './src/valueObjects/',
|
||||
}
|
||||
}],
|
||||
'transform-export-extensions',
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-proposal-object-rest-spread',
|
||||
'@babel/plugin-proposal-export-default-from',
|
||||
['inline-svg', {
|
||||
svgo: {
|
||||
plugins: [
|
||||
{removeViewBox: false},
|
||||
],
|
||||
},
|
||||
}],
|
||||
],
|
||||
env: {
|
||||
production: {
|
||||
plugins: [
|
||||
['emotion', {hoist: true}],
|
||||
],
|
||||
},
|
||||
development: {
|
||||
plugins: [
|
||||
['emotion', {sourceMap: true, autoLabel: true}],
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user