summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/loader.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-02-20Add additional replace rules for node:* modulesGabor Javorszky1-0/+2
In that particular issue the compiled nuxt files end up importing the http module as node:http rather than http only. This bypasses unit's custom loader implementation which only check for the http or unit-http modules, and their websocket counterparts. This changeset adds replace sources for both the node:http and node:websocket import signatures. Closes: https://github.com/nginx/unit/issues/1013 Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
2021-05-24Node.js: renamed "require_shim" to "loader".Oisin Canty1-0/+27