virt2/assets/vendor_components/popper/packages/babel-config/index.js

26 lines
519 B
JavaScript
Executable File

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