Skip to content

fix: Use import in vanilla-ts fragment. - #198

Merged
amrbashir merged 6 commits into
devfrom
FabianLars-patch-1
Oct 1, 2022
Merged

fix: Use import in vanilla-ts fragment.#198
amrbashir merged 6 commits into
devfrom
FabianLars-patch-1

Conversation

@FabianLars

Copy link
Copy Markdown
Member

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

@FabianLars

Copy link
Copy Markdown
Member Author

And that's why you test changes locally before you open a PR 💃

@amrbashir amrbashir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's the reason for this? This is a vanilla template so I think imports should be from the global tauri but I am fine with the change if there is a reasonable drive behind it.

@FabianLars

Copy link
Copy Markdown
Member Author

Imo it just doesn't make sense to not use the npm package if vite (and typescript) is used, especially if we install the api package anyway.

@FabianLars

Copy link
Copy Markdown
Member Author

Oh and the "trigger" for this PR was a help thread on discord where someone was confused why we use the global object in a typescript project https://discord.com/channels/616186924390023171/625037620996734986/1025553047436406835

@amrbashir

Copy link
Copy Markdown
Member

Makes sense.

@amrbashir amrbashir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you also move the api package to normal dependencies section instead of dev?

Comment thread packages/cli/fragments/fragment-vanilla-ts/src/vite-env.d.ts Outdated
@amrbashir
amrbashir merged commit dcca18c into dev Oct 1, 2022
@amrbashir
amrbashir deleted the FabianLars-patch-1 branch October 1, 2022 19:48
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