Skip to content

Commit

Permalink
fix #706
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Dec 18, 2024
1 parent 4fcae5b commit 58f84ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Go to the `v1` branch to see the changelog of Lume 1.

### Fixed
- Updated deps: `sass`, `preact`, `xml` and some plugins.
- `esbuild`: JSR using import maps [#706].

## [2.4.3] - 2024-12-11
### Added
Expand Down Expand Up @@ -645,6 +646,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
[#692]: https://github.com/lumeland/lume/issues/692
[#693]: https://github.com/lumeland/lume/issues/693
[#704]: https://github.com/lumeland/lume/issues/704
[#706]: https://github.com/lumeland/lume/issues/706
[#707]: https://github.com/lumeland/lume/issues/707

[Unreleased]: https://github.com/lumeland/lume/compare/v2.4.3...HEAD
Expand Down
6 changes: 3 additions & 3 deletions plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,9 @@ function handleEsm(path: string, options: EsmOptions): string | undefined {
}

const [, prefix, name] = match;
const url = prefix === "npm"
? new URL(`https://esm.sh/${name}`)
: new URL(`https://esm.sh/jsr/${name}`);
const url = new URL(
`https://esm.sh${posix.join(prefix === "npm" ? "/" : "/jsr", name)}`,
);

if (options.dev) {
url.searchParams.set("dev", "true");
Expand Down

0 comments on commit 58f84ff

Please sign in to comment.