ungleich-staticcms/assets/u/static/popper.js-1.16.0/packages/babel-config/index.js

26 lines
519 B
JavaScript
Raw Normal View History

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],
},
};