ungleich-staticcms/assets/u/static/popper.js-1.16.0/packages/babel-config/index.js
Nico Schottelius 16fb2bb919 import popper.js
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2019-12-31 01:21:21 +01:00

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