Skip to content

How to use with expo-constants on web? #274

Answered by AllanChain
AllanChain asked this question in Q&A
Discussion options

You must be logged in to vote

I just realized that I can put it in overrides:

module.exports = function (api) {
  api.cache(true)
  return {
    presets: ['babel-preset-expo'],
    overrides: [
      {
        test: (fileName) => !fileName.includes('node_modules'),
        plugins: [
          ['module:react-native-dotenv']
        ]
      }
    ]
  }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@goatandsheep
Comment options

Answer selected by AllanChain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants