Skip to content

Commit

Permalink
feat: Add ES module export (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnault committed Jul 25, 2022
1 parent 8257a79 commit 73341fd
Show file tree
Hide file tree
Showing 6 changed files with 940 additions and 454 deletions.
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
dist
4 changes: 2 additions & 2 deletions benchmark/index.js
Expand Up @@ -2,13 +2,13 @@ const benchmark = require("benchmark");
const classnames = require("classnames");
const { clsx } = require("clsx");

const { cx } = require("../dist");
const { cx } = require("../dist/classix.cjs");

const args = ["class1", "class2", false && "class3", true && "class4"];

new benchmark.Suite()
.add("classnames", () => classnames(...args))
.add("clsx", () => clsx(...args))
.add("cx", () => cx(...args))
.add("classix", () => cx(...args))
.on("cycle", (event) => console.log(event.target.toString()))
.run();

0 comments on commit 73341fd

Please sign in to comment.