/**
 * Common config options for the babel compiler
 */

module.exports = {
    whitelist: whitelist = [
        'es6.arrowFunctions',
        'es6.blockScoping',
        'es6.classes',
        'es6.destructuring',
        'es6.parameters',
        'es6.properties.shorthand',
        'es6.templateLiterals',
        'es6.spread',
        'es7.objectRestSpread',
        'react',
        'react.displayName',
    ],
    blacklist: [],
    plugins: ['i18n-babel-plugin']
};

/**
 * Common config options for the babel compiler
 */

module.exports = {
    whitelist: whitelist = [
        'es6.arrowFunctions',
        'es6.blockScoping',
        'es6.classes',
        'es6.destructuring',
        'es6.parameters',
        'es6.properties.shorthand',
        'es6.templateLiterals',
        'es6.spread',
        'es6.constants',
        'es7.objectRestSpread',
        'react',
        'react.displayName',
    ],
    blacklist: [],
    plugins: ['i18n-babel-plugin']
};

Allow Perseus to load in IE9.
Allow Perseus to load in IE9.

Summary:
Support ticket: https://app.asana.com/0/27216215224639/49500138320617/f

Perseus was not loading at all in IE9 because it was choking on our
use of the `const` keyword. The solution is to enable Babel's support
for constants.

Test Plan:
1) Go to /math/trigonometry/less-basic-trigonometry/law-sines-cosines/e/non-right-triangle-proofs
   on IE9
2) See that the exercise loads and can be worked through normally.

Reviewers: alex, kevindangoor, kevinb

Reviewed By: kevinb

Subscribers: lauren

Differential Revision: https://phabricator.khanacademy.org/D21620
