From 8071b34ddb9cca74818ad6a9c040f86a7bd75c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 12 Feb 2019 10:15:01 +0100 Subject: [PATCH] Fix issues with duplicate polyfill added with 16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- appinfo/info.xml | 2 +- js/.babelrc.js | 12 ++++++++++++ js/webpack.config.js | 4 +--- 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 js/.babelrc.js diff --git a/appinfo/info.xml b/appinfo/info.xml index aaba56664..a3524ad55 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -36,7 +36,7 @@ pgsql sqlite mysql - + OCA\Deck\Cron\DeleteCron diff --git a/js/.babelrc.js b/js/.babelrc.js new file mode 100644 index 000000000..21cf7022f --- /dev/null +++ b/js/.babelrc.js @@ -0,0 +1,12 @@ +module.exports = { + presets: [ + [ + '@babel/preset-env', + { + targets: { + browsers: ['last 2 versions', 'ie >= 11'] + } + } + ] + ] +} diff --git a/js/webpack.config.js b/js/webpack.config.js index 54cfbed79..8961df4ec 100644 --- a/js/webpack.config.js +++ b/js/webpack.config.js @@ -2,14 +2,12 @@ const path = require('path'); const webpack = require('webpack'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); -require('babel-polyfill'); - module.exports = { node: { fs: 'empty', }, entry: { - deck: ['babel-polyfill', './init.js'], + deck: ['./init.js'], }, output: { filename: '[name].js',