porsager / flems

A single file web playground and sandbox
Do What The F*ck You Want To Public License
501 stars 87 forks source link

ES Modules require a full path (tarball problems) #82

Open pygy opened 4 years ago

pygy commented 4 years ago

It is nice that Flems is forgiving of missed extensions when importing, but when the code is downloaded, you get error messages about invalid MIME types that are not obvious to decipher.

It would probably be better to mandate the extensions in the sandbox as well.

porsager commented 4 years ago

Yeah, you're right.. That's a good idea

pygy commented 4 years ago

Note that TypeScript may be an exception here. At least at some point they used to recommend using extension-less imports. Not sure if it is still the case.