Skip to content

Commit

Permalink
Upgrade to babel 7 and fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Mar 23, 2019
1 parent 74824ad commit 5e158f4
Show file tree
Hide file tree
Showing 5 changed files with 1,773 additions and 948 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["env"]
"presets": ["@babel/preset-env"]
}
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import http from 'http';

http.createServer((req, res) => {
const server = http.createServer((req, res) => {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');

console.log('Server running at http://127.0.0.1:1337/');

export default server;
Loading

0 comments on commit 5e158f4

Please sign in to comment.