Browse Source
Update babel to v7 and make necessary adjustments to get things to function properly.renovate/lint-staged-8.x
Tom Kirkpatrick
6 years ago
13 changed files with 747 additions and 1233 deletions
@ -1,33 +0,0 @@ |
|||
{ |
|||
"presets": [ |
|||
["env", { |
|||
"targets": { |
|||
"node": 8, |
|||
"browsers": "electron 2.0" |
|||
}, |
|||
"useBuiltIns": true |
|||
}], |
|||
"stage-0", |
|||
"react" |
|||
], |
|||
"plugins": ["add-module-exports", "dynamic-import-webpack", ["react-intl-auto", { |
|||
"removePrefix": "app/", |
|||
"filebase": false |
|||
}]], |
|||
"env": { |
|||
"production": { |
|||
"presets": ["react-optimize"], |
|||
"plugins": ["babel-plugin-dev-expression"] |
|||
}, |
|||
"development": { |
|||
"plugins": [ |
|||
"transform-class-properties", |
|||
"transform-es2015-classes", |
|||
["flow-runtime", { |
|||
"assert": true, |
|||
"annotate": true |
|||
}] |
|||
] |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,35 @@ |
|||
module.exports = { |
|||
presets: [ |
|||
[ |
|||
'@babel/preset-env', |
|||
{ |
|||
targets: { |
|||
node: 8, |
|||
browsers: 'electron 2.0' |
|||
}, |
|||
useBuiltIns: 'usage' |
|||
} |
|||
], |
|||
'@babel/preset-flow', |
|||
'@babel/react' |
|||
], |
|||
plugins: [ |
|||
'@babel/plugin-proposal-object-rest-spread', |
|||
'@babel/plugin-proposal-class-properties', |
|||
'@babel/plugin-proposal-export-default-from', |
|||
'@babel/plugin-transform-classes', |
|||
'@babel/plugin-transform-destructuring', |
|||
[ |
|||
'react-intl-auto', |
|||
{ |
|||
removePrefix: 'app/', |
|||
filebase: false |
|||
} |
|||
] |
|||
], |
|||
env: { |
|||
production: { |
|||
presets: ['react-optimize'] |
|||
} |
|||
} |
|||
} |
@ -1,3 +1,3 @@ |
|||
require('babel-register') |
|||
require('@babel/register') |
|||
|
|||
module.exports = require('./webpack.config.renderer.dev') |
|||
|
File diff suppressed because it is too large
Loading…
Reference in new issue