aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.
https://million.dev
MIT License
15.87k stars 554 forks source link

svgs not rendering #1033

Open monicaricks opened 1 month ago

monicaricks commented 1 month ago

What version of million are you using?

3.0.6

Are you using an SSR adapter? If so, which one?

none

What package manager are you using?

pnpm

What operating system are you using?

Max

What browser are you using?

Chrome

Describe the Bug

svgs not rendering using auto mode on webpack project: million.webpack({ auto: {}, }),

I'm getting this error in the console:

image

What's the expected result?

all svgs should render

Link to Minimal Reproducible Example

https://stackblitz.com/edit/webpack-5-react-starter-hx8bj9?file=src%2Fapp.tsx

Participation

github-actions[bot] commented 1 month ago

Thanks for opening this issue! A maintainer will review it soon.

monicaricks commented 1 month ago

This also doesn't work in vite: https://stackblitz.com/edit/vitejs-vite-xvoho4?file=package.json,vite.config.ts,src%2FApp.tsx&terminal=dev

tobySolutions commented 1 month ago

Thank you for sharing this @monicaricks, really appreciate it. The team is however working on this at the moment and fixes will be available in the next release. I will take a look at your Stackblitz reproduction though

monicaricks commented 1 month ago

Thanks! I look forward to the next release!! 👍