Skip to content

Preserve line number for linters #81

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

Merged
merged 2 commits into from
Nov 28, 2015
Merged

Conversation

rhyzx
Copy link

@rhyzx rhyzx commented Nov 28, 2015

2015-11-28 2 44 54

this PR will keep and comment all non-script source code in scripts output,
thus it will preserve line number and be friendly to linters(include file newLine ending).

@@ -141,6 +141,7 @@ describe('vue-loader', function () {
getFile('test.build.js.map', function (map) {
var smc = new SourceMapConsumer(JSON.parse(map))
getFile('test.build.js', function (code) {
console.log(code)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove the log here please?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, it's my mistake, thanks for your fixing.

@yyx990803
Copy link
Member

Very cool! Just a small fix and LGTM.

@yyx990803
Copy link
Member

Actually, nvm I'll do that :) Thanks for the PR!

yyx990803 added a commit that referenced this pull request Nov 28, 2015
Preserve line number for linters
@yyx990803 yyx990803 merged commit 6fcbe6e into vuejs:master Nov 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants