solid-playground icon indicating copy to clipboard operation
solid-playground copied to clipboard

Compiler not published as ESM?

Open NullVoxPopuli opened this issue 1 year ago • 2 comments

Just noticed this as I was poking around image

image

How is this meant to be used in a browser, since browsers don't support commonjs?

might be related to https://github.com/solidjs/solid-playground/issues/174

thanks!!

tho, maybe I don't know what's going on here -- esm.sh thinks there are exports

image

Searching through https://esm.sh/v135/[email protected]/es2022/dist/compiler.js it's kind of hard to see what is actually exported, since so much content is in strings :sweat_smile:

(turns out esm.sh is a better source viewer than npm haha)

NullVoxPopuli avatar Jul 24 '24 16:07 NullVoxPopuli

The compiler is meant to be imported as a raw js file (and so is bundled fully, into what should basically be an iife) because esm support for workers was limited (missing in firefox) until recently

milomg avatar Aug 11 '24 18:08 milomg

is there a version of the compiler that would work with esm.sh?

NullVoxPopuli avatar Aug 14 '24 21:08 NullVoxPopuli