From dc974419ba40f3e8b934ed81e966d598eb39a834 Mon Sep 17 00:00:00 2001 From: Sean Date: Thu, 21 Nov 2019 16:48:19 -0500 Subject: [PATCH] actually fix lbry.tv on edge --- lbrytv/package.json | 1 + lbrytv/webpack.config.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lbrytv/package.json b/lbrytv/package.json index d07e57206..20af7da15 100644 --- a/lbrytv/package.json +++ b/lbrytv/package.json @@ -38,6 +38,7 @@ "@babel/core": "^7.0.0", "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-decorators": "^7.3.0", + "@babel/plugin-proposal-object-rest-spread": "^7.6.2", "@babel/plugin-transform-flow-strip-types": "^7.2.3", "@babel/plugin-transform-runtime": "^7.4.3", "@babel/polyfill": "^7.2.5", diff --git a/lbrytv/webpack.config.js b/lbrytv/webpack.config.js index 9ca886c22..5ca8ddb26 100644 --- a/lbrytv/webpack.config.js +++ b/lbrytv/webpack.config.js @@ -28,9 +28,9 @@ const webConfig = { { loader: 'babel-loader', test: /\.jsx?$/, - exclude: /node_modules/, options: { - rootMode: 'upward', + presets: ['@babel/env', '@babel/react', '@babel/flow'], + plugins: ['@babel/plugin-proposal-object-rest-spread', '@babel/plugin-proposal-class-properties'], }, }, {