Change lib name in vite config

This commit is contained in:
Tom Southall
2022-03-11 21:43:23 +00:00
parent 9f7ea41e63
commit 0f79dad028

View File

@@ -7,7 +7,7 @@ export default defineConfig({
build: { build: {
lib: { lib: {
entry: path.resolve(__dirname, 'src/lib/index.jsx'), entry: path.resolve(__dirname, 'src/lib/index.jsx'),
name: 'Turnstone', name: 'turnstone',
fileName: (format) => `turnstone.${format}.js` fileName: (format) => `turnstone.${format}.js`
}, },
rollupOptions: { rollupOptions: {