solid-start
solid-start copied to clipboard
fix: solid-start merge babel options
Probably an oversight. solid-start
's vite plugin completely omits the babel
option for vite-plugin-solid
.
As for the server transform, I'm not sure where to put it, but for now I'll just use push
.
We also have another section where we use the solid babel
compiler and override it with options:
async transform(code, id, transformOptions) {
const isSsr =
transformOptions === null || transformOptions === void 0 ? void 0 : transformOptions.ssr;
let babelSolidCompiler = (code, id, fn) => {
// @ts-ignore
return solid({
...(options ?? {}),
babel: fn
}).transform(code, id, transformOptions);
};
Could you see if we could do something about this as well?
Also, thanks for helping with this!
@nksaraf which part is this?
This is the transform
function from function solidStartFileSystemRouter(options)
Okay so I've fixed it, not sure with the conflicts