fix: build entry file
This commit is contained in:
parent
30fe2dd502
commit
2778e4d697
1 changed files with 2 additions and 2 deletions
|
|
@ -7,9 +7,9 @@ export default defineConfig({
|
|||
plugins: [],
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'superdough.mjs'),
|
||||
entry: resolve(__dirname, 'index.mjs'),
|
||||
formats: ['es', 'cjs'],
|
||||
fileName: (ext) => ({ es: 'superdough.mjs', cjs: 'superdough.cjs' }[ext]),
|
||||
fileName: (ext) => ({ es: 'index.mjs', cjs: 'index.cjs' }[ext]),
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [...Object.keys(dependencies)],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue