Closed guybedford closed 10 months ago
@guybedford oh, has this been fixed? or i will check what happened.
@ije thanks for the follow-up here. I just posted a PR to fix some other flakes in https://github.com/jspm/generator/pull/312 and see that the esm.sh
test is still failing there yes. It's specific to that test, I haven't had a chance to look into it more carefully yet myself. If you're able to take a look that would be amazing.
thanks, i will look into it
@ije was just wondering if you managed to take a look at this yet?
The source code is https://esm.sh/v130/assert@1.5.0/X-ZS8q/denonext/assert.js.js:9:45, where it seems to be that util.inherits
is not a function in this transform for Deno.
I believe it's quite specific to this Deno case, so will just disable the test again for now so we can get our CI passing, but esm.sh is very close to first-class JSPM support afaict.
@guybedford i'm looking into it, is this the failed code?
import { Generator } from "@jspm/generator";
import assert from "assert";
const generator = new Generator({
mapUrl: import.meta.url,
defaultProvider: "esm.sh",
env: ["production", "browser"],
});
await generator.install("lit@2.0.0-rc.1");
const json = generator.getMap();
assert.strictEqual(json.imports.lit, "https://esm.sh/*lit@2.0.0-rc.1");
const scope = json.scopes["https://esm.sh/"];
assert.ok(scope["@lit/reactive-element"]);
assert.ok(scope["lit-element/lit-element.js"]);
assert.ok(scope["lit-html"]);
Thanks so much @ije I can confirm it's working now! We've just got one last test failure in the suite remaining, but that's not esm.sh it's a JSPM.IO Babel bug.
It seems an esm.sh upgrade has caused the test to fail.
Getting in CI: