1b3d0eac8f
* Initial setup and migrated src/common * WIP * WIP * WIP * Main module basically finished * Renderer process migrated * Added CI step and some fixes * Fixed remainder of issues and added proper ESLint config * Fixed a couple issues * Progress! * Some more fixes * Fixed a test * Fix build step * PR feedback
24 lines
742 B
JavaScript
24 lines
742 B
JavaScript
// Copyright (c) 2015-2016 Yuya Ochiai
|
|
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
module.exports = (api) => { // eslint-disable-line import/no-commonjs
|
|
api.cache.forever();
|
|
return {
|
|
presets: [
|
|
['@babel/preset-env', {
|
|
targets: {
|
|
browsers: ['Electron >= 2.0'],
|
|
node: '8.9',
|
|
},
|
|
}],
|
|
'@babel/preset-react',
|
|
['@babel/typescript', {
|
|
allExtensions: true,
|
|
isTSX: true,
|
|
}],
|
|
],
|
|
plugins: ['@babel/plugin-proposal-object-rest-spread', '@babel/plugin-proposal-class-properties'],
|
|
};
|
|
};
|