Skip to content

Commit

Permalink
make options optional; dual cjs/esm build
Browse files Browse the repository at this point in the history
  • Loading branch information
bienzaaron committed Aug 29, 2023
1 parent e4664cd commit 46965a1
Show file tree
Hide file tree
Showing 8 changed files with 2,871 additions and 334 deletions.
12 changes: 12 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: ['src/index'],
externals: ['svgo', 'tslib', 'vite'],
clean: true,
declaration: true,
rollup: {
emitCJS: true,
inlineDependencies: true,
},
})
Loading

0 comments on commit 46965a1

Please sign in to comment.