tamino-martinius / node-ts-dedent

TypeScript package which smartly trims and strips indentation from multi-line strings
MIT License
158 stars 8 forks source link

__vite_ssr_import_1__.default is not a function #40

Open Nomango opened 6 months ago

Nomango commented 6 months ago

Reproduce Link

https://codesandbox.io/p/devbox/vigilant-mcclintock-dgvccf?file=%2Fsrc%2Flayouts%2FLayout.astro%3A21%2C13

Description

Using dedent anywhere with astro@v4 will cause an error __vite_ssr_import_1__.default is not a function

segevfiner commented 2 months ago

https://github.com/tamino-martinius/node-ts-dedent/pull/41 will probably fix this.