bfanger / tvkit

Proxy to run a modern dev server in old browsers
MIT License
26 stars 5 forks source link

Server code not getting transpiled #16

Closed christowiz closed 8 months ago

christowiz commented 8 months ago

The HTML that is served from the server contains Promises and arrow functions as text template when running a build. This doesn't gets skipped during the TVKit build process and throws an error on ES5 devices. I see that import() is changed to System.import() when passing the --add es-module.

It tried adding --add es-module,arrow-functions which was logged during the beginning of the build but didn't transpile the string template code.

HTML source:

Built code from TVKit

bfanger commented 8 months ago

Some javascript is generated at runtime by adapter-node, I've updated the patches for SvelteKit v2.

christowiz commented 8 months ago

@bfanger Awesome! Thanks for quick response. There are other issues with the output though to be ES5 supported. Here is the current output still missing a couple items image

bfanger commented 8 months ago

These should be fixed in 0.16.1

Thanks for reporting the issue.

christowiz commented 8 months ago

These should be fixed in 0.16.1

Thanks for reporting the issue.

@bfanger Thanks for the fixes and the great project.