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

Make sourcemap generation a bit faster, roll #2 #2903

Closed
wants to merge 1 commit into from

Conversation

nicks
Copy link

@nicks nicks commented May 31, 2016

Makes sourcemap generation a bit faster. Re-try of #2834

Also adds tests for different source map generation options.

if (this._contentsIgnoredCharsMap[filename]) {
source = source.slice(this._contentsIgnoredCharsMap[filename]);
}
for (var filename in this._contentsInfoMap) {
Copy link
Author

Choose a reason for hiding this comment

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

the bug in the last PR was that this line was still referencing this._contentsMap

@matthew-dean
Copy link
Member

It appears the Travis build fails because the inline source maps don't match?

@nicks
Copy link
Author

nicks commented Jul 13, 2016

ya, it works for me locally...i don't know enough about your CI setup to know why it would be different there.

@matthew-dean
Copy link
Member

@nicks Can you take another whack at running tests locally? There's no reason they should pass on another system. Are you running grunt test?

@nicks nicks force-pushed the nicks/sourcemap branch 5 times, most recently from c1c4ca5 to e19b995 Compare August 2, 2016 03:19
@nicks
Copy link
Author

nicks commented Aug 2, 2016

Ya. I think the problem is that the source-map library generates different source-maps on OSX vs Linux, and this PR is the first thing in this repo that adds tests for source-maps.

I added a replacer so that it's not checking the exact source-map contents, just that it exists.

@nicks
Copy link
Author

nicks commented Aug 2, 2016

(the travis test failures are spurious, appears to be a problem with your test setup)

@stale
Copy link

stale bot commented Nov 14, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 14, 2017
@stale stale bot closed this Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants