#vite + v2 addon + local dev linking

1 messages ยท Page 1 of 1 (latest)

main estuary
#

Hi - have a new v6.8 vite app and a new v2 addon using @ember/addon-blueprint.

Are there any docs on getting the local dev env setup for this? I've tried pnpm add ../my-addon but it doesnt seem to work unless I run pnpm pack first which isnt great. Whats the right approach here?

stone totem
#

are there any docs

in vite, I hope ๐Ÿ™ˆ

for outside a repo, you'll want to add optimizeDeps.exclude: ['your project'], I think

#

by default, this is configured for you for anything in your repo, iirc

#

(oh in the vite config)

main estuary
#

the vite config in the app, not the addon? Sorry, not fully understanding ๐Ÿ™‚

#

Ah this was the magic I needed. Running pnpm run build --watch in the addon

sturdy sundial
#

that's not an ember thing to be fair. That's how it works across the industry now. Then people use tools such as turbo, nx or soon vite+