Skip to content

Commit

Permalink
Supply both ESM and CJS modules
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Apr 13, 2022
1 parent 703398f commit a5f56a6
Show file tree
Hide file tree
Showing 42 changed files with 1,097 additions and 76 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
- macOS-latest
- windows-latest
node-version:
- 12
- 14
- 16

Expand Down
9 changes: 9 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineBuildConfig } from "unbuild";

export default defineBuildConfig({
entries: ["./src/index"],
declaration: true,
rollup: {
emitCJS: true,
},
});
Loading

0 comments on commit a5f56a6

Please sign in to comment.