Skip to content

Commit

Permalink
fix: Fix #120 (running "yarn web" on Expo fails).
Browse files Browse the repository at this point in the history
The "dist" output in the v6 alpha packages contains JSX and ESNext constructs. Browsers can't handle these natively, so "yarn web" fails on Expo. Fix by using slightly less modern constructs in our dist outputs.
  • Loading branch information
lauriharpf committed Aug 14, 2021
1 parent b195bb5 commit bdbe740
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions addons/ondevice-controls/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"jsx": "react-native",
"jsx": "react",
"rootDir": "./src",
"module": "ESNext",
"module": "ES6",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"target": "ESNext",
"lib": ["ESNext"],
"target": "ES2016",
"allowSyntheticDefaultImports": true,
"paths": {
"@emotion/native": ["src/typings.d.ts"]
Expand Down
7 changes: 3 additions & 4 deletions addons/ondevice-notes/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"jsx": "react-native",
"jsx": "react",
"rootDir": "./src",
"module": "ESNext",
"module": "ES6",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"target": "ESNext",
"lib": ["ESNext"],
"target": "ES2016",
"allowSyntheticDefaultImports": true,
"outDir": "dist/",
"moduleResolution": "node",
Expand Down
7 changes: 3 additions & 4 deletions app/react-native/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"jsx": "react-native",
"jsx": "react",
"rootDir": "./src",
"module": "ESNext",
"module": "ES6",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"target": "ESNext",
"lib": ["ESNext"],
"target": "ES2016",
"allowSyntheticDefaultImports": true,
"paths": {
"@emotion/native": ["src/typings.d.ts"]
Expand Down

0 comments on commit bdbe740

Please sign in to comment.