From da87dccb538320bb286611cba0a0522287c1651c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Sat, 17 Nov 2018 11:12:30 +0100 Subject: [PATCH] Update react-hot-loader to 4.4.0, turn on pureSFC --- client/js/components/Root.js | 6 +++++- client/package.json | 2 +- client/yarn.lock | 14 ++++++++++---- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/client/js/components/Root.js b/client/js/components/Root.js index 9742ba73..3b2dbc5d 100644 --- a/client/js/components/Root.js +++ b/client/js/components/Root.js @@ -1,8 +1,12 @@ import React from 'react'; import { Provider } from 'react-redux'; -import { hot } from 'react-hot-loader'; +import { hot, setConfig } from 'react-hot-loader'; import App from 'containers/App'; +setConfig({ + pureSFC: true +}); + const Root = ({ store }) => ( diff --git a/client/package.json b/client/package.json index 1e852cf0..35db1ab2 100644 --- a/client/package.json +++ b/client/package.json @@ -70,7 +70,7 @@ "lodash": "^4.17.11", "react": "^16.7.0-alpha.0", "react-dom": "^16.7.0-alpha.0", - "react-hot-loader": "^4.3.11", + "react-hot-loader": "^4.4.0", "react-redux": "^6.0.0-beta.2", "react-virtualized-auto-sizer": "^1.0.2", "react-window": "^1.2.2", diff --git a/client/yarn.lock b/client/yarn.lock index 847d88de..36ed0495 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -8134,10 +8134,10 @@ react-fast-compare@^1.0.0: resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-1.0.0.tgz#813a039155e49b43ceffe99528fe5e9d97a6c938" integrity sha512-dcQpdWr62flXQJuM8/bVEY5/10ad2SYBUafp8H4q4WHR3fTA/MMlp8mpzX12I0CCoEJc1P6QdiMg7U+7lFS6Rw== -react-hot-loader@^4.3.11: - version "4.3.12" - resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.3.12.tgz#0d56688884e7330c63a00a17217866280616b07a" - integrity sha512-GMM4TsqUVss2QPe+Y33NlgydA5/+7tAVQxR0rZqWvBpapM8JhD7p6ymMwSZzr5yxjoXXlK/6P6qNQBOqm1dqdg== +react-hot-loader@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.4.0.tgz#bb025bc01d77b246766f3f3d19d824c8052fba87" + integrity sha512-cxLqseogDVrrpFYjS00AchfILK1zab0SXQwRAUHM/mNjcN4gS4Agjc97BfIzrgIVuJCIkQCpSGWQh4kVnz5VGQ== dependencies: fast-levenshtein "^2.0.6" global "^4.3.0" @@ -8145,6 +8145,7 @@ react-hot-loader@^4.3.11: prop-types "^15.6.1" react-lifecycles-compat "^3.0.4" shallowequal "^1.0.2" + source-map "^0.7.3" react-is@^16.3.2, react-is@^16.6.0: version "16.6.0" @@ -9009,6 +9010,11 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-map@^0.7.3: + version "0.7.3" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" + integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== + sparkles@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/sparkles/-/sparkles-1.0.0.tgz#1acbbfb592436d10bbe8f785b7cc6f82815012c3"