Skip to content

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

Closed
nicks wants to merge 1 commit into
less:masterfrom
Medium:nicks/sourcemap
Closed

nicks wants to merge 1 commit into
less:masterfrom
Medium:nicks/sourcemap

Conversation

@nicks

@nicks nicks commented May 31, 2016

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Member

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

@nicks
nicks force-pushed the nicks/sourcemap branch from db113db to f48e2d4 Compare July 13, 2016 16:09
@nicks

nicks commented Jul 13, 2016

Copy link
Copy Markdown
Author

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
Copy Markdown
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
nicks force-pushed the nicks/sourcemap branch from e19b995 to 104f1f7 Compare August 2, 2016 14:44
@nicks

nicks commented Aug 2, 2016

Copy link
Copy Markdown
Author

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

nicks commented Aug 2, 2016

Copy link
Copy Markdown
Author

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

@stale

stale Bot commented Nov 14, 2017

Copy link
Copy Markdown

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.

2 participants