Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-26333] Generate source maps #44

Merged
merged 2 commits into from
Aug 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/jsanalyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ exports.analyzeJs = function analyzeJs(contents, opts) {
}

if (options.presets.length || options.plugins.length) {
// generate and inline source map
// we inline the source map as the map cannot be retreived from the device
// using the inspector protocol. only parsed .js files can be retreived.
if (opts.sourceMap) {
options.sourceMaps = 'inline';
}
// FIXME we can't re-use the ast here, because we traversed it
results.contents = babel.transform(contents, options).code;
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"titanium",
"mobile"
],
"version": "0.6.1",
"version": "0.6.2",
"author": {
"name": "Appcelerator, Inc.",
"email": "info@appcelerator.com"
Expand Down