-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get reify to work with other tools (e.g. babel, etc) #31
Comments
These are good questions, and I admit I don't know all the answers, but here's how https://github.com/meteor/babel gets around the parsing restrictions on nested |
Also, while I don't plan to make |
🤔 🤔 🤔 🤔 🤔 🤔 This seems like an issue to log against either https://github.com/babel/babel or https://github.com/babel/babylon, which I think is the parser which throws this error. Can we make this |
Like @benjamn already mentioned, you just need to pass in |
@hzoo Thanks for the additional info. I was trying to see if I could quickly work |
Oh you're right.. then I think it's just not doing that correctly atm, or that changed since it wasn't that in babel 5.x. Now it would be nice if I remembered why I added that .. http://henryzoo.com/babel.github.io/docs/advanced/loose/#es6-modules |
Those docs are likely outdated. I wouldn't expect |
Sorry for the long wait on this. I recently created a Babel plugin that wraps the Reify compiler, which should make it easier to include Reify in your Babel plugins. Note that this plugin is compatible with Babel's CommonJS modules plugin, and I even recommend using both, so that the CommonJS plugin can take care of any top-level Also please note that installing the runtime is non-trivial if you're using a tool like Webpack or Browserify, for the reasons described in |
Hi!
I'm trying to place reify in the context of other tools, i.e. understand what it replaces, what it works with. Specifically, I'm wondering about it's relationship to babel. I've been trying to make reify and babel work nicely together, but it seems like you can't configure babel to accept non-top level imports. It throws the following error no matter which permutation of plugins and configuration options I use:
Here's a commit showing my failed attempts at getting
reify
andbabel
to work togetherMy question is, if we want to use reify-style
import
andexport
, but also want to use other es6 things, what's the best way to configure our projects? Isreify
orthogonal tobabel
? Can they work together? Doesreify
plan to become a full-fledged transpiler?The text was updated successfully, but these errors were encountered: