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

Re-add browser support via removing tsup #46

Merged

Conversation

NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Nov 5, 2024

Related discussion:

Manual Testing (all successes):

  • pnpm test
  • run pnpm dev:browser (or pnpm vite) -- see output as in Don't use node APIs (require) #37
  • pnpm link from a v2 addon to use this built code in the v2 addon, and that v2 addon should build successfully (verified locally)

@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review November 5, 2024 20:30

// TS can't find declarations for this package (there aren't any)
// @ts-ignore
import decoratorSyntax from '@babel/plugin-syntax-decorators';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the "fix" is actually just being less weird 🎉

@NullVoxPopuli NullVoxPopuli changed the title Re add browser support via removing ts up Re add browser support via removing tsup Nov 5, 2024
@NullVoxPopuli NullVoxPopuli changed the title Re add browser support via removing tsup Re-add browser support via removing tsup Nov 5, 2024
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed because vite-plugin-dts uses this file to determine how to format the output types, and I didn't want to change the package.json#exports

@@ -0,0 +1,14 @@
{
Copy link
Contributor Author

@NullVoxPopuli NullVoxPopuli Nov 5, 2024

Choose a reason for hiding this comment

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

old tsconfig.json copied here for swc-register to use

@ef4 ef4 merged commit 77f4191 into ef4:main Nov 7, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Nov 7, 2024
@NullVoxPopuli NullVoxPopuli deleted the re-add-browser-support-via-removing-ts-up branch November 7, 2024 21:03
@ef4 ef4 added the enhancement New feature or request label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants