Vite load issue.
3cp opened this issue · comments
Chunpeng Huo commented
aurelia/packages-tooling/vite-plugin/src/index.ts
Lines 99 to 114 in 32e8cc1
The preprocess in "load" func has missing options like the one in "transform" func.
I can fix it by adding missed back.
However I don't understand why we do preprocess in "load", as vite doc says "transform" is called immediately after "load". https://vitejs.dev/guide/api-plugin#universal-hooks
Chunpeng Huo commented
The "load" is definitely used by vitest.
Our normal vite+hmr is not affected by this issue.
It might affect vite build or vite wo hmr.
Chunpeng Huo commented
const htmlId = id.replace('.$au.ts', '.html');
Oh I saw the reason of load.