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: 1 comment 3 replies

Comment options

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

@isaachinman
Comment options

@patroza
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
5 participants