Skip to content
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

Haul bundler stuck #2

Closed
Woren opened this issue May 17, 2018 · 2 comments
Closed

Haul bundler stuck #2

Woren opened this issue May 17, 2018 · 2 comments

Comments

@Woren
Copy link

Woren commented May 17, 2018

Bundling app takes 15+ minutes. Sometimes it looks like it gets stuck. When trying to use metro bundler it also gets stuck. It looks like there is problem with kotlin imports in App.js when I use for example:
import * as shared from './shared/build/classes/kotlin/main/shared.js'
When this line is not there everything works smoothly. Is this something you are aware of? Maybe this is problem with Hault / Metro itself? Or do you have any it how make it faster? Thank you

@ScottPierce
Copy link
Owner

I mention this in the readme, but it sounds like you are dealing with: facebook/metro#123

@Woren
Copy link
Author

Woren commented May 25, 2018

Yes, you're right. I figured it out. For anybody else using Metro or Hault - these lines in .babelrc should help.

{
  "presets": ["react-native"],
  "ignore": [
    "**/shared.js"
  ]
}

@Woren Woren closed this as completed May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants