Skip to content

Commit 0bcaaac

Browse files
Tommypop2Milo
authored andcommitted
Migrate any jspm.dev URLs to esm.sh
1 parent 1c85db6 commit 0bcaaac

File tree

1 file changed

+4
-0
lines changed
  • packages/solid-repl/src/components

1 file changed

+4
-0
lines changed

packages/solid-repl/src/components/repl.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ export const Repl: ReplProps = (props) => {
123123
if (event === 'ROLLUP') {
124124
const currentMap = { ...importMap() };
125125
for (const file in currentMap) {
126+
// Catch any `jspm.dev` URLs and migrate them to `esm.sh`
127+
if (currentMap[file] === `https://jspm.dev/${file}`) {
128+
currentMap[file] = `https://esm.sh/${file}`;
129+
}
126130
if (!(file in compiled) && currentMap[file] === `https://esm.sh/${file}`) {
127131
delete currentMap[file];
128132
}

0 commit comments

Comments
 (0)