diff --git a/.changeset/brown-tigers-drum.md b/.changeset/brown-tigers-drum.md new file mode 100644 index 000000000..07d011a3c --- /dev/null +++ b/.changeset/brown-tigers-drum.md @@ -0,0 +1,7 @@ +--- +"@hopper-ui/styled-system": patch +"@hopper-ui/components": patch +"@hopper-ui/icons": patch +--- + +Optimized the build output diff --git a/packages/components/tsup.build.ts b/packages/components/tsup.build.ts index 851f64c71..21c38b545 100644 --- a/packages/components/tsup.build.ts +++ b/packages/components/tsup.build.ts @@ -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)"] }); diff --git a/packages/components/tsup.dev.ts b/packages/components/tsup.dev.ts index 0e619e41b..0d87e3a94 100644 --- a/packages/components/tsup.dev.ts +++ b/packages/components/tsup.dev.ts @@ -1,5 +1,5 @@ import { defineDevConfig } from "@workleap/tsup-configs"; export default defineDevConfig({ - entry: ["./src/**/src/*.(ts|tsx)"] + entry: ["./src/**/src/**/*.(ts|tsx)"] }); diff --git a/packages/icons/tsup.build.ts b/packages/icons/tsup.build.ts index 6808839f2..ffa1c07d2 100644 --- a/packages/icons/tsup.build.ts +++ b/packages/icons/tsup.build.ts @@ -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({ diff --git a/packages/styled-system/tsup.build.ts b/packages/styled-system/tsup.build.ts index b35ec5882..ffa1c07d2 100644 --- a/packages/styled-system/tsup.build.ts +++ b/packages/styled-system/tsup.build.ts @@ -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]", diff --git a/packages/styled-system/tsup.dev.ts b/packages/styled-system/tsup.dev.ts index 6e1fb1050..691caa054 100644 --- a/packages/styled-system/tsup.dev.ts +++ b/packages/styled-system/tsup.dev.ts @@ -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]",