Skip to content

Commit

Permalink
fix: Fix storybookjs#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 Sep 11, 2021
1 parent a702142 commit bb930b7
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 bb930b7

Please sign in to comment.