Fixed spread operator support in older browsers

This commit is contained in:
n1474335 2019-07-02 18:39:21 +01:00
parent d148cae814
commit 5abc5279f5
3 changed files with 2 additions and 8 deletions

View file

@ -4,12 +4,6 @@ module.exports = function(api) {
return {
"presets": [
["@babel/preset-env", {
"targets": {
"chrome": 40,
"firefox": 35,
"edge": 14,
"node": "6.5"
},
"modules": false,
"useBuiltIns": "entry",
"corejs": 3

View file

@ -10,7 +10,7 @@ import "./stylesheets/index.js";
// Libs
import "arrive";
import "snackbarjs";
import "bootstrap-material-design";
import "bootstrap-material-design/js/index";
import "bootstrap-colorpicker";
import moment from "moment-timezone";
import * as CanvasComponents from "../core/lib/CanvasComponents";

View file

@ -60,7 +60,7 @@ module.exports = {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules\/(?!jsesc|crypto-api)/,
exclude: /node_modules\/(?!jsesc|crypto-api|bootstrap)/,
options: {
configFile: path.resolve(__dirname, "babel.config.js"),
cacheDirectory: true,