Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
Upgrade to babel 7 (#579)
Browse files Browse the repository at this point in the history
* Upgrade to babel 7

* Disable module transform in webpack build

* Bump up versions of Babel deps

* Update Babel 7 configuration file

- Change config file to babel.config.js
- Add class-properties proposal
- Enable loose mode

* Disable module transform by default, is it better?

* Revert "Disable module transform by default, is it better?"

This reverts commit 31eb0f5.

* Fix mocha setup

* Disable loose mode, it breaks test

* Fix webpack config

* Update babel dependencies

* Fix devDeps with exact version notation

* Fix target settings of babel/env preset to match with webapp

* Set debug true if not production build

* Ignore eslint on babel config
  • Loading branch information
cometkim authored and crspeller committed Nov 6, 2018
1 parent 8bc1e6c commit 9c50b6b
Show file tree
Hide file tree
Showing 7 changed files with 3,388 additions and 1,938 deletions.
21 changes: 0 additions & 21 deletions .babelrc

This file was deleted.

26 changes: 26 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

module.exports = {
presets: [
['@babel/preset-env', {
targets: {
chrome: 66,
firefox: 60,
edge: 42,
ie: 11,
safari: 12,
},
debug: process.env.NODE_ENV !== 'production', // eslint-disable-line
useBuiltIns: 'usage',
shippedProposals: true,
}],
'@babel/preset-flow',
],
plugins: [
['module-resolver', {
root: ['./src', '.'],
}],
'@babel/proposal-class-properties',
],
};
Loading

0 comments on commit 9c50b6b

Please sign in to comment.