Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change build target to target es2019. #119

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/tall-avocados-glow.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
---

Changed build target to target ES2019
3 changes: 2 additions & 1 deletion packages/components/tsup.build.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineBuildConfig } from "@workleap/tsup-configs";

export default defineBuildConfig({
entry: ["./src/**/src/*.(ts|tsx)"]
entry: ["./src/**/src/*.(ts|tsx)"],
target: "es2019" // We set target ES2019 since ES2020 syntax is not supported by older versions of storybook (used in orbiter)
});
1 change: 1 addition & 0 deletions packages/icons/tsup.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import packageJson from "./package.json";

export default defineBuildConfig({
entry: ["./src/**/*.(ts|tsx)"],
target: "es2019", // We set target ES2019 since ES2020 syntax is not supported by older versions of storybook (used in orbiter)
esbuildPlugins: [
createCssModuleEsbuildPlugin({
generateScopedName: "[name]__[local]___[hash:base64:5]",
Expand Down
1 change: 1 addition & 0 deletions packages/styled-system/tsup.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import packageJson from "./package.json";

export default defineBuildConfig({
entry: ["./src/**/*.(ts|tsx)"],
target: "es2019", // We set target ES2019 since ES2020 syntax is not supported by older versions of storybook (used in orbiter)
esbuildPlugins: [
createCssModuleEsbuildPlugin({
generateScopedName: "[name]__[local]___[hash:base64:5]",
Expand Down