mirror of
https://github.com/ershisan99/live-bundlers.git
synced 2026-02-02 12:35:28 +00:00
initial commit
This commit is contained in:
27
vite.config.ts
Normal file
27
vite.config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { resolve } from 'path'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
import { dependencies, devDependencies } from './package.json'
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
// Could also be a dictionary or array of multiple entry points
|
||||
entry: resolve(__dirname, 'src/index.ts'),
|
||||
// the proper extensions will be added
|
||||
fileName: 'index',
|
||||
formats: ['es'],
|
||||
name: 'live-bundlers',
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [
|
||||
'react/jsx-runtime',
|
||||
...Object.keys(dependencies),
|
||||
...Object.keys(devDependencies),
|
||||
],
|
||||
},
|
||||
sourcemap: true,
|
||||
target: 'esnext',
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user