Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
Fixed rollup issue, fixes #608
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Nov 20, 2018
1 parent ea11d06 commit 977a70e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# MobX-React Changelog

### 5.4.1

* Fixed issue where `react-is` wasn't properly rolled-up into the package. Fixes [#608](https://github.com/mobxjs/mobx-react/issues/608)

### 5.4.0

* Added support for forward refs, fixes [#602](https://github.com/mobxjs/mobx-react/issues/602)
Expand Down
5 changes: 3 additions & 2 deletions src/observer.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import React, { Component, PureComponent } from "react"
import hoistStatics from "hoist-non-react-statics"
// FIXME: This fails in rollup, sadly, as a full import is bigger :-(
// import { ForwardRef } from "react-is"
import * as ReactIs from "react-is"
import { createAtom, Reaction, _allowStateChanges, $mobx } from "mobx"
import { findDOMNode as baseFindDOMNode } from "react-dom"

import EventEmitter from "./utils/EventEmitter"
import inject from "./inject"
import { patch as newPatch, newSymbol } from "./utils/utils"

const ReactIs = require("react-is")

const mobxAdminProperty = $mobx || "$mobx"
const mobxIsUnmounted = newSymbol("isUnmounted")

Expand Down

0 comments on commit 977a70e

Please sign in to comment.