callstack / callstack/haul

Error hermesEnabled on Android

Open
#715 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.7k
Forks
185
PR merge metrics
No merged PRs in 30d

Description

Sorry, can`t reopen old issue https://github.com/callstack/haul/issues/714

## Environment

"@haul-bundler/babel-preset-react-native": "0.16.0",
"@haul-bundler/cli": "0.18.0",
"@haul-bundler/core": "0.18.0",
"@haul-bundler/preset-0.60": "0.18.0",
"react-native": "0.61.5",

## Description

When turn on hermes on android, bundle dont work.
Hermes enabled, but it only helps to remove line from defaultConfig in preset-0.60

exclude: /node_modules(?!.*[\/\\](react|@react-navigation|@react-native-community|@expo|pretty-format|@haul-bundler|metro))/,

Haul config:

export default makeConfig({
bundles: {
index: {
entry: withPolyfills("./src/mobile/index"),
},
},
})

babel config:

module.exports = function(api) {
api.cache.using(() => process.env.BABEL_ENV)

return {
presets: [
["module:@haul-bundler/babel-preset-react-native", {hermes: true}],
],
}
}

## Reproducible Demo

![image](https://user-images.githubusercontent.com/5614087/77934600-f8169580-72b8-11ea-9421-ba8b7ab2e016.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.