Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/react-native-monorepo-example. An example of a Yarn Berry monorepo with workspace and Re
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829import react from '@vitejs/plugin-react';import path from 'node:path';import { defineConfig } from 'vite';import dts from 'vite-plugin-dts';
export default defineConfig({ plugins: [ react(), dts(), ], build: { lib: { entry: path.resolve(__dirname, 'src/index.tsx'), name: 'SharedElements', fileName: 'shared-elements', }, rollupOptions: { external: ['react', 'react-dom', 'react-native'], output: { globals: { react: 'React', 'react-native': "ReactNative", 'react-dom': 'ReactDOM' }, }, }, },});