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

Add UMD build configuration for web entry point #284

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sunnymodi21
Copy link

@sunnymodi21 sunnymodi21 commented Jan 5, 2025

This pull request includes a small change to the rollup.config.js file. The change adds a new configuration for the web.ts input file, which outputs a UMD module named.

@sunnymodi21 sunnymodi21 changed the title fix linting Add UMD build configuration for web entry point Jan 5, 2025
@HenryHengZJ
Copy link
Contributor

can you elaborate more on your use cases and why UMD is needed?

@sunnymodi21
Copy link
Author

I am using a external package to trigger the chat in the webpage via CustomJs. The issue is I don't have option to adjust the 'script' tag to add "type="module".
Example below:
image

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