Skip to content

Where to put polyfills in the new router ? #25122

Closed Answered by EvanBacon
Twiggeh asked this question in Archived: Questions
Discussion options

You must be logged in to vote

Create an index.js file and make your polyfill the first import:

import 'polyfill'
import 'expo-router/entry'

Then change the main field in the package.json to point to the "main": "./index".

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@bsluther
Comment options

@isaachinman
Comment options

@patroza
Comment options

@pooriamo
Comment options

@salieflewis
Comment options

Answer selected by EvanBacon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants