diff --git a/server/actions/serveFile.js b/server/actions/serveFile.js index c9734f6..73d9456 100644 --- a/server/actions/serveFile.js +++ b/server/actions/serveFile.js @@ -78,8 +78,6 @@ function serveFile(req, res) { let contentType = getFileContentType(file); - if (contentType === "text/html") contentType = "text/plain"; // We can't serve HTML because bad people :( - if (contentType === "application/javascript" && req.query.module != null) { // Serve a JavaScript module. rewriteBareModuleIdentifiers(file, req.packageConfig, (error, code) => {