Skip to content

Commit

Permalink
Optimize build output (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexasselin008 authored Dec 6, 2023
1 parent e8f2959 commit f40a266
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .changeset/brown-tigers-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@hopper-ui/styled-system": patch
"@hopper-ui/components": patch
"@hopper-ui/icons": patch
---

Optimized the build output
4 changes: 1 addition & 3 deletions packages/components/tsup.build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { defineBuildConfig } from "@workleap/tsup-configs";

export default defineBuildConfig({
entry: ["./src/**/src/*.(ts|tsx)"],
minify: true,
splitting: false
entry: ["./src/**/src/*.(ts|tsx)"]
});
2 changes: 1 addition & 1 deletion packages/components/tsup.dev.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineDevConfig } from "@workleap/tsup-configs";

export default defineDevConfig({
entry: ["./src/**/src/*.(ts|tsx)"]
entry: ["./src/**/src/**/*.(ts|tsx)"]
});
2 changes: 0 additions & 2 deletions packages/icons/tsup.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { defineBuildConfig } from "@workleap/tsup-configs";
import packageJson from "./package.json";

export default defineBuildConfig({
minify: true,
splitting: true,
entry: ["./src/**/*.(ts|tsx)"],
esbuildPlugins: [
createCssModuleEsbuildPlugin({
Expand Down
4 changes: 1 addition & 3 deletions packages/styled-system/tsup.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { defineBuildConfig } from "@workleap/tsup-configs";
import packageJson from "./package.json";

export default defineBuildConfig({
minify: true,
splitting: false,
entry: ["./src/*.(ts|tsx)"],
entry: ["./src/**/*.(ts|tsx)"],
esbuildPlugins: [
createCssModuleEsbuildPlugin({
generateScopedName: "[name]__[local]___[hash:base64:5]",
Expand Down
2 changes: 1 addition & 1 deletion packages/styled-system/tsup.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineDevConfig } from "@workleap/tsup-configs";
import packageJson from "./package.json";

export default defineDevConfig({
entry: ["./src/*.(ts|tsx)"],
entry: ["./src/**/*.(ts|tsx)"],
esbuildPlugins: [
createCssModuleEsbuildPlugin({
generateScopedName: "[name]__[local]___[hash:base64:5]",
Expand Down

0 comments on commit f40a266

Please sign in to comment.