Discord
Login
Community
DARK THEME

MIME "application/javascript"

I suggest adding the ability to place ".js" files in assets.

Now when I add a file with javascript code, I have to put it in a file with the *.txt extension.

Files with the *.js extension would also be treated specially and when the browser wanted to download this file from the server, the file would have the MIME header "application/javascript" .

This would make it possible to freely add libraries to projects (using "import" in the javascript code). It would also allow the Worker class to run smoothly.

Yeah, I think one of the reasons the suggestions aren't getting worked on is because he (gilles) is working on a transpiler(like a coding language translator) but I think this would be cool. like a way to upload js in the assets tab and run it from the code with something like javascript.run("file/path") or something like this

sorry, idk why he's not adding things from the suggestion tab, just checked and he is done with the transpiler

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community