From 5abc5279f515d51ba012ae8594869cde1b53c003 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 2 Jul 2019 18:39:21 +0100 Subject: [PATCH] Fixed spread operator support in older browsers --- babel.config.js | 6 ------ src/web/index.js | 2 +- webpack.config.js | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/babel.config.js b/babel.config.js index f2f9c502..cb37b2c7 100644 --- a/babel.config.js +++ b/babel.config.js @@ -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 diff --git a/src/web/index.js b/src/web/index.js index cbf7bccc..4f34e2c2 100755 --- a/src/web/index.js +++ b/src/web/index.js @@ -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"; diff --git a/webpack.config.js b/webpack.config.js index effc70ba..ae385b97 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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,