Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnaya committed Aug 9, 2019
1 parent cb66d35 commit 9d6bf9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/webpack/patch.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const injectionStart = {
'16.9': [
'if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type || (\n // Keep this check inline so it only runs on the false path:\n isCompatibleFamilyForHotReloading(child, element)))',
'/* HERE */if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : hotCompareElements(child.elementType, element.type, hotUpdateChild(child), child.type))/* HERE */'
'if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : hotCompareElements(child.elementType, element.type, hotUpdateChild(child), child.type))'
],
'16.6': [
'if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type)',
Expand All @@ -24,7 +24,7 @@ const injectionStart = {
const additional = {
'16.9-update': [
'(\n // Keep this check inline so it only runs on the false path:\n isCompatibleFamilyForHotReloading(current$$1, element)))',
'/* HERE */(hotCompareElements(current$$1.elementType, element.type, hotUpdateChild(current$$1), current$$1.type)))/* HERE */'
'(hotCompareElements(current$$1.elementType, element.type, hotUpdateChild(current$$1), current$$1.type)))'
],
'16.6-update': [
'if (current$$1 !== null && current$$1.elementType === element.type) {',
Expand Down Expand Up @@ -110,7 +110,6 @@ const defaultEnd = ['var ReactDOM = {', ReactHotLoaderInjection];
const defaultEndCompact = ['var ReactDOM={', ReactHotLoaderInjection];

const injectionEnd = {
'16.9-another': defaultEnd,
'16.9': defaultEnd,
'16.6': defaultEnd,
'16.4': defaultEnd,
Expand Down

0 comments on commit 9d6bf9b

Please sign in to comment.