phpvms/public/vendor/popper.js/packages/babel-config/index.js
2017-08-15 18:07:14 -05:00

26 lines
519 B
JavaScript

const env = require.resolve('babel-preset-env');
const stage2 = require.resolve('babel-preset-stage-2');
const externalHelpers = require.resolve('babel-plugin-external-helpers');
module.exports = {
es5: {
presets: [
[
env,
{
targets: {
browsers: ['last 2 versions', 'ie >= 10'],
},
modules: false,
},
],
stage2,
],
plugins: [externalHelpers],
},
es6: {
presets: [stage2],
plugins: [externalHelpers],
},
};