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

Make ESM the default format #90

Merged
merged 4 commits into from Oct 12, 2022
Merged

Make ESM the default format #90

merged 4 commits into from Oct 12, 2022

Conversation

chicoxyzzy
Copy link
Member

@chicoxyzzy chicoxyzzy commented Aug 26, 2022

Also:

  • migrate to ESM
  • move static properties and isTonicComponent getter to the Tonic class
  • set the version of Tonic on a build step instead of require('package').version in the runtime (which also breaks old esm version)
  • remove a build script
  • update CI
  • update deps

Copy link
Member

@heapwolf heapwolf left a comment

Choose a reason for hiding this comment

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

If this fixes source maps and the tests still pass, im +1!

@heapwolf
Copy link
Member

@chicoxyzzy can you rebase and merge?

@chicoxyzzy
Copy link
Member Author

@heapwolf this PR removes minified version. Is it ok or we still want to have it? I think I will bring it back to be able to use Tonic via unpkg.com, etc

@chicoxyzzy
Copy link
Member Author

should this be a major version or minor? technically it has breaking changes

@nichoth
Copy link
Contributor

nichoth commented Oct 11, 2022

should this be a major version or minor? technically it has breaking changes

I would say major version. Thank you for keeping the minified files too.

@Raynos
Copy link
Member

Raynos commented Oct 11, 2022

End of an era, no more commonJS

@chicoxyzzy chicoxyzzy merged commit 1a3c722 into master Oct 12, 2022
@chicoxyzzy chicoxyzzy deleted the esm branch October 12, 2022 11:18
@chicoxyzzy chicoxyzzy mentioned this pull request Oct 26, 2022
2 tasks
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

4 participants