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

fix(ui): fix static method export issue in JS module #669

Merged
merged 1 commit into from Dec 17, 2023
Merged

Conversation

qwqcode
Copy link
Member

@qwqcode qwqcode commented Dec 17, 2023

We've implemented changes in main.ts, the entry point of the JS module.

As direct export of static methods isn't supported, we've adapted the code to accommodate various environments such as CommonJS and browser IIFE. For instance, now we can utilize Artalk.init() instead of Artalk.default.init(). Consequently, it's necessary to manually expose the static methods within the Artalk class.

rollup/rollup#587

https://github.com/rollup/rollup/pull/631/files

@qwqcode qwqcode merged commit 14cf37a into master Dec 17, 2023
2 of 3 checks passed
@qwqcode qwqcode deleted the fix/ui branch December 17, 2023 16:46
@qwqcode
Copy link
Member Author

qwqcode commented Dec 17, 2023

#668

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant