Open d-strygwyr opened 10 months ago
0.314.0
i made some shared components for the internal library with turbo repo, after build and publish then we consume we got
SyntaxError: Unexpected token 'export' like this
import type { LucideProps } from "lucide-react"; import dynamicIconImports from "lucide-react/dynamicIconImports.js"; import { lazy, Suspense } from "react"; import { cn } from "../../utils"; interface IconProps extends Omit<LucideProps, "ref"> { name: keyof typeof dynamicIconImports; } export function Icon({ className = "", name, ...props }: IconProps): JSX.Element { const LucideIcon = lazy(dynamicIconImports[name]); return ( <Suspense> <div className={cn("w-4 h-4", className)}> <LucideIcon className={cn("w-4 h-4", className)} {...props} /> </div> </Suspense> ); }
Hey @xhttp-res have you managed to resolve that issue somehow?
nope @Kozioleczek 😿
Package
Version
0.314.0
Browser
Operating system
Description
i made some shared components for the internal library with turbo repo, after build and publish then we consume we got
SyntaxError: Unexpected token 'export' like this
Steps to reproduce
Checklist