Fix issues with duplicate polyfill added with 16

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2019-02-12 10:15:01 +01:00
parent 056bf1ccab
commit 8071b34ddb
3 changed files with 14 additions and 4 deletions

View File

@@ -36,7 +36,7 @@
<database min-version="9.4">pgsql</database> <database min-version="9.4">pgsql</database>
<database>sqlite</database> <database>sqlite</database>
<database min-version="5.5">mysql</database> <database min-version="5.5">mysql</database>
<nextcloud min-version="13" max-version="15" /> <nextcloud min-version="13" max-version="16" />
</dependencies> </dependencies>
<background-jobs> <background-jobs>
<job>OCA\Deck\Cron\DeleteCron</job> <job>OCA\Deck\Cron\DeleteCron</job>

12
js/.babelrc.js Normal file
View File

@@ -0,0 +1,12 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
browsers: ['last 2 versions', 'ie >= 11']
}
}
]
]
}

View File

@@ -2,14 +2,12 @@ const path = require('path');
const webpack = require('webpack'); const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin');
require('babel-polyfill');
module.exports = { module.exports = {
node: { node: {
fs: 'empty', fs: 'empty',
}, },
entry: { entry: {
deck: ['babel-polyfill', './init.js'], deck: ['./init.js'],
}, },
output: { output: {
filename: '[name].js', filename: '[name].js',