Closed zverev closed 7 years ago
That's weird, maybe a rebuild would fix it?
What actually do you recommend to rebuild?
Don't know WTH is going on. Just published a patch with the latest build and still diverges :S
Something similar is happening to me too. My recent pull request that added typings is not working, as index.d.ts
is not included in the npm published version; even though it is not in .gitignore
or .npmignore
.
Hi!
I still have a problem with compiled sources (https://github.com/javivelasco/react-css-themr/pull/29). Seems that npm's
lib
dir differs from the one I have after building the repo, so I have tonpm link
to get this work in IE :(Here is my script to reproduce the issue:
And here is the output:
Notice this line:
var _this = _possibleConstructorReturn(this, (_ref = Themed.__proto__ || Object.getPrototypeOf(Themed)).call.apply(_ref, [this].concat(args)));
It seems to be transpiled fromsuper()
call inThemed
. The key thing isThemed.__proto__
. Babel manually creates this property in it's inheritance method implementation for browsers that don't supportObject.setPrototypeOf()
so IE10 can only access parent Object from this property. Previous compiler version generates the following:var _this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(Themed)).call.apply(_Object$getPrototypeO, [this].concat(args)));
This is what npm package contains. In IE10Object.getPrototypeOf()
returns not we are expect and we have an error.Please check the npm package. I don't actually understand why could it be diverged from the repo because
package.json
does have aprepublish
script that seems to be correct.