Open davidmeirlevy opened 2 years ago
Good catch — I think the workaround for now is to just use import.meta
if you we're using /client.mjs
— probably doesn't make sense to keep /client.js
available in renderer adapters given all Vite application code is ESM. So not really a workaround but rather a fix. Feel free to put a PR up, I should be able to get to it (and a new release) tomorrow in any case.
Prerequisites
Fastify version
3.23.1
Plugin version
2.3.0
Node.js version
14.7
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
11.6
Description
my app is using vue-ts
SSR code should be tree-shaked from client dist
Steps to Reproduce
write something like:
when doing:
Expected Behavior
SSR code should be tree-shaked from client dist