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

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

sunnymodi21
Copy link
Contributor

@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
Contributor 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

@HenryHengZJ
Copy link
Contributor

awesome, thanks for explanation

@HenryHengZJ HenryHengZJ merged commit 5dd465b into FlowiseAI:main Jan 22, 2025
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