codemix / babel-plugin-typecheck

Static and runtime type checking for JavaScript in the form of a Babel plugin.
MIT License
886 stars 44 forks source link

fix import and export type working around babel T6730 #100

Closed phpnode closed 8 years ago

phpnode commented 8 years ago

Right now import type {something} from "foo" doesn't work in babel 6 due to https://phabricator.babeljs.io/T6730

This works around the problem but requires that babel-plugin-transform-es2015-instanceof is enabled.

panrafal commented 8 years ago

I've tried to build and use this version in our project, but using babel-plugin-transform-es2015-instanceof causes this error: https://phabricator.babeljs.io/T6802 I assume it does work for you (all tests pass), so could you tell me which Babel version you're using for this? is it also dependent on pass_per_preset (https://github.com/babel/babel/commit/12b7a44796a504dbe5841473b899e499cae30749)?

And last but not least, why you didn't bump the version number?

P.S. awesome work! for us it's a lot more usable than flow itself :)