diff --git a/.changeset/tall-avocados-glow.md b/.changeset/tall-avocados-glow.md new file mode 100644 index 000000000..f18e787b1 --- /dev/null +++ b/.changeset/tall-avocados-glow.md @@ -0,0 +1,7 @@ +--- +"@hopper-ui/styled-system": patch +"@hopper-ui/components": patch +"@hopper-ui/icons": patch +--- + +Changed build target to target ES2019 diff --git a/packages/components/tsup.build.ts b/packages/components/tsup.build.ts index 21c38b545..ce80ff224 100644 --- a/packages/components/tsup.build.ts +++ b/packages/components/tsup.build.ts @@ -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) }); diff --git a/packages/icons/tsup.build.ts b/packages/icons/tsup.build.ts index ffa1c07d2..96b97dfa3 100644 --- a/packages/icons/tsup.build.ts +++ b/packages/icons/tsup.build.ts @@ -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]", diff --git a/packages/styled-system/tsup.build.ts b/packages/styled-system/tsup.build.ts index ffa1c07d2..96b97dfa3 100644 --- a/packages/styled-system/tsup.build.ts +++ b/packages/styled-system/tsup.build.ts @@ -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]",