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

Update transpilation to remove import/export syntax from base package #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EvanBacon
Copy link
Contributor

The JS engines that we use with React Native do not support import/export syntax so we essentially offload the changes in this PR to be performed locally on every user's machine. This doesn't fully fix the package since the vendor still has es modules.

@vercel
Copy link

vercel bot commented Sep 19, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/expoio/vector-icons/am6rgMr9uB6jAP4oXoixApc6Cd3Q
✅ Preview: https://vector-icons-git-evanbacon-update-transpilation-expoio.vercel.app

@brentvatne
Copy link
Member

my only concern about this is that, unless i'm mistaken, there is a minor breaking change -- if someone was, for some reason, using cjs to import a font directly we won't have default anymore:

// This won't work anymore
const AntDesign = require('@expo/vector-icons/AntDesign').default;

@Simek
Copy link
Collaborator

Simek commented Jul 13, 2023

@EvanBacon Do we still need this refactor?

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

Successfully merging this pull request may close these issues.

3 participants