1
0
mirror of synced 2024-11-12 01:10:51 +01:00

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 { return {
"presets": [ "presets": [
["@babel/preset-env", { ["@babel/preset-env", {
"targets": {
"chrome": 40,
"firefox": 35,
"edge": 14,
"node": "6.5"
},
"modules": false, "modules": false,
"useBuiltIns": "entry", "useBuiltIns": "entry",
"corejs": 3 "corejs": 3

View File

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

View File

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