Skip to content

Commit 820f4a3

Browse files
committed
Add source map support for generated code
1 parent 53be29a commit 820f4a3

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

server/dist/routes/index.js

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/dist/server.js

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/src/routes/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class IndexRoute {
2626
method: 'GET',
2727
path: options.basePath + '/',
2828
handler: function (request, reply) {
29-
29+
throw new Error('There was an unexpected error');
3030
reply({ message: testService.getMessage()});
3131
}
3232
});

server/src/server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var Composer = require('./index');
2-
2+
require('source-map-support').install();
33
Composer(function (err, server) {
44

55
if (err) {
@@ -9,5 +9,5 @@ Composer(function (err, server) {
99
server.start(function () {
1010
console.log('Started the plot device on port ' + server.info.port);
1111
});
12-
12+
1313
});

0 commit comments

Comments
 (0)