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

Deduplicate code #314

Merged
merged 6 commits into from
May 23, 2023
Merged

Deduplicate code #314

merged 6 commits into from
May 23, 2023

Conversation

jeetiss
Copy link
Collaborator

@jeetiss jeetiss commented May 22, 2023

Tweak rollup config to deduplicate path helpers in code base.

@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (ecd0c45) 100.00% compared to head (adb690c) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #314   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         6    +1     
  Lines          224       228    +4     
  Branches        58        56    -2     
=========================================
+ Hits           224       228    +4     
Impacted Files Coverage Δ
static-location.js 100.00% <ø> (ø)
use-location.js 100.00% <ø> (ø)
paths.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -18,7 +20,7 @@ const ESM_SOURCES = [

const OUTPUT_DIR = "cjs";

export default [
export default defineConfig([
Copy link
Owner

Choose a reason for hiding this comment

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

what's the advantage of using defineConfig here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

defineConfig provides type definitions:

Снимок экрана 2023-05-23 в 09 44 25

static-location.js Outdated Show resolved Hide resolved
Copy link
Owner

@molefrog molefrog left a comment

Choose a reason for hiding this comment

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

Looks good!

@molefrog molefrog merged commit 30362e2 into molefrog:main May 23, 2023
4 checks passed
@jeetiss jeetiss deleted the deduplicate-code branch May 23, 2023 10:11
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.

None yet

2 participants