Closed pschroen closed 1 year ago
hm, looks like it ignores the package json "exports": "./src/index.mjs",
Ya I was worried about those changes we made to the package.json from #138.
@CodyJasonBennett any ideas? ☝️
I'd try adding browser
and main
for Unpkg and Codesandbox, respectively. main
might just be enough. Node will ignore those keys and pick exports
instead. For the browser, I'd also drop .mjs
which is redundant with "type": "module"
.
Looks like that was enough. #174
I see you've also switched to the .js
extension there (which I'm in support of too), also discussed in #138.
@gordonnl I don't see any reason to keep the .mjs
extension anymore, imho that was popular when modules were first introduced as a stop-gap solution, but it's common practice these days to just name everything .js
as ES6 modules are widely supported now by all browsers and runtimes. 😉
FWIW there's https://publint.dev and https://arethetypeswrong.github.io as a sanity check.
ooh handy, thanks!
https://unpkg.com/ogl
This also appears to be breaking the CodeSandbox link in the readme.
https://codesandbox.io/s/ogl-5i69p