Jelajahi Sumber

Fixed spread operator support in older browsers

n1474335 6 tahun lalu
induk
melakukan
5abc5279f5
3 mengubah file dengan 2 tambahan dan 8 penghapusan
  1. 0 6
      babel.config.js
  2. 1 1
      src/web/index.js
  3. 1 1
      webpack.config.js

+ 0 - 6
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

+ 1 - 1
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";

+ 1 - 1
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,