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

fix: add expo next plugin in storybook react #589

Merged
merged 2 commits into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/next-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"scripts": {
"dev": "NODE_OPTIONS='--inspect' next dev",
"build": "next build",
"build:turbo": "cd ../.. && yarn build",
"build:analyze": "ANALYZE=true yarn build",
"start": "next start",
Expand Down
9 changes: 7 additions & 2 deletions apps/storybook-react/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/** @type {import('next').NextConfig} */
module.exports = {
const { withExpo } = require('@expo/next-adapter')
const withPlugins = require('next-compose-plugins')
const withTM = require('next-transpile-modules')(['react-native-web'])

const nextConfig = {
reactStrictMode: true,
}

module.exports = withPlugins([withTM, [withExpo, { projectRoot: __dirname + '/../..' }]], nextConfig)
1 change: 0 additions & 1 deletion apps/storybook-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"license": "MIT",
"scripts": {
"dev": "next dev",
"build": "next build",
"build:storybook": "build-storybook -s public",
"start": "next start",
"lint": "next lint",
Expand Down