We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba8e2e commit 1260dedCopy full SHA for 1260ded
examples/server.js
@@ -128,8 +128,8 @@ server = http.createServer(function (req, res) {
128
// Process server request
129
else if (new RegExp('(' + dirs.join('|') + ')\/server').test(url)) {
130
if (fs.existsSync(path.join(__dirname, url + '.js'))) {
131
- import('./' + url + '.js').then(module => {
132
- module.default(req, res)
+ import('file://' + path.join(__dirname, url + '.js')).then((server) => {
+ server.default(req, res);
133
});
134
} else {
135
send404(res);
0 commit comments