svelte-adapter-azure-swa icon indicating copy to clipboard operation
svelte-adapter-azure-swa copied to clipboard

Include plugins in esbuildOptions

Open sukeshpabolu opened this issue 1 year ago • 2 comments

Add plugins option in esbuildOptions

sukeshpabolu avatar Aug 15 '24 11:08 sukeshpabolu

Why do you need this? Ideally you would use a Vite plugin instead, since that would apply during dev and build.

geoffrich avatar Aug 15 '24 14:08 geoffrich

Do they work during build? For example I have to move query engine files related to prisma to ./build/server/.

sukeshpabolu avatar Aug 15 '24 18:08 sukeshpabolu

Sorry for the late response - I still think a Vite plugin or maybe a postbuild script would accomplish what you need. I don't currently want to allow running arbitrary esbuild plugins since esbuild should be an implementation detail for this adapter.

If you really want it, you can fork or patch the package -- it should be a simple customization to maintain.

geoffrich avatar Nov 26 '25 20:11 geoffrich