Closed pauleveritt closed 5 months ago
I guess this was part of your creation of eleventy-tsx
? I see you are now using tsx
because you never came around this blocker? Anything we could/should do about it regarding this plugin?
Hi KiwiKilian thanks for asking. It's true, we are using using tsx
for the main part of our work, but we're also still using the Vite plugin for some other parts.
So is the problem still persistent? Is there still a reproduction of this bug somewhere to be found?
I think this can be closed.
Big fan, using this this on an important project. TS/TSX and lots of Vitest.
I'd like to write kind of an E2E test without going to Playwright, using a style like this test in Eleventy. In that, Zach calls the
Eleventy
constructor himself and uses.toJSON
to get rendered results. I had to do some config work to skip loadingeleventy.config.js
(due to require andscript: "module"
in package.json.)When I get to EleventyVite:3 and
const { createServer: createViteServer, build: buildVite } = require("vite");
... I ultimate get this traceback:Here's the line it is failing on:
It is because
document.baseURI
isabout:blank
(I believe.)