Skip to content

Commit

Permalink
enable source maps in --debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Feb 28, 2018
1 parent 8be2b24 commit f8c924a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion index.js
Expand Up @@ -30,7 +30,11 @@ module.exports = function (file, opts) {
readdir: readdir
}
},
{ vars: vars, varModules: { path: path } }
{
vars: vars,
varModules: { path: path },
sourceMap: opts && (opts.sourceMap || opts._flags && opts._flags.debug)
}
);
return sm;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"quote-stream": "^1.0.1",
"resolve": "^1.1.5",
"static-module": "^2.1.1",
"static-module": "^2.2.0",
"through2": "^2.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit f8c924a

Please sign in to comment.