Skip to content

chore(fixups): minor sourcemap fixups#3078

Merged
rwaskiewicz merged 6 commits intorwaskiewicz-rebase-again-sourcemapsfrom
rwaskiewicz/sourcemaps/minor-nitpicks
Sep 23, 2021
Merged

chore(fixups): minor sourcemap fixups#3078
rwaskiewicz merged 6 commits intorwaskiewicz-rebase-again-sourcemapsfrom
rwaskiewicz/sourcemaps/minor-nitpicks

Conversation

@rwaskiewicz
Copy link
Copy Markdown
Member

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Unit tests (npm test) were run locally and passed
  • E2E Tests (npm run test.karma.prod) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

This PR performs 4 minor refactorings, each confined to their own commit. Each seemed too small to put in their own PR, hence one with the separate commits

GitHub Issue Number: N/A

What is the new behavior?

  • 05320d2 - this commit adds additional tyings to generateRollupOutput to help make it easier to understand the map() function call that is invoked on the results of calling build.generate()
  • d5afae2 - sets the map property on our sourcemap representation to optional, match sourcemaps
  • c4140dd - extract the labels used in timespans to variables, to make it less likely we'll mess up their content in two different callsites
  • 3b956ef - updates the control flow for a few files, updates variable names

Does this introduce a breaking change?

  • Yes
  • No

Testing

Smoke tested locally

Other information

this commit adds additional tyings to `generateRollupOutput` to help
make it easier to understand the map() function call that is invoked on
the results of calling `build.generate()`
 is an optional property on rollup source maps, update our representation
extract the labels used in timespans to variables, to make it less
likely we'll mess up their content in two different callsites

this commit also adds return types to the methods updated
Copy link
Copy Markdown
Contributor

@splitinfinities splitinfinities left a comment

Choose a reason for hiding this comment

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

Only one non-blocking bit of feedback

await Promise.all(outputTargets.map((o) => bundleCustomElements(config, compilerCtx, buildCtx, o)));

timespan.finish(`generate custom elements finished`);
timespan.finish(bundlingEventMessage);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rwaskiewicz rwaskiewicz merged commit 8082234 into rwaskiewicz-rebase-again-sourcemaps Sep 23, 2021
@rwaskiewicz rwaskiewicz deleted the rwaskiewicz/sourcemaps/minor-nitpicks branch September 23, 2021 20:26
johnjenkins pushed a commit to johnjenkins/stencil that referenced this pull request Oct 7, 2021
this commit adds additional typings to `generateRollupOutput` to help
make it easier to understand the map() function call that is invoked on
the results of calling `build.generate()`

sourcemap is an optional property on rollup source maps, update our representation

extract the labels used in timespans to variables, to make it less
likely we'll mess up their content in two different callsites

this commit also adds return types to the methods updated
johnjenkins pushed a commit to johnjenkins/stencil that referenced this pull request Oct 7, 2021
this commit adds additional typings to `generateRollupOutput` to help
make it easier to understand the map() function call that is invoked on
the results of calling `build.generate()`

sourcemap is an optional property on rollup source maps, update our representation

extract the labels used in timespans to variables, to make it less
likely we'll mess up their content in two different callsites

this commit also adds return types to the methods updated
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