Skip to content
Snippets Groups Projects
Commit 7c0e2742 authored by Midhun Suresh's avatar Midhun Suresh
Browse files

Configure as library build

parent fac9e449
No related branches found
No related tags found
No related merge requests found
const path = require('path')
const { defineConfig } = require('vite')
module.exports = defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, 'src/main.ts'),
name: 'MyLib',
//fileName: (format) => `my-lib.${format}.js`
fileName: 'chatterbox.js'
}
}
})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment