Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Using dependencies with non-transpiled src code #1498

Closed
bkniffler opened this issue Feb 14, 2019 · 1 comment
Closed

Using dependencies with non-transpiled src code #1498

bkniffler opened this issue Feb 14, 2019 · 1 comment

Comments

@bkniffler
Copy link
Contributor

Here is an example repo:
https://github.com/bkniffler/fuse-box-rn

Background

By building a react-native-web (https://github.com/necolas/react-native-web) based web application, I'm running into problems, since react-native-web allows to use react-native UI projects like react-native-elements (https://github.com/react-native-training/react-native-elements) by mapping react-native base elements (View, Text, ...) to react-dom components. This works by aliasing react-native to react-native-web.

Problem

Lots of react-native ui libraries and tools will not publish transpiled code, but raw src code with jsx, es-modules etc, since metro bundler will automatically run them through babel. I'm not able to run those dependencies through babel though, even with useJsNext: true and Babel7Plugin=>limit2project

How can I make fuse-box load them without throwing syntax errors?

@charsleysa
Copy link
Contributor

Closed due to inactivity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants