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

refactor: simplify api.js bundling #4277

Merged
merged 22 commits into from
Oct 4, 2022
Merged

refactor: simplify api.js bundling #4277

merged 22 commits into from
Oct 4, 2022

Conversation

amrbashir
Copy link
Member

@amrbashir amrbashir commented Jun 5, 2022

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

@amrbashir amrbashir requested a review from a team June 5, 2022 11:01
@amrbashir amrbashir changed the title Refactor/api.js/tsup refactor: simplify api.js bundling Jun 5, 2022
@amrbashir amrbashir requested a review from a team as a code owner June 5, 2022 11:16
@amrbashir amrbashir requested a review from a team June 5, 2022 11:16
@amrbashir amrbashir marked this pull request as draft June 5, 2022 11:23
@amrbashir amrbashir marked this pull request as ready for review June 5, 2022 12:16
@lucasfernog
Copy link
Member

We need to test this on Webpack and CRA. #2360 (comment)

@amrbashir
Copy link
Member Author

The target bump in tsconfig is not really important and can be reverted, will test CRA anyways.

@amrbashir
Copy link
Member Author

CRA template created with create-react-app works fine.

tooling/api/tsup.config.ts Outdated Show resolved Hide resolved
@amrbashir amrbashir requested a review from a team as a code owner July 10, 2022 17:06
mrquantumoff
mrquantumoff previously approved these changes Sep 6, 2022
Copy link

@mrquantumoff mrquantumoff left a comment

Choose a reason for hiding this comment

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

Looks nice!

import * as tauri from './tauri'
import * as updater from './updater'
import * as window from './window'
import * as os from './os'
Copy link
Member

Choose a reason for hiding this comment

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

This bothers me because it's the only non-alphabetised one on the list ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

I will fix that once we are ready to merge this PR

@@ -36,19 +36,11 @@
"access": "public"
},
"engines": {
"node": ">= 12.22.0",
"node": ">= 14.6.0",
Copy link
Member

Choose a reason for hiding this comment

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

do we really need to bump this? if so we need to add it to the changelog

Copy link
Member Author

@amrbashir amrbashir Sep 28, 2022

Choose a reason for hiding this comment

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

node 12 has reached end of life 5 months ago

Copy link
Member

@lucasfernog lucasfernog left a comment

Choose a reason for hiding this comment

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

Let's keep an eye to see if this doen't break any app, I've tested it on Quasar and CRA

@lucasfernog lucasfernog merged commit 1129f4f into dev Oct 4, 2022
@lucasfernog lucasfernog deleted the refactor/api.js/tsup branch October 4, 2022 19:56
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.

6 participants