mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 14:22:51 +00:00
xtermjs init
This commit is contained in:
21
packages/react-native-xtermjs-webview/vite.config.ts
Normal file
21
packages/react-native-xtermjs-webview/vite.config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import packageJson from './package.json'
|
||||
import { resolve } from 'path'
|
||||
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
external: Object.keys(packageJson.peerDependencies || {}),
|
||||
},
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/index.tsx'),
|
||||
name: 'ReactNativeXtermJsWebView',
|
||||
formats: ['es'],
|
||||
fileName: 'react-native-xtermjs-webview',
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user