Skip to content

Commit

Permalink
chore: reduce package size
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernankez committed Mar 25, 2024
1 parent b2863a2 commit 290bd1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/core/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineBuildConfig({
declaration: true,
clean: true,
rollup: {
inlineDependencies: true,
emitCJS: true,
},
});
4 changes: 1 addition & 3 deletions packages/core/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { log } from "@bernankez/utils";

export function assert(condition: unknown, message?: string): asserts condition {
if (!condition) {
log.error(`[backmoji] ${message}`);
console.error(`[backmoji] ${message}`);
throw new Error(message);
}
}
Expand Down

0 comments on commit 290bd1e

Please sign in to comment.