Skip to content

feat: allow configuration Vite config.resolve object#126

Merged
tajo merged 2 commits into
tajo:masterfrom
beckend:resolve
May 5, 2022
Merged

feat: allow configuration Vite config.resolve object#126
tajo merged 2 commits into
tajo:masterfrom
beckend:resolve

Conversation

@beckend

@beckend beckend commented May 5, 2022

Copy link
Copy Markdown
Contributor

Why:
Setup react-native-web requires vite resolve.extensions to be set to for example:

    resolve: {
      extensions:['.web.tsx', '.web.ts', '.mjs', '.js', '.ts', '.jsx', '.tsx', '.json']
    },

This is just another case of limited config options for vite.

https://necolas.github.io/react-native-web/docs/multi-platform
The file for react web components will simply have highest priority for .web.ts?x extension.

@changeset-bot

changeset-bot Bot commented May 5, 2022

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a02f35b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented May 5, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ladle ✅ Ready (Inspect) Visit Preview May 5, 2022 at 10:13PM (UTC)

@tajo tajo merged commit 0a44aa2 into tajo:master May 5, 2022
@tajo tajo mentioned this pull request May 11, 2022
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.

2 participants